Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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 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 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 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: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 112 kB / 17.08 MB, free: 6.016 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.001827/0.001827, allocations: 198.3 kB / 18.01 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.162/2.162, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.279/0.279, allocations: 43.53 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 75.89 kB / 442.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1142, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01167/0.1259, allocations: 10.4 MB / 0.4987 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008082/0.134, allocations: 3.869 MB / 0.5025 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001896/0.136, allocations: 59.81 kB / 0.5025 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00429/0.1403, allocations: 2.067 MB / 0.5045 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004843/0.1452, allocations: 1.72 MB / 0.5062 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001951/0.1472, allocations: 0.6901 MB / 0.5069 GB, free: 8.941 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007907/0.1551, allocations: 3.814 MB / 0.5106 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004477/0.1596, allocations: 2.598 MB / 0.5132 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002712/0.1624, allocations: 1.32 MB / 0.5145 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003084/0.1655, allocations: 1.85 MB / 0.5163 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001127/0.1666, allocations: 268 kB / 0.5165 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002943/0.1696, allocations: 1.194 MB / 0.5177 GB, free: 13.83 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002412/0.172, allocations: 1.683 MB / 0.5193 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003686/0.1758, allocations: 1.907 MB / 0.5212 GB, free: 10.22 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009188/0.185, allocations: 6.205 MB / 0.5272 GB, free: 3.996 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.888e-06/0.185, allocations: 4 kB / 0.5272 GB, free: 3.992 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.185, allocations: 0 / 0.5272 GB, free: 3.992 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002428/0.1853, allocations: 0 / 0.5272 GB, free: 3.992 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.2752/0.4605, allocations: 4.223 MB / 0.5314 GB, free: 37.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.4606, allocations: 12.02 kB / 0.5314 GB, free: 37.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01573/0.4763, allocations: 2.432 MB / 0.5338 GB, free: 37.08 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005966/0.4823, allocations: 2.496 MB / 0.5362 GB, free: 36.45 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.4825, allocations: 197.2 kB / 0.5364 GB, free: 36.44 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001108/0.4837, allocations: 271 kB / 0.5366 GB, free: 36.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01581/0.4995, allocations: 8.578 MB / 0.545 GB, free: 32.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001373/0.4997, allocations: 46.7 kB / 0.5451 GB, free: 32.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000418/0.5001, allocations: 122.4 kB / 0.5452 GB, free: 32.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003115/0.5032, allocations: 1.735 MB / 0.5469 GB, free: 32.58 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/0.5171, allocations: 7.285 MB / 0.554 GB, free: 29.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0345/0.5517, allocations: 34.04 MB / 0.5872 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008535/0.5603, allocations: 3.482 MB / 0.5906 GB, free: 8.773 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.5626, allocations: 1.713 MB / 0.5923 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.5743, allocations: 7.434 MB / 0.5996 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.5744, allocations: 51.5 kB / 0.5996 GB, free: 15.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 3.647e-06/0.5744, allocations: 4 kB / 0.5996 GB, free: 15.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06471/0.6391, allocations: 19.63 MB / 0.6188 GB, free: 11.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.6393, allocations: 205.2 kB / 0.619 GB, free: 11.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006753/0.6461, allocations: 3.75 MB / 0.6226 GB, free: 7.531 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004748/0.6466, allocations: 49.7 kB / 0.6227 GB, free: 7.477 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002386/0.649, allocations: 2.806 MB / 0.6254 GB, free: 4.629 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001032/0.65, allocations: 0.7173 MB / 0.6261 GB, free: 3.902 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002567/0.6526, allocations: 1.206 MB / 0.6273 GB, free: 2.684 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.932e-05/0.6527, allocations: 301.1 kB / 0.6276 GB, free: 2.387 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003602/0.6563, allocations: 2.202 MB / 0.6297 GB, free: 184 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006029/0.6624, allocations: 5.766 MB / 0.6354 GB, free: 8.637 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.673, allocations: 8.587 MB / 0.6438 GB, free: 14.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001263/0.6731, allocations: 40 kB / 0.6438 GB, free: 14.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02137/0.6945, allocations: 9.182 MB / 0.6528 GB, free: 5.062 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002835/0.6949, allocations: 56.19 kB / 0.6528 GB, free: 5.008 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003416/0.6952, allocations: 124 kB / 0.6529 GB, free: 4.887 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006114/0.7014, allocations: 1.664 MB / 0.6546 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004318/0.7057, allocations: 1.322 MB / 0.6559 GB, free: 1.891 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/0.7202, allocations: 9.919 MB / 0.6655 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004461/0.7247, allocations: 311.5 kB / 0.6658 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001143/0.7259, allocations: 360 kB / 0.6662 GB, free: 7.168 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003783/0.7297, allocations: 1.892 MB / 0.668 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000874/0.7306, allocations: 331.7 kB / 0.6683 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01006/0.7407, allocations: 4.137 MB / 0.6724 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.379e-05/0.7407, allocations: 20 kB / 0.6724 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.934e-05/0.7408, allocations: 8 kB / 0.6724 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.637e-05/0.7408, allocations: 11.91 kB / 0.6724 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01966/0.7605, allocations: 8.508 MB / 0.6807 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.231e-05/0.7606, allocations: 8 kB / 0.6807 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.7621, allocations: 251.6 kB / 0.681 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005516/0.7676, allocations: 1.429 MB / 0.6824 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004361/0.7681, allocations: 31.98 kB / 0.6824 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01361/0.7818, allocations: 9.225 MB / 0.6914 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.7818, allocations: 0 / 0.6914 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/0.7946, allocations: 6.73 MB / 0.698 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.7962, allocations: 0.6216 MB / 0.6986 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008311/0.7971, allocations: 32.06 kB / 0.6986 GB, free: 5.652 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/0.799, allocations: 91.89 kB / 0.6987 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004285/0.7994, allocations: 109.1 kB / 0.6988 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/0.7996, allocations: 55.92 kB / 0.6989 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004158/0.8038, allocations: 2.332 MB / 0.7011 GB, free: 3.086 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/0.8038, allocations: 3.938 kB / 0.7011 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005454/0.8093, allocations: 0.9974 MB / 0.7021 GB, free: 2.09 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0006749/0.81, allocations: 164.2 kB / 0.7023 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009302/0.8193, allocations: 5.414 MB / 0.7076 GB, free: 12.53 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.8194, allocations: 4 kB / 0.7076 GB, free: 12.52 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002896/0.8223, allocations: 1.8 MB / 0.7093 GB, free: 10.71 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/0.8256, allocations: 392.2 kB / 0.7097 GB, free: 10.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01749/0.8431, allocations: 8.912 MB / 0.7184 GB, free: 1.387 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004379/0.8475, allocations: 2.957 MB / 0.7213 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009534/0.8485, allocations: 271.4 kB / 0.7216 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of SimCode: time 7.11e-07/0.8485, allocations: 0 / 0.7216 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of Templates: time 0.3401/1.189, allocations: 70.46 MB / 0.7904 GB, free: 171.9 MB / 0.5762 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches