Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001466/0.001466, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2405/0.2405, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 84.75 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1287, allocations: 62.44 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01914/0.1479, allocations: 14.97 MB / 495.2 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01192/0.1598, allocations: 5.015 MB / 0.4885 GB, free: 1.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003631/0.1635, allocations: 99.69 kB / 0.4886 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008571/0.1722, allocations: 4.007 MB / 0.4925 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007153/0.1794, allocations: 2.311 MB / 0.4947 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003216/0.1826, allocations: 1.17 MB / 0.4959 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01154/0.1942, allocations: 6.57 MB / 0.5023 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2765/0.4707, allocations: 4.693 MB / 0.5069 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004986/0.4757, allocations: 2.203 MB / 0.509 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005488/0.4812, allocations: 3.012 MB / 0.512 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001857/0.4831, allocations: 458.1 kB / 0.5124 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003951/0.4871, allocations: 1.531 MB / 0.5139 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003977/0.4911, allocations: 2.664 MB / 0.5165 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00627/0.4973, allocations: 3.133 MB / 0.5196 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01556/0.5129, allocations: 9.447 MB / 0.5288 GB, free: 9.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.513, allocations: 0 / 0.5288 GB, free: 9.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.513, allocations: 0 / 0.5288 GB, free: 9.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004486/0.5134, allocations: 3.625 kB / 0.5288 GB, free: 9.352 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.02664/0.5401, allocations: 6.998 MB / 0.5356 GB, free: 4.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.5402, allocations: 9.375 kB / 0.5356 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003411/0.5436, allocations: 0.9165 MB / 0.5365 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1694/0.713, allocations: 12.5 MB / 0.5487 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.7253, allocations: 4.479 MB / 0.5531 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003405/0.7257, allocations: 309.2 kB / 0.5534 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002162/0.7279, allocations: 434.6 kB / 0.5538 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03217/0.7601, allocations: 13.68 MB / 0.5672 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002093/0.7603, allocations: 63.23 kB / 0.5672 GB, free: 9.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008512/0.7612, allocations: 203.4 kB / 0.5674 GB, free: 8.918 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004605/0.7658, allocations: 2.517 MB / 0.5699 GB, free: 6.438 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02768/0.7935, allocations: 11.56 MB / 0.5812 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07851/0.872, allocations: 53.08 MB / 0.633 GB, free: 5.203 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0172/0.8893, allocations: 5.816 MB / 0.6387 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005472/0.8948, allocations: 3.376 MB / 0.642 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03067/0.9255, allocations: 14.87 MB / 0.6565 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.899e-05/0.9256, allocations: 60.56 kB / 0.6566 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=227): time 6.863e-06/0.9257, allocations: 0 / 0.6566 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of matching and sorting (n=264): time 0.09556/1.021, allocations: 26.21 MB / 0.6822 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001981/1.021, allocations: 264 kB / 0.6824 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01214/1.034, allocations: 5.069 MB / 0.6874 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000732/1.034, allocations: 65.7 kB / 0.6874 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004622/1.039, allocations: 3.948 MB / 0.6913 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002024/1.041, allocations: 0.9888 MB / 0.6923 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00475/1.046, allocations: 1.467 MB / 0.6937 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001605/1.046, allocations: 301.1 kB / 0.694 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005487/1.052, allocations: 2.736 MB / 0.6967 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/1.062, allocations: 7.089 MB / 0.7036 GB, free: 10.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3041/1.366, allocations: 10.65 MB / 0.714 GB, free: 188 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001813/1.366, allocations: 43.16 kB / 0.714 GB, free: 188 MB / 0.545 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.02285/1.389, allocations: 10.11 MB / 0.7239 GB, free: 185.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/1.389, allocations: 70.47 kB / 0.724 GB, free: 185.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002513/1.389, allocations: 151.8 kB / 0.7241 GB, free: 185.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/1.391, allocations: 0.7175 MB / 0.7248 GB, free: 185.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006979/1.398, allocations: 1.77 MB / 0.7265 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007045/1.405, allocations: 6.855 MB / 0.7332 GB, free: 180.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006544/1.412, allocations: 402.8 kB / 0.7336 GB, free: 180.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001206/1.413, allocations: 450.3 kB / 0.734 GB, free: 180.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (913): * Single equations (assignments): 908 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004875/1.418, allocations: 2.626 MB / 0.7366 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008345/1.419, allocations: 468.9 kB / 0.737 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006913/1.426, allocations: 4.384 MB / 0.7413 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.297e-05/1.426, allocations: 33.41 kB / 0.7414 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.702e-05/1.426, allocations: 5.812 kB / 0.7414 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-05/1.426, allocations: 16.02 kB / 0.7414 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01877/1.445, allocations: 10.83 MB / 0.752 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/1.445, allocations: 2.719 kB / 0.752 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/1.447, allocations: 0.4996 MB / 0.7525 GB, free: 172.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/1.449, allocations: 495.6 kB / 0.7529 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002564/1.449, allocations: 47.8 kB / 0.753 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005013/1.454, allocations: 6.209 MB / 0.759 GB, free: 166.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/1.454, allocations: 4 kB / 0.759 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008878/1.463, allocations: 7.626 MB / 0.7665 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/1.464, allocations: 494.6 kB / 0.767 GB, free: 159.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00067/1.465, allocations: 40 kB / 0.767 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/1.467, allocations: 158.6 kB / 0.7671 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003541/1.467, allocations: 148.1 kB / 0.7673 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/1.467, allocations: 77.48 kB / 0.7674 GB, free: 159 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004885/1.472, allocations: 3.172 MB / 0.7705 GB, free: 156.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.62e-07/1.472, allocations: 4.562 kB / 0.7705 GB, free: 156.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007308/1.48, allocations: 1.28 MB / 0.7717 GB, free: 155.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 219 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009976/1.49, allocations: 8.333 MB / 0.7799 GB, free: 146.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01389/1.503, allocations: 9.478 MB / 0.7891 GB, free: 137.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.504, allocations: 0 / 0.7891 GB, free: 137.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002482/1.506, allocations: 2.378 MB / 0.7914 GB, free: 134.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003786/1.51, allocations: 0.6255 MB / 0.792 GB, free: 134.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08173/1.592, allocations: 69.5 MB / 0.8599 GB, free: 55.17 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004019/1.596, allocations: 4.097 MB / 0.8639 GB, free: 51.04 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005407/1.601, allocations: 2.377 MB / 0.8662 GB, free: 48.65 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003123/1.604, allocations: 2.62 MB / 0.8688 GB, free: 46.03 MB / 0.545 GB Notification: Performance of SimCode: time 1.563e-06/1.604, allocations: 0 / 0.8688 GB, free: 46.03 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3762/1.98, allocations: 96.32 MB / 0.9629 GB, free: 162.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/14.68, allocations: 2.781 kB / 0.9629 GB, free: 162.4 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1)