Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001848/0.001848, allocations: 103.9 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.002108/0.002108, allocations: 210.4 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.475/1.475, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2223/0.2223, allocations: 46.11 MB / 344.2 MB, free: 11.59 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.002245/0.002245, allocations: 81.33 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1268, allocations: 62.44 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01945/0.1463, allocations: 17.25 MB / 497.5 MB, free: 3.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.1596, allocations: 5.49 MB / 0.4912 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003416/0.163, allocations: 119.6 kB / 0.4913 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008782/0.1719, allocations: 4.349 MB / 0.4955 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00719/0.1791, allocations: 2.704 MB / 0.4982 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003434/0.1826, allocations: 1.458 MB / 0.4996 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2282/0.4108, allocations: 8.624 MB / 0.508 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007574/0.4184, allocations: 5.377 MB / 0.5133 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005284/0.4237, allocations: 2.657 MB / 0.5159 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006439/0.4302, allocations: 3.816 MB / 0.5196 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002107/0.4323, allocations: 0.5326 MB / 0.5201 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004771/0.4371, allocations: 1.607 MB / 0.5217 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004603/0.4417, allocations: 3.279 MB / 0.5249 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005688/0.4474, allocations: 3.771 MB / 0.5286 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01212/0.4596, allocations: 11.14 MB / 0.5394 GB, free: 3.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4596, allocations: 0 / 0.5394 GB, free: 3.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4597, allocations: 0 / 0.5394 GB, free: 3.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003527/0.46, allocations: 0 / 0.5394 GB, free: 3.184 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02226/0.4823, allocations: 8.469 MB / 0.5477 GB, free: 13.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.4823, allocations: 10.84 kB / 0.5477 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002739/0.4851, allocations: 1.083 MB / 0.5488 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1801/0.6652, allocations: 12.9 MB / 0.5614 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01501/0.6803, allocations: 6.056 MB / 0.5673 GB, free: 9.332 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004003/0.6807, allocations: 367.5 kB / 0.5676 GB, free: 9.023 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002073/0.6828, allocations: 0.5168 MB / 0.5681 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03293/0.7157, allocations: 16.1 MB / 0.5839 GB, free: 7.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002825/0.7161, allocations: 84.06 kB / 0.5839 GB, free: 7.633 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001398/0.7175, allocations: 235.9 kB / 0.5842 GB, free: 7.457 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005517/0.723, allocations: 2.923 MB / 0.587 GB, free: 4.574 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03138/0.7544, allocations: 13.43 MB / 0.6001 GB, free: 7.406 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0895/0.844, allocations: 64.1 MB / 0.6627 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02474/0.8687, allocations: 7.727 MB / 0.6703 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00648/0.8753, allocations: 4.074 MB / 0.6743 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03293/0.9082, allocations: 18.7 MB / 0.6925 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.825e-05/0.9083, allocations: 69.95 kB / 0.6926 GB, free: 6.984 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=281): time 5.781e-06/0.9083, allocations: 0 / 0.6926 GB, free: 6.984 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362): time 0.3578/1.266, allocations: 46.47 MB / 0.738 GB, free: 184.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.551e-05/1.266, allocations: 271.6 kB / 0.7382 GB, free: 183.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009053/1.275, allocations: 6.072 MB / 0.7442 GB, free: 181.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001041/1.276, allocations: 85.67 kB / 0.7442 GB, free: 181.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003177/1.28, allocations: 4.746 MB / 0.7489 GB, free: 178 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00166/1.281, allocations: 1.334 MB / 0.7502 GB, free: 177 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002415/1.284, allocations: 1.809 MB / 0.7519 GB, free: 176.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.885e-05/1.284, allocations: 301.1 kB / 0.7522 GB, free: 175.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004716/1.288, allocations: 3.888 MB / 0.756 GB, free: 174.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006838/1.295, allocations: 9.129 MB / 0.7649 GB, free: 166.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/1.308, allocations: 14.06 MB / 0.7787 GB, free: 152.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000121/1.308, allocations: 52 kB / 0.7787 GB, free: 152.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03095/1.339, allocations: 16.35 MB / 0.7947 GB, free: 136.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/1.339, allocations: 90.33 kB / 0.7948 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002095/1.34, allocations: 180 kB / 0.7949 GB, free: 135.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01303/1.353, allocations: 4.119 MB / 0.799 GB, free: 131.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006491/1.359, allocations: 2.051 MB / 0.801 GB, free: 129.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02795/1.387, allocations: 23.54 MB / 0.824 GB, free: 105.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01007/1.397, allocations: 0.5052 MB / 0.8245 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002091/1.399, allocations: 0.5273 MB / 0.825 GB, free: 104.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[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],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1080): * Single equations (assignments): 1075 * 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 {(2,44,100.0%), (5,47,64.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006301/1.406, allocations: 3.115 MB / 0.828 GB, free: 101.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/1.407, allocations: 0.5708 MB / 0.8286 GB, free: 101.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01894/1.426, allocations: 9.778 MB / 0.8381 GB, free: 91.29 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.073e-05/1.426, allocations: 39.94 kB / 0.8382 GB, free: 91.25 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.923e-05/1.426, allocations: 20 kB / 0.8382 GB, free: 91.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.35e-05/1.426, allocations: 19.94 kB / 0.8382 GB, free: 91.21 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03703/1.463, allocations: 19.46 MB / 0.8572 GB, free: 71.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.435e-05/1.463, allocations: 4 kB / 0.8572 GB, free: 71.65 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002834/1.466, allocations: 0.5196 MB / 0.8577 GB, free: 71.13 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01178/1.478, allocations: 3.688 MB / 0.8613 GB, free: 67.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008595/1.479, allocations: 74.81 kB / 0.8614 GB, free: 67.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02674/1.506, allocations: 21.4 MB / 0.8823 GB, free: 45.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.506, allocations: 0 / 0.8823 GB, free: 45.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02536/1.531, allocations: 14.39 MB / 0.8963 GB, free: 31.22 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/1.533, allocations: 0.5796 MB / 0.8969 GB, free: 30.62 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001595/1.534, allocations: 59.98 kB / 0.8969 GB, free: 30.56 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003792/1.538, allocations: 207.7 kB / 0.8971 GB, free: 30.36 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009564/1.539, allocations: 218.1 kB / 0.8974 GB, free: 30.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004164/1.54, allocations: 95.98 kB / 0.8974 GB, free: 30.05 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005383/1.545, allocations: 3.803 MB / 0.9012 GB, free: 26.25 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.81e-07/1.545, allocations: 0 / 0.9012 GB, free: 26.25 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007514/1.553, allocations: 1.812 MB / 0.9029 GB, free: 24.45 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 (262): * Single equations (assignments): 257 * 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 {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2513/1.804, allocations: 15.13 MB / 0.9177 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02702/1.831, allocations: 14.43 MB / 0.9318 GB, free: 168.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/1.831, allocations: 0 / 0.9318 GB, free: 168.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005707/1.837, allocations: 3.889 MB / 0.9356 GB, free: 166.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004637/1.841, allocations: 0.8225 MB / 0.9364 GB, free: 166.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1476/1.989, allocations: 99.35 MB / 1.033 GB, free: 74.75 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004295/1.993, allocations: 4.838 MB / 1.038 GB, free: 69.88 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006116/1.999, allocations: 2.774 MB / 1.041 GB, free: 67.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003291/2.003, allocations: 3.241 MB / 1.044 GB, free: 63.86 MB / 0.545 GB Notification: Performance of SimCode: time 6.32e-07/2.003, allocations: 0 / 1.044 GB, free: 63.86 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3843/2.387, allocations: 138.2 MB / 1.179 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/16.57, allocations: 3 kB / 1.179 GB, free: 161.7 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1)