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.001604/0.001603, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001923/0.001922, allocations: 194 kB / 18.12 MB, free: 5.363 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.434/1.434, allocations: 222.9 MB / 241.8 MB, free: 13.88 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.2134/0.2134, allocations: 44.16 MB / 336.1 MB, free: 2.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 64.06 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1534, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.03985/0.1933, allocations: 42.83 MB / 0.4994 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3323/0.5256, allocations: 9.249 MB / 0.5084 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01088/0.5365, allocations: 181.8 kB / 0.5086 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005288/0.5418, allocations: 2.467 MB / 0.511 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008326/0.5502, allocations: 1.755 MB / 0.5127 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002615/0.5529, allocations: 0.7161 MB / 0.5134 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.563, allocations: 6.119 MB / 0.5194 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005331/0.5684, allocations: 3.305 MB / 0.5226 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003623/0.572, allocations: 1.387 MB / 0.5239 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003996/0.576, allocations: 2.37 MB / 0.5263 GB, free: 6.938 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/0.5772, allocations: 241.4 kB / 0.5265 GB, free: 6.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.58, allocations: 0.9499 MB / 0.5274 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001947/0.5819, allocations: 1.881 MB / 0.5293 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00313/0.5851, allocations: 2.174 MB / 0.5314 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006983/0.5921, allocations: 6.554 MB / 0.5378 GB, free: 15.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.5921, allocations: 2.719 kB / 0.5378 GB, free: 15.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5921, allocations: 3.938 kB / 0.5378 GB, free: 15.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002514/0.5924, allocations: 0 / 0.5378 GB, free: 15.6 MB / 398.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.01041/0.6028, allocations: 4.826 MB / 0.5425 GB, free: 11.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.6029, allocations: 8.031 kB / 0.5425 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007365/0.6102, allocations: 1.943 MB / 0.5444 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005436/0.6157, allocations: 2.338 MB / 0.5467 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.6159, allocations: 253.1 kB / 0.5469 GB, free: 7.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007969/0.6167, allocations: 337.5 kB / 0.5473 GB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.6355, allocations: 10.2 MB / 0.5572 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001246/0.6357, allocations: 43.59 kB / 0.5573 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004265/0.6361, allocations: 168.1 kB / 0.5574 GB, free: 12.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002796/0.6389, allocations: 1.9 MB / 0.5593 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01728/0.6562, allocations: 8.145 MB / 0.5672 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05109/0.7074, allocations: 39.41 MB / 0.6057 GB, free: 9.652 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007659/0.7151, allocations: 3.284 MB / 0.6089 GB, free: 6.207 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.7166, allocations: 1.048 MB / 0.6099 GB, free: 5.148 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008027/0.7246, allocations: 5.915 MB / 0.6157 GB, free: 14.91 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.7247, allocations: 43.56 kB / 0.6158 GB, free: 14.86 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.979e-06/0.7247, allocations: 8 kB / 0.6158 GB, free: 14.85 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02179/0.7465, allocations: 9.435 MB / 0.625 GB, free: 5.312 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.7466, allocations: 149.5 kB / 0.6251 GB, free: 5.133 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005731/0.7523, allocations: 4.043 MB / 0.6291 GB, free: 1.062 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000235/0.7526, allocations: 53.7 kB / 0.6291 GB, free: 1.004 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00232/0.7549, allocations: 3.179 MB / 0.6322 GB, free: 13.83 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007107/0.7556, allocations: 0.6292 MB / 0.6328 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/0.7571, allocations: 1.222 MB / 0.634 GB, free: 11.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.7573, allocations: 305.1 kB / 0.6343 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002588/0.7599, allocations: 1.652 MB / 0.6359 GB, free: 10.01 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005121/0.765, allocations: 5.517 MB / 0.6413 GB, free: 2.562 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008876/0.7739, allocations: 7.787 MB / 0.6489 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.403e-05/0.774, allocations: 40 kB / 0.649 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01269/0.7867, allocations: 6.91 MB / 0.6557 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.706e-05/0.7868, allocations: 64 kB / 0.6558 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/0.787, allocations: 136 kB / 0.6559 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.7872, allocations: 180 kB / 0.6561 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004102/0.7913, allocations: 1.431 MB / 0.6575 GB, free: 100 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002008/0.7915, allocations: 267 kB / 0.6577 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/0.7953, allocations: 299.8 kB / 0.658 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005793/0.7958, allocations: 376.2 kB / 0.6584 GB, free: 15.18 MB / 0.5137 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.003459/0.7993, allocations: 2.04 MB / 0.6604 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007493/0.8001, allocations: 343.5 kB / 0.6607 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/0.8023, allocations: 1.344 MB / 0.662 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-05/0.8024, allocations: 23.44 kB / 0.662 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.8024, allocations: 0 / 0.662 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.8024, allocations: 7.969 kB / 0.662 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.813, allocations: 5.828 MB / 0.6677 GB, free: 5.289 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.08e-05/0.813, allocations: 20 kB / 0.6678 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009998/0.814, allocations: 275.5 kB / 0.668 GB, free: 5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.882e-05/0.8141, allocations: 28.41 kB / 0.668 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.79e-05/0.8142, allocations: 52 kB / 0.6681 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-05/0.8142, allocations: 35.86 kB / 0.6681 GB, free: 4.887 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.157e-05/0.8142, allocations: 23.88 kB / 0.6681 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004205/0.8185, allocations: 3.291 MB / 0.6714 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.8195, allocations: 416.4 kB / 0.6718 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000326/0.8199, allocations: 47.98 kB / 0.6718 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.8209, allocations: 63.97 kB / 0.6719 GB, free: 0.7852 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.8212, allocations: 151.4 kB / 0.672 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.8213, allocations: 67.98 kB / 0.6721 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003814/0.8251, allocations: 2.507 MB / 0.6745 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.01e-07/0.8251, allocations: 0 / 0.6745 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004802/0.8299, allocations: 0.9047 MB / 0.6754 GB, free: 13.15 MB / 0.5294 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.0004213/0.8303, allocations: 198.3 kB / 0.6756 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006258/0.8366, allocations: 3.769 MB / 0.6793 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/0.8366, allocations: 12.06 kB / 0.6793 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000986/0.8376, allocations: 0.7439 MB / 0.68 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.8405, allocations: 454.5 kB / 0.6804 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.856, allocations: 10.79 MB / 0.691 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003553/0.8596, allocations: 3.177 MB / 0.6941 GB, free: 9.742 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004448/0.8641, allocations: 1.808 MB / 0.6959 GB, free: 7.926 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005227/0.8646, allocations: 247.4 kB / 0.6961 GB, free: 7.684 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/0.8646, allocations: 0 / 0.6961 GB, free: 7.684 MB / 0.545 GB Notification: Performance of Templates: time 0.319/1.184, allocations: 27.6 MB / 0.723 GB, free: 194.4 MB / 0.545 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/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