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.0009166/0.0009167, allocations: 174.1 kB / 16.72 MB, free: 5.082 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.261/1.261, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007841/0.0007842, allocations: 88.73 kB / 271.2 MB, free: 8.262 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.2987/0.2987, allocations: 43.56 MB / 363.1 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004129/0.000413, allocations: 16 kB / 432 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1046, allocations: 58.84 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.2235/0.3281, allocations: 66.45 MB / 0.5442 GB, free: 3.188 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02889/0.3571, allocations: 14 MB / 0.5579 GB, free: 9.656 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01209/0.3692, allocations: 323.8 kB / 0.5582 GB, free: 9.602 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00981/0.3791, allocations: 3.419 MB / 0.5615 GB, free: 8.375 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02862/0.4077, allocations: 10.23 MB / 0.5715 GB, free: 3.91 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005091/0.4128, allocations: 1.353 MB / 0.5728 GB, free: 3.059 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04402/0.4569, allocations: 37.36 MB / 0.6093 GB, free: 1.004 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01077/0.4677, allocations: 6.87 MB / 0.616 GB, free: 10.07 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004404/0.4722, allocations: 2.25 MB / 0.6182 GB, free: 7.812 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005401/0.4776, allocations: 3.685 MB / 0.6218 GB, free: 4.117 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001304/0.4789, allocations: 248 kB / 0.6221 GB, free: 3.875 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003561/0.4825, allocations: 1.389 MB / 0.6234 GB, free: 2.484 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003472/0.486, allocations: 2.992 MB / 0.6263 GB, free: 15.48 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003895/0.4899, allocations: 3.101 MB / 0.6294 GB, free: 12.36 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008336/0.4982, allocations: 8.538 MB / 0.6377 GB, free: 3.801 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4983, allocations: 0 / 0.6377 GB, free: 3.801 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4983, allocations: 0 / 0.6377 GB, free: 3.801 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003067/0.4986, allocations: 0 / 0.6377 GB, free: 3.801 MB / 458.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.0142/0.5128, allocations: 6.822 MB / 0.6444 GB, free: 12.89 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.5129, allocations: 8.031 kB / 0.6444 GB, free: 12.89 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02462/0.5375, allocations: 3.767 MB / 0.6481 GB, free: 9.105 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01163/0.5492, allocations: 5.477 MB / 0.6534 GB, free: 3.547 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/0.5495, allocations: 373.8 kB / 0.6538 GB, free: 3.18 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.5513, allocations: 0.5154 MB / 0.6543 GB, free: 2.664 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02682/0.5781, allocations: 16.25 MB / 0.6701 GB, free: 1.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001887/0.5784, allocations: 79.3 kB / 0.6702 GB, free: 1.262 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006071/0.579, allocations: 239.8 kB / 0.6704 GB, free: 1.027 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2048/0.7838, allocations: 2.908 MB / 0.6733 GB, free: 136 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02633/0.8101, allocations: 13.68 MB / 0.6866 GB, free: 133.8 MB / 490.7 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.06769/0.8779, allocations: 64.76 MB / 0.7499 GB, free: 90.23 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01886/0.8968, allocations: 7.934 MB / 0.7576 GB, free: 84.74 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004399/0.9012, allocations: 4.267 MB / 0.7618 GB, free: 80.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02208/0.9233, allocations: 19.28 MB / 0.7806 GB, free: 60.69 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.9234, allocations: 68.5 kB / 0.7807 GB, free: 60.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=284): time 5.42e-06/0.9234, allocations: 0 / 0.7807 GB, free: 60.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=366): time 0.1451/1.068, allocations: 52.53 MB / 0.832 GB, free: 7.941 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.514e-05/1.069, allocations: 276.8 kB / 0.8323 GB, free: 7.617 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006833/1.075, allocations: 6.059 MB / 0.8382 GB, free: 1.547 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007342/1.076, allocations: 81.7 kB / 0.8383 GB, free: 1.461 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002737/1.079, allocations: 4.679 MB / 0.8428 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.081, allocations: 1.354 MB / 0.8441 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004919/1.081, allocations: 188 kB / 0.8443 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000444/1.081, allocations: 0.7072 MB / 0.845 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005832/1.087, allocations: 4.169 MB / 0.8491 GB, free: 6.367 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008918/1.096, allocations: 9.39 MB / 0.8583 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2152/1.312, allocations: 14.52 MB / 0.8724 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001467/1.312, allocations: 51.5 kB / 0.8725 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03322/1.345, allocations: 17.51 MB / 0.8896 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.345, allocations: 82.44 kB / 0.8897 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001985/1.345, allocations: 180.1 kB / 0.8898 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01304/1.358, allocations: 4.652 MB / 0.8944 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006691/1.365, allocations: 2.12 MB / 0.8965 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03234/1.397, allocations: 23.71 MB / 0.9196 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006936/1.404, allocations: 0.5255 MB / 0.9201 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001465/1.406, allocations: 0.5338 MB / 0.9206 GB, free: 135 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1130): * Single equations (assignments): 1125 * 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%) 44,(3,88.9%) 49} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005799/1.412, allocations: 3.131 MB / 0.9237 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009094/1.413, allocations: 0.5631 MB / 0.9243 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01925/1.432, allocations: 10.73 MB / 0.9347 GB, free: 128 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-05/1.432, allocations: 40 kB / 0.9348 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.704e-05/1.432, allocations: 16.84 kB / 0.9348 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.315e-05/1.432, allocations: 19.66 kB / 0.9348 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03298/1.465, allocations: 20.5 MB / 0.9548 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.631e-05/1.465, allocations: 0 / 0.9548 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002496/1.468, allocations: 0.5266 MB / 0.9553 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01186/1.479, allocations: 4.264 MB / 0.9595 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005281/1.48, allocations: 63.98 kB / 0.9596 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02497/1.505, allocations: 21.55 MB / 0.9806 GB, free: 80.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.505, allocations: 3.938 kB / 0.9806 GB, free: 80.89 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02369/1.529, allocations: 15.6 MB / 0.9958 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002708/1.531, allocations: 1.183 MB / 0.997 GB, free: 64.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008244/1.532, allocations: 56.55 kB / 0.997 GB, free: 63.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002585/1.535, allocations: 232.9 kB / 0.9973 GB, free: 63.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006901/1.536, allocations: 222.1 kB / 0.9975 GB, free: 63.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/1.536, allocations: 104.9 kB / 0.9976 GB, free: 63.41 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004617/1.541, allocations: 3.769 MB / 1.001 GB, free: 59.64 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/1.541, allocations: 0 / 1.001 GB, free: 59.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006778/1.547, allocations: 1.921 MB / 1.003 GB, free: 57.72 MB / 0.5105 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 (266): * Single equations (assignments): 261 * 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.0005545/1.548, allocations: 224.2 kB / 1.003 GB, free: 57.51 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01255/1.56, allocations: 10.4 MB / 1.014 GB, free: 47.08 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/1.56, allocations: 0 / 1.014 GB, free: 47.08 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00497/1.565, allocations: 4.075 MB / 1.017 GB, free: 42.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004726/1.57, allocations: 0.7334 MB / 1.018 GB, free: 42.26 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02414/1.594, allocations: 19.53 MB / 1.037 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00437/1.599, allocations: 4.827 MB / 1.042 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/1.601, allocations: 447.4 kB / 1.042 GB, free: 17.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.012e-06/1.601, allocations: 0 / 1.042 GB, free: 17.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.3574/1.958, allocations: 152.4 MB / 1.191 GB, free: 46.05 MB / 0.5105 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/jenkins/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