Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_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.001017/0.001016, allocations: 91.06 kB / 17.35 MB, free: 5.996 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.001546/0.001546, allocations: 177.9 kB / 18.26 MB, free: 5.391 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.403/1.403, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2052/0.2052, allocations: 44.25 MB / 337.7 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004456/0.0004456, allocations: 8.281 kB / 410.3 MB, free: 27.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1569, allocations: 61.93 MB / 472.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03363/0.1906, allocations: 33.83 MB / 0.4942 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.2088, allocations: 7.882 MB / 0.5019 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006689/0.2155, allocations: 151.6 kB / 0.5021 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.2171, allocations: 378.2 kB / 0.5024 GB, free: 3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004656/0.2218, allocations: 1.596 MB / 0.504 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.2235, allocations: 0.6357 MB / 0.5046 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2704/0.4939, allocations: 5.685 MB / 0.5102 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005986/0.4999, allocations: 3.313 MB / 0.5134 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002561/0.5025, allocations: 1.024 MB / 0.5144 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003907/0.5065, allocations: 1.805 MB / 0.5162 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006249/0.5071, allocations: 128.1 kB / 0.5163 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002608/0.5097, allocations: 1.115 MB / 0.5174 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00201/0.5118, allocations: 1.529 MB / 0.5189 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002114/0.5139, allocations: 1.752 MB / 0.5206 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006657/0.5206, allocations: 5.79 MB / 0.5262 GB, free: 7.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.5206, allocations: 0 / 0.5262 GB, free: 7.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5206, allocations: 0 / 0.5262 GB, free: 7.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001883/0.5208, allocations: 6.219 kB / 0.5262 GB, free: 7.23 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.007539/0.5284, allocations: 3.494 MB / 0.5296 GB, free: 5.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.5284, allocations: 9.312 kB / 0.5296 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01737/0.5458, allocations: 2.492 MB / 0.5321 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005436/0.5513, allocations: 2.39 MB / 0.5344 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.5515, allocations: 194.7 kB / 0.5346 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009488/0.5524, allocations: 277.3 kB / 0.5349 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0146/0.567, allocations: 8.596 MB / 0.5433 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.5672, allocations: 44.77 kB / 0.5433 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004346/0.5676, allocations: 121.2 kB / 0.5434 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002864/0.5705, allocations: 1.737 MB / 0.5451 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01624/0.5868, allocations: 7.307 MB / 0.5523 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04452/0.6313, allocations: 34.2 MB / 0.5857 GB, free: 1.492 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009272/0.6407, allocations: 3.525 MB / 0.5891 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002461/0.6432, allocations: 1.712 MB / 0.5908 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/0.6551, allocations: 7.426 MB / 0.598 GB, free: 4.465 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.6552, allocations: 50.09 kB / 0.5981 GB, free: 4.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.488e-06/0.6552, allocations: 4 kB / 0.5981 GB, free: 4.406 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06853/0.7237, allocations: 19.96 MB / 0.6176 GB, free: 360 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00021/0.7239, allocations: 201.2 kB / 0.6178 GB, free: 116 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005775/0.7297, allocations: 3.734 MB / 0.6214 GB, free: 12.39 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003877/0.7301, allocations: 53.7 kB / 0.6214 GB, free: 12.33 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002026/0.7322, allocations: 2.814 MB / 0.6242 GB, free: 9.523 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008562/0.7331, allocations: 0.7099 MB / 0.6249 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006483/0.7337, allocations: 0.5139 MB / 0.6254 GB, free: 8.297 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.7338, allocations: 305.1 kB / 0.6257 GB, free: 7.996 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003486/0.7373, allocations: 2.201 MB / 0.6278 GB, free: 5.793 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006322/0.7437, allocations: 5.768 MB / 0.6335 GB, free: 14.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/0.7551, allocations: 8.591 MB / 0.6419 GB, free: 4.473 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/0.7552, allocations: 36 kB / 0.6419 GB, free: 4.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02143/0.7767, allocations: 9.222 MB / 0.6509 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.7768, allocations: 58.66 kB / 0.651 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001797/0.777, allocations: 128.9 kB / 0.6511 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006452/0.7835, allocations: 1.687 MB / 0.6527 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004644/0.7881, allocations: 1.318 MB / 0.654 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01414/0.8023, allocations: 9.313 MB / 0.6631 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004479/0.8068, allocations: 307.5 kB / 0.6634 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007544/0.8076, allocations: 364 kB / 0.6637 GB, free: 14.18 MB / 0.5137 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.003978/0.8116, allocations: 1.904 MB / 0.6656 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008336/0.8124, allocations: 328.2 kB / 0.6659 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/0.8227, allocations: 4.172 MB / 0.67 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.597e-05/0.8228, allocations: 20 kB / 0.67 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.8228, allocations: 8 kB / 0.67 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.745e-05/0.8229, allocations: 11.91 kB / 0.67 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02002/0.8429, allocations: 8.592 MB / 0.6784 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/0.8429, allocations: 0 / 0.6784 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.8443, allocations: 247.6 kB / 0.6787 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00614/0.8505, allocations: 1.459 MB / 0.6801 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003661/0.8509, allocations: 31.98 kB / 0.6801 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01391/0.8648, allocations: 8.627 MB / 0.6885 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.8648, allocations: 0 / 0.6885 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/0.8784, allocations: 6.757 MB / 0.6951 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001302/0.8797, allocations: 376.7 kB / 0.6955 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004678/0.8802, allocations: 35.42 kB / 0.6955 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.8816, allocations: 87.89 kB / 0.6956 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003689/0.882, allocations: 113.1 kB / 0.6957 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.8821, allocations: 55.98 kB / 0.6958 GB, free: 13.15 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004043/0.8862, allocations: 2.324 MB / 0.698 GB, free: 10.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.71e-07/0.8862, allocations: 0 / 0.698 GB, free: 10.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005472/0.8917, allocations: 0.9961 MB / 0.699 GB, free: 9.844 MB / 0.545 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.0005842/0.8923, allocations: 162.6 kB / 0.6992 GB, free: 9.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009948/0.9022, allocations: 5.406 MB / 0.7044 GB, free: 4.293 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/0.9023, allocations: 0 / 0.7044 GB, free: 4.293 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003014/0.9053, allocations: 1.818 MB / 0.7062 GB, free: 2.461 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00304/0.9084, allocations: 380.7 kB / 0.7066 GB, free: 2.09 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2572/1.166, allocations: 10.42 MB / 0.7168 GB, free: 199.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004167/1.17, allocations: 2.966 MB / 0.7197 GB, free: 198.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005451/1.175, allocations: 1.812 MB / 0.7214 GB, free: 198.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008113/1.176, allocations: 226.2 kB / 0.7216 GB, free: 198.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.11e-07/1.176, allocations: 0 / 0.7216 GB, free: 198.4 MB / 0.545 GB Notification: Performance of Templates: time 0.06413/1.24, allocations: 37.17 MB / 0.7579 GB, free: 176 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches