Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 93.44 kB / 16.98 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 181.4 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1825/0.1825, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003052, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1145, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.314/0.4285, allocations: 62.62 MB / 0.5216 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03503/0.4636, allocations: 14.65 MB / 0.536 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01942/0.4831, allocations: 323.5 kB / 0.5363 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01172/0.4948, allocations: 3.083 MB / 0.5393 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02859/0.5234, allocations: 8.929 MB / 0.548 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005082/0.5285, allocations: 1.258 MB / 0.5492 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07036/0.5989, allocations: 49.88 MB / 0.5979 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01324/0.6122, allocations: 6.34 MB / 0.6041 GB, free: 11.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00481/0.6171, allocations: 1.849 MB / 0.6059 GB, free: 9.918 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004756/0.6219, allocations: 2.637 MB / 0.6085 GB, free: 7.273 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001595/0.6235, allocations: 248 kB / 0.6087 GB, free: 7.031 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003698/0.6272, allocations: 1.178 MB / 0.6099 GB, free: 5.852 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004143/0.6314, allocations: 2.751 MB / 0.6126 GB, free: 3.094 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002624/0.6341, allocations: 1.31 MB / 0.6138 GB, free: 1.773 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.6445, allocations: 8.838 MB / 0.6225 GB, free: 8.906 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.6445, allocations: 0 / 0.6225 GB, free: 8.906 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.6446, allocations: 0 / 0.6225 GB, free: 8.906 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004641/0.645, allocations: 0 / 0.6225 GB, free: 8.906 MB / 462.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.02293/0.668, allocations: 7.326 MB / 0.6296 GB, free: 1.5 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.668, allocations: 12.03 kB / 0.6296 GB, free: 1.488 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004406/0.6725, allocations: 1.075 MB / 0.6307 GB, free: 412 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1693/0.8418, allocations: 15.11 MB / 0.6454 GB, free: 1.266 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01535/0.8572, allocations: 5.565 MB / 0.6509 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005322/0.8578, allocations: 369.5 kB / 0.6512 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002673/0.8604, allocations: 0.515 MB / 0.6517 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03825/0.8987, allocations: 16.33 MB / 0.6677 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002882/0.899, allocations: 91.2 kB / 0.6678 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00104/0.9001, allocations: 231.8 kB / 0.668 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004585/0.9047, allocations: 2.919 MB / 0.6708 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02904/0.9337, allocations: 13.68 MB / 0.6842 GB, free: 8.402 MB / 0.5137 GB 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.3628/1.297, allocations: 64.36 MB / 0.747 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0219/1.319, allocations: 7.826 MB / 0.7547 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02992/1.349, allocations: 18.82 MB / 0.7731 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.322e-05/1.349, allocations: 55.91 kB / 0.7731 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=281): time 7.053e-06/1.349, allocations: 3.656 kB / 0.7731 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362): time 0.1464/1.495, allocations: 47.39 MB / 0.8194 GB, free: 91.35 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/1.495, allocations: 273.7 kB / 0.8197 GB, free: 91.02 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008352/1.504, allocations: 6.51 MB / 0.826 GB, free: 84.51 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008515/1.504, allocations: 77.7 kB / 0.8261 GB, free: 84.43 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00246/1.507, allocations: 4.746 MB / 0.8307 GB, free: 79.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001518/1.508, allocations: 1.332 MB / 0.832 GB, free: 78.36 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004759/1.509, allocations: 188 kB / 0.8322 GB, free: 78.18 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003421/1.509, allocations: 0.6945 MB / 0.8329 GB, free: 77.47 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004716/1.514, allocations: 3.844 MB / 0.8366 GB, free: 73.62 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007174/1.521, allocations: 9.047 MB / 0.8455 GB, free: 62 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007403/1.529, allocations: 5.709 MB / 0.851 GB, free: 56.27 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/1.529, allocations: 52 kB / 0.8511 GB, free: 56.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03218/1.561, allocations: 16.3 MB / 0.867 GB, free: 39.88 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.561, allocations: 80 kB / 0.8671 GB, free: 39.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000184/1.561, allocations: 184 kB / 0.8673 GB, free: 39.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01263/1.574, allocations: 4.125 MB / 0.8713 GB, free: 35.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006703/1.581, allocations: 2.042 MB / 0.8733 GB, free: 33.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02774/1.608, allocations: 22.77 MB / 0.8955 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007274/1.616, allocations: 0.5007 MB / 0.896 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001465/1.617, allocations: 0.5312 MB / 0.8965 GB, free: 9.371 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005399/1.623, allocations: 3.125 MB / 0.8996 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/1.624, allocations: 0.5669 MB / 0.9001 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2803/1.904, allocations: 9.782 MB / 0.9097 GB, free: 171 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-05/1.904, allocations: 43 kB / 0.9097 GB, free: 171 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.058e-05/1.904, allocations: 16.38 kB / 0.9097 GB, free: 171 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.546e-05/1.904, allocations: 17.75 kB / 0.9098 GB, free: 171 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04613/1.951, allocations: 19.5 MB / 0.9288 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.088e-05/1.951, allocations: 0 / 0.9288 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/1.954, allocations: 0.5224 MB / 0.9293 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01252/1.966, allocations: 3.712 MB / 0.9329 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007805/1.967, allocations: 63.41 kB / 0.933 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02578/1.993, allocations: 20.68 MB / 0.9532 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/1.993, allocations: 4 kB / 0.9532 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02477/2.018, allocations: 14.48 MB / 0.9673 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001888/2.019, allocations: 0.6032 MB / 0.9679 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00208/2.022, allocations: 62.44 kB / 0.968 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003984/2.026, allocations: 217.2 kB / 0.9682 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/2.027, allocations: 218.1 kB / 0.9684 GB, free: 136.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002711/2.027, allocations: 95.98 kB / 0.9685 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005423/2.032, allocations: 4.139 MB / 0.9725 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.5e-07/2.032, allocations: 0 / 0.9725 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007545/2.04, allocations: 1.858 MB / 0.9744 GB, free: 130.8 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02312/2.063, allocations: 15.4 MB / 0.9894 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01417/2.077, allocations: 9.823 MB / 0.999 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/2.077, allocations: 2.75 kB / 0.999 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005086/2.082, allocations: 3.874 MB / 1.003 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004566/2.087, allocations: 0.7118 MB / 1.003 GB, free: 101 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.376/2.463, allocations: 192.5 MB / 1.191 GB, free: 121.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005155/2.468, allocations: 4.992 MB / 1.196 GB, free: 120 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006497/2.475, allocations: 2.796 MB / 1.199 GB, free: 119.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003754/2.479, allocations: 3.248 MB / 1.202 GB, free: 116.1 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/2.479, allocations: 0 / 1.202 GB, free: 116.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4186/2.897, allocations: 142.7 MB / 1.342 GB, free: 163.9 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001362/2.897, allocations: 206.9 kB / 1.342 GB, free: 163.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.615/9.512, allocations: 0 / 1.342 GB, free: 163.7 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat