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.001221/0.001221, allocations: 107.5 kB / 17.03 MB, free: 5.66 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.001232/0.001232, allocations: 190.9 kB / 17.96 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.1 MB / 223.8 MB, free: 12.23 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.2107/0.2107, allocations: 43.53 MB / 314.7 MB, free: 476 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.001444/0.001444, allocations: 67.05 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.1002, allocations: 57.8 MB / 442 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.009203/0.1094, allocations: 10.39 MB / 452.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007492/0.1169, allocations: 3.877 MB / 456.2 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.1183, allocations: 55.88 kB / 456.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003672/0.122, allocations: 2.071 MB / 458.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003692/0.1257, allocations: 1.712 MB / 460.1 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.1271, allocations: 0.6862 MB / 460.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004491/0.1316, allocations: 3.813 MB / 464.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002857/0.1345, allocations: 2.598 MB / 467.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00173/0.1363, allocations: 1.328 MB / 468.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002187/0.1385, allocations: 1.85 MB / 470.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00046/0.1389, allocations: 264 kB / 470.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.1409, allocations: 1.178 MB / 471.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001473/0.1424, allocations: 1.664 MB / 473.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001723/0.1442, allocations: 1.907 MB / 475.3 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006305/0.1505, allocations: 6.213 MB / 481.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1505, allocations: 0 / 481.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1505, allocations: 0 / 481.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001226/0.1506, allocations: 0 / 481.6 MB, free: 14.36 MB / 366.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.007807/0.1585, allocations: 4.225 MB / 485.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.1585, allocations: 11.89 kB / 485.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01465/0.1732, allocations: 2.433 MB / 488.2 MB, free: 7.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006721/0.1799, allocations: 2.488 MB / 490.7 MB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.1802, allocations: 197.3 kB / 490.9 MB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008936/0.1811, allocations: 279.8 kB / 491.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/0.1937, allocations: 8.576 MB / 499.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.954e-05/0.1938, allocations: 43.62 kB / 499.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003088/0.1941, allocations: 127.9 kB / 499.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002571/0.1967, allocations: 1.743 MB / 0.4899 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01355/0.2103, allocations: 7.28 MB / 0.497 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2603/0.4706, allocations: 34.03 MB / 0.5302 GB, free: 79.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0165/0.4871, allocations: 3.473 MB / 0.5336 GB, free: 78.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003764/0.491, allocations: 1.718 MB / 0.5353 GB, free: 78.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01695/0.508, allocations: 7.426 MB / 0.5426 GB, free: 76.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.352e-05/0.5081, allocations: 54.88 kB / 0.5426 GB, free: 76.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=151): time 8.607e-06/0.5081, allocations: 0.9375 kB / 0.5426 GB, free: 76.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=188): time 0.06341/0.5716, allocations: 19.63 MB / 0.5618 GB, free: 68.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.522e-05/0.5717, allocations: 200.4 kB / 0.562 GB, free: 68.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00628/0.578, allocations: 3.754 MB / 0.5656 GB, free: 65.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004971/0.5785, allocations: 53.7 kB / 0.5657 GB, free: 65.01 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.5804, allocations: 2.799 MB / 0.5684 GB, free: 62.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007816/0.5812, allocations: 0.7186 MB / 0.5691 GB, free: 61.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00182/0.583, allocations: 1.206 MB / 0.5703 GB, free: 60.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.302e-05/0.5831, allocations: 305.1 kB / 0.5706 GB, free: 59.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002643/0.5858, allocations: 2.198 MB / 0.5727 GB, free: 57.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004185/0.59, allocations: 5.762 MB / 0.5784 GB, free: 50.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007331/0.5973, allocations: 8.592 MB / 0.5868 GB, free: 40.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.215e-05/0.5974, allocations: 40 kB / 0.5868 GB, free: 40.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01547/0.6129, allocations: 9.173 MB / 0.5958 GB, free: 30.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.151e-05/0.613, allocations: 60 kB / 0.5958 GB, free: 30.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.194e-05/0.6131, allocations: 124 kB / 0.5959 GB, free: 30.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005142/0.6182, allocations: 1.657 MB / 0.5975 GB, free: 29.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00428/0.6225, allocations: 1.329 MB / 0.5988 GB, free: 27.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/0.6346, allocations: 9.916 MB / 0.6085 GB, free: 17.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005386/0.6401, allocations: 315.5 kB / 0.6088 GB, free: 17.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001138/0.6412, allocations: 363.3 kB / 0.6092 GB, free: 16.97 MB / 414.1 MB 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.003134/0.6444, allocations: 1.898 MB / 0.611 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007409/0.6451, allocations: 335.6 kB / 0.6114 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008068/0.6532, allocations: 4.134 MB / 0.6154 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.292e-05/0.6533, allocations: 20.5 kB / 0.6154 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.6533, allocations: 8 kB / 0.6154 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.6533, allocations: 7.969 kB / 0.6154 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01545/0.6688, allocations: 8.511 MB / 0.6237 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/0.6688, allocations: 3.5 kB / 0.6237 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.67, allocations: 248.1 kB / 0.624 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004651/0.6747, allocations: 1.432 MB / 0.6254 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00021/0.6749, allocations: 32 kB / 0.6254 GB, free: 312 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01343/0.6884, allocations: 9.23 MB / 0.6344 GB, free: 6.934 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.6884, allocations: 0 / 0.6344 GB, free: 6.934 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/0.7005, allocations: 6.725 MB / 0.641 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/0.7026, allocations: 0.626 MB / 0.6416 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004556/0.7031, allocations: 28 kB / 0.6416 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.7045, allocations: 87.89 kB / 0.6417 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003651/0.7048, allocations: 113.1 kB / 0.6418 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.705, allocations: 44 kB / 0.6419 GB, free: 15.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003349/0.7083, allocations: 2.332 MB / 0.6441 GB, free: 12.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.7084, allocations: 0 / 0.6441 GB, free: 12.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004683/0.713, allocations: 1.002 MB / 0.6451 GB, free: 11.95 MB / 446.1 MB 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.0004413/0.7135, allocations: 167.6 kB / 0.6453 GB, free: 11.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008264/0.7218, allocations: 5.417 MB / 0.6506 GB, free: 6.391 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.7218, allocations: 0 / 0.6506 GB, free: 6.391 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002573/0.7244, allocations: 1.799 MB / 0.6523 GB, free: 4.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/0.7267, allocations: 388.3 kB / 0.6527 GB, free: 4.207 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.7408, allocations: 8.547 MB / 0.661 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003268/0.7441, allocations: 2.971 MB / 0.6639 GB, free: 8.656 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004283/0.7484, allocations: 1.812 MB / 0.6657 GB, free: 6.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006269/0.749, allocations: 231.3 kB / 0.6659 GB, free: 6.613 MB / 462.1 MB Notification: Performance of SimCode: time 1.884e-06/0.749, allocations: 0 / 0.6659 GB, free: 6.613 MB / 462.1 MB Notification: Performance of Templates: time 0.066/0.8151, allocations: 34.33 MB / 0.6995 GB, free: 4.48 MB / 494.1 MB 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 -s gbode -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