Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000865/0.0008653, allocations: 181.2 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.4 MB / 223.6 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007379/0.000738, allocations: 99.33 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.334/0.334, allocations: 43.56 MB / 363.8 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.000366, allocations: 16 kB / 432.6 MB, free: 5.883 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1214, allocations: 58.84 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3587/0.4802, allocations: 112.9 MB / 0.5902 GB, free: 5.492 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003221/0.4805, allocations: 79.95 kB / 0.5902 GB, free: 5.414 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6146/1.095, allocations: 133.8 MB / 0.7209 GB, free: 86.63 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.095, allocations: 0 / 0.7209 GB, free: 86.63 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006623/1.096, allocations: 135.2 kB / 0.721 GB, free: 86.62 MB / 490.7 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.0287/1.125, allocations: 7.383 MB / 0.7282 GB, free: 83.69 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.647e-05/1.125, allocations: 11.59 kB / 0.7282 GB, free: 83.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02656/1.151, allocations: 5.85 MB / 0.7339 GB, free: 83.21 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02106/1.172, allocations: 8.477 MB / 0.7422 GB, free: 81.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000556/1.173, allocations: 494.6 kB / 0.7427 GB, free: 81.74 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003493/1.176, allocations: 0.6535 MB / 0.7433 GB, free: 81.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03746/1.214, allocations: 16.56 MB / 0.7595 GB, free: 73.25 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005045/1.215, allocations: 102.2 kB / 0.7596 GB, free: 73.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00289/1.217, allocations: 316.8 kB / 0.7599 GB, free: 73.03 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002253/1.22, allocations: 1.584 MB / 0.7614 GB, free: 72.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/1.247, allocations: 13.51 MB / 0.7746 GB, free: 68.61 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0854/1.333, allocations: 74.21 MB / 0.8471 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02351/1.356, allocations: 7.696 MB / 0.8546 GB, free: 4.453 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006567/1.363, allocations: 3.959 MB / 0.8585 GB, free: 488 kB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2932/1.656, allocations: 18.45 MB / 0.8765 GB, free: 90.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.404e-05/1.656, allocations: 63.94 kB / 0.8766 GB, free: 90.54 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 5.931e-06/1.656, allocations: 3.562 kB / 0.8766 GB, free: 90.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.1655/1.822, allocations: 48.17 MB / 0.9236 GB, free: 82.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/1.822, allocations: 272.9 kB / 0.9239 GB, free: 81.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0125/1.834, allocations: 6.088 MB / 0.9298 GB, free: 79.87 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009712/1.835, allocations: 89.02 kB / 0.9299 GB, free: 79.79 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003373/1.839, allocations: 4.763 MB / 0.9345 GB, free: 76.15 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002011/1.841, allocations: 1.342 MB / 0.9358 GB, free: 75.16 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001321/1.842, allocations: 191.5 kB / 0.936 GB, free: 75.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007942/1.843, allocations: 0.7005 MB / 0.9367 GB, free: 74.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006257/1.849, allocations: 3.743 MB / 0.9404 GB, free: 73.28 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008985/1.858, allocations: 8.984 MB / 0.9491 GB, free: 64.95 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01574/1.874, allocations: 13.78 MB / 0.9626 GB, free: 54.33 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002648/1.874, allocations: 51.69 kB / 0.9627 GB, free: 54.33 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03654/1.911, allocations: 16.12 MB / 0.9784 GB, free: 46.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002508/1.911, allocations: 83.94 kB / 0.9785 GB, free: 46.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003465/1.912, allocations: 184 kB / 0.9786 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01319/1.925, allocations: 4.05 MB / 0.9826 GB, free: 43.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007237/1.932, allocations: 2.037 MB / 0.9846 GB, free: 41.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02971/1.962, allocations: 21.01 MB / 1.005 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008506/1.97, allocations: 0.5509 MB / 1.006 GB, free: 22.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002152/1.973, allocations: 0.5194 MB / 1.006 GB, free: 22.47 MB / 0.4948 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 (1081): * Single equations (assignments): 1076 * 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.008211/1.981, allocations: 3.12 MB / 1.009 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/1.983, allocations: 0.5757 MB / 1.01 GB, free: 19.15 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02132/2.004, allocations: 9.548 MB / 1.019 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.563e-05/2.004, allocations: 44.48 kB / 1.019 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.042e-05/2.004, allocations: 16 kB / 1.019 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.04e-05/2.004, allocations: 15.94 kB / 1.019 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04448/2.049, allocations: 19 MB / 1.038 GB, free: 8.676 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.303e-05/2.049, allocations: 8 kB / 1.038 GB, free: 8.668 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002894/2.052, allocations: 0.5031 MB / 1.038 GB, free: 8.164 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0129/2.065, allocations: 3.675 MB / 1.042 GB, free: 4.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009146/2.065, allocations: 61.95 kB / 1.042 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2856/2.351, allocations: 18.9 MB / 1.06 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/2.351, allocations: 1.688 kB / 1.06 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02689/2.378, allocations: 13.94 MB / 1.074 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003941/2.382, allocations: 1.113 MB / 1.075 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002072/2.384, allocations: 60.25 kB / 1.075 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004301/2.389, allocations: 233.1 kB / 1.075 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009348/2.389, allocations: 223 kB / 1.076 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003094/2.39, allocations: 87.16 kB / 1.076 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008492/2.398, allocations: 3.809 MB / 1.079 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.72e-07/2.398, allocations: 2.438 kB / 1.079 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01188/2.41, allocations: 1.844 MB / 1.081 GB, free: 110.9 MB / 0.5261 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 (263): * Single equations (assignments): 258 * 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.001276/2.412, allocations: 230.7 kB / 1.081 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01895/2.431, allocations: 9.563 MB / 1.091 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.431, allocations: 1.594 kB / 1.091 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007364/2.438, allocations: 3.746 MB / 1.094 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008059/2.446, allocations: 0.7635 MB / 1.095 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03958/2.486, allocations: 19.17 MB / 1.114 GB, free: 97.11 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009682/2.495, allocations: 4.868 MB / 1.119 GB, free: 95.53 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001876/2.497, allocations: 443.5 kB / 1.119 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of SimCode: time 9.72e-07/2.497, allocations: 2.344 kB / 1.119 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of Templates: time 0.4778/2.975, allocations: 151.7 MB / 1.267 GB, free: 107.8 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches