Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 110 kB / 18.45 MB, free: 4.59 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.001025/0.001025, allocations: 182.3 kB / 19.38 MB, free: 3.672 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.305/1.305, allocations: 222.9 MB / 243.1 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1967/0.1967, allocations: 44.19 MB / 337.4 MB, free: 2.621 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 59.91 kB / 471.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.332, allocations: 60.81 MB / 0.5196 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01185/0.3439, allocations: 11.4 MB / 0.5307 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008978/0.3529, allocations: 4.039 MB / 0.5346 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002431/0.3553, allocations: 64.78 kB / 0.5347 GB, free: 8.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00516/0.3605, allocations: 2.486 MB / 0.5371 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005523/0.3661, allocations: 1.869 MB / 0.539 GB, free: 5.555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.368, allocations: 0.7854 MB / 0.5397 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00661/0.3747, allocations: 4.426 MB / 0.544 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00404/0.3787, allocations: 3.331 MB / 0.5473 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002729/0.3815, allocations: 1.561 MB / 0.5488 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003258/0.3847, allocations: 2.224 MB / 0.551 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008868/0.3857, allocations: 340 kB / 0.5513 GB, free: 11.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002276/0.3879, allocations: 0.9831 MB / 0.5523 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.3898, allocations: 1.94 MB / 0.5542 GB, free: 8.617 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002604/0.3924, allocations: 2.249 MB / 0.5564 GB, free: 6.355 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007829/0.4002, allocations: 6.87 MB / 0.5631 GB, free: 15.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4003, allocations: 3.938 kB / 0.5631 GB, free: 15.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4003, allocations: 0 / 0.5631 GB, free: 15.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001897/0.4005, allocations: 0 / 0.5631 GB, free: 15.46 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.0132/0.4137, allocations: 4.827 MB / 0.5678 GB, free: 10.56 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.4138, allocations: 8.031 kB / 0.5678 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00786/0.4216, allocations: 1.949 MB / 0.5697 GB, free: 8.594 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00676/0.4284, allocations: 2.387 MB / 0.572 GB, free: 6.145 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004137/0.4289, allocations: 254.4 kB / 0.5723 GB, free: 5.895 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001762/0.4307, allocations: 323.8 kB / 0.5726 GB, free: 5.578 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02092/0.4516, allocations: 10.21 MB / 0.5826 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002258/0.4519, allocations: 51.53 kB / 0.5826 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001152/0.4531, allocations: 159.9 kB / 0.5828 GB, free: 10.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003137/0.4562, allocations: 1.908 MB / 0.5846 GB, free: 8.461 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/0.4736, allocations: 8.15 MB / 0.5926 GB, free: 300 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05334/0.527, allocations: 39.25 MB / 0.6309 GB, free: 7.852 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008545/0.5356, allocations: 3.28 MB / 0.6341 GB, free: 4.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001793/0.5375, allocations: 1.045 MB / 0.6351 GB, free: 3.34 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009436/0.5469, allocations: 5.902 MB / 0.6409 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.385e-05/0.547, allocations: 59.42 kB / 0.641 GB, free: 13 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.538e-06/0.5471, allocations: 3.938 kB / 0.641 GB, free: 13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02444/0.5715, allocations: 9.423 MB / 0.6502 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.5717, allocations: 204.9 kB / 0.6504 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007211/0.5789, allocations: 4.043 MB / 0.6543 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000252/0.5792, allocations: 49.7 kB / 0.6544 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002558/0.5818, allocations: 3.182 MB / 0.6575 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008501/0.5826, allocations: 0.6327 MB / 0.6581 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001839/0.5845, allocations: 1.214 MB / 0.6593 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.5846, allocations: 309 kB / 0.6596 GB, free: 9.691 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002584/0.5872, allocations: 1.656 MB / 0.6612 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005414/0.5926, allocations: 5.522 MB / 0.6666 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009025/0.6017, allocations: 7.79 MB / 0.6742 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001454/0.6019, allocations: 40 kB / 0.6742 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01409/0.616, allocations: 6.906 MB / 0.681 GB, free: 15.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.6162, allocations: 67.12 kB / 0.681 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002455/0.6164, allocations: 140 kB / 0.6812 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002375/0.6167, allocations: 180 kB / 0.6813 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004566/0.6213, allocations: 1.439 MB / 0.6827 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002698/0.6216, allocations: 267.4 kB / 0.683 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004173/0.6258, allocations: 299.5 kB / 0.6833 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008663/0.6266, allocations: 372 kB / 0.6836 GB, free: 13.16 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (775): * Single equations (assignments): 772 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003838/0.6305, allocations: 2.037 MB / 0.6856 GB, free: 11.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000781/0.6313, allocations: 343.5 kB / 0.6859 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002797/0.6341, allocations: 1.34 MB / 0.6873 GB, free: 9.422 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.944e-05/0.6341, allocations: 19.94 kB / 0.6873 GB, free: 9.402 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.6342, allocations: 0 / 0.6873 GB, free: 9.402 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/0.6342, allocations: 15.91 kB / 0.6873 GB, free: 9.387 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01131/0.6455, allocations: 5.821 MB / 0.693 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.542e-05/0.6456, allocations: 20 kB / 0.693 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.6467, allocations: 287.4 kB / 0.6933 GB, free: 2.961 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.15e-05/0.6467, allocations: 24 kB / 0.6933 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.6468, allocations: 44 kB / 0.6933 GB, free: 2.895 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.711e-05/0.6469, allocations: 35.86 kB / 0.6934 GB, free: 2.859 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.871e-05/0.6469, allocations: 31.86 kB / 0.6934 GB, free: 2.828 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004125/0.651, allocations: 3.287 MB / 0.6966 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/0.6521, allocations: 420.5 kB / 0.697 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007582/0.6529, allocations: 51.98 kB / 0.6971 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.6544, allocations: 59.95 kB / 0.6971 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.6546, allocations: 143.4 kB / 0.6973 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.6547, allocations: 72 kB / 0.6973 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004744/0.6595, allocations: 2.515 MB / 0.6998 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/0.6595, allocations: 0 / 0.6998 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005256/0.6647, allocations: 0.91 MB / 0.7007 GB, free: 11.09 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005859/0.6654, allocations: 190.7 kB / 0.7009 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007096/0.6725, allocations: 3.831 MB / 0.7046 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.039e-05/0.6725, allocations: 8.75 kB / 0.7046 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.6738, allocations: 0.7408 MB / 0.7053 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003861/0.6777, allocations: 470.6 kB / 0.7058 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/0.696, allocations: 9.145 MB / 0.7147 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00501/0.701, allocations: 3.169 MB / 0.7178 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000928/0.702, allocations: 291.4 kB / 0.7181 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of SimCode: time 1.062e-06/0.702, allocations: 0 / 0.7181 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of Templates: time 0.3271/1.029, allocations: 53.81 MB / 0.7706 GB, free: 152.9 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches