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.001146/0.001146, allocations: 108.5 kB / 17.98 MB, free: 5.219 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.001081/0.001081, allocations: 193.3 kB / 18.9 MB, free: 4.297 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.329/1.329, allocations: 222.9 MB / 242.6 MB, free: 13.56 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.1974/0.1974, allocations: 44.17 MB / 336.9 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 60.69 kB / 408.5 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1122, allocations: 60.84 MB / 469.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.0396/0.1518, allocations: 42.83 MB / 0.5002 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2495/0.4014, allocations: 9.14 MB / 0.5091 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00942/0.4108, allocations: 186.1 kB / 0.5093 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005769/0.4166, allocations: 2.381 MB / 0.5116 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007137/0.4238, allocations: 1.749 MB / 0.5133 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002411/0.4263, allocations: 0.731 MB / 0.5141 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00842/0.4347, allocations: 4.444 MB / 0.5184 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006625/0.4414, allocations: 3.524 MB / 0.5218 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004142/0.4456, allocations: 1.582 MB / 0.5234 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004259/0.4499, allocations: 2.459 MB / 0.5258 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001511/0.4514, allocations: 332 kB / 0.5261 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003099/0.4545, allocations: 1.002 MB / 0.5271 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002694/0.4572, allocations: 1.968 MB / 0.529 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004512/0.4618, allocations: 2.276 MB / 0.5312 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006344/0.4681, allocations: 5.398 MB / 0.5365 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.4682, allocations: 0 / 0.5365 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4682, allocations: 0 / 0.5365 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003076/0.4685, allocations: 0 / 0.5365 GB, free: 0.8242 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01272/0.4812, allocations: 4.829 MB / 0.5412 GB, free: 13.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.4813, allocations: 9.531 kB / 0.5412 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007791/0.4891, allocations: 1.946 MB / 0.5431 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005427/0.4946, allocations: 2.34 MB / 0.5454 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/0.4948, allocations: 253.9 kB / 0.5457 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001344/0.4962, allocations: 329 kB / 0.546 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01905/0.5153, allocations: 10.2 MB / 0.5559 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.5154, allocations: 51.53 kB / 0.556 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004249/0.5159, allocations: 158.8 kB / 0.5561 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002649/0.5185, allocations: 1.897 MB / 0.558 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01591/0.5344, allocations: 8.143 MB / 0.5659 GB, free: 4.141 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04707/0.5816, allocations: 39.42 MB / 0.6044 GB, free: 11.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00767/0.5893, allocations: 3.271 MB / 0.6076 GB, free: 8.305 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/0.5909, allocations: 1.057 MB / 0.6087 GB, free: 7.234 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008694/0.5996, allocations: 5.903 MB / 0.6144 GB, free: 1.004 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.5997, allocations: 63.42 kB / 0.6145 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 5.169e-06/0.5997, allocations: 0 / 0.6145 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02164/0.6214, allocations: 9.435 MB / 0.6237 GB, free: 7.395 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.18e-05/0.6215, allocations: 145.5 kB / 0.6238 GB, free: 7.219 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0054/0.6269, allocations: 4.043 MB / 0.6278 GB, free: 3.148 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002278/0.6272, allocations: 49.7 kB / 0.6278 GB, free: 3.094 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002019/0.6292, allocations: 3.18 MB / 0.6309 GB, free: 15.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000646/0.6299, allocations: 0.6423 MB / 0.6316 GB, free: 15.28 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/0.6313, allocations: 1.212 MB / 0.6327 GB, free: 14.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.278e-05/0.6314, allocations: 313 kB / 0.633 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002458/0.6338, allocations: 1.655 MB / 0.6347 GB, free: 12.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005011/0.6389, allocations: 5.517 MB / 0.64 GB, free: 4.637 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008352/0.6472, allocations: 7.786 MB / 0.6476 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.843e-05/0.6474, allocations: 40 kB / 0.6477 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01256/0.6599, allocations: 6.897 MB / 0.6544 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.752e-05/0.6601, allocations: 68.25 kB / 0.6545 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/0.6602, allocations: 136 kB / 0.6546 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.6604, allocations: 180 kB / 0.6548 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004386/0.6648, allocations: 1.435 MB / 0.6562 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002041/0.665, allocations: 267 kB / 0.6564 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00408/0.6691, allocations: 299.6 kB / 0.6567 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006886/0.6698, allocations: 375.1 kB / 0.6571 GB, free: 1.258 MB / 0.4981 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.003148/0.673, allocations: 2.044 MB / 0.6591 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000604/0.6736, allocations: 343.5 kB / 0.6594 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.6757, allocations: 1.344 MB / 0.6607 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.357e-05/0.6758, allocations: 16 kB / 0.6607 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.6758, allocations: 4 kB / 0.6607 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.6758, allocations: 11.97 kB / 0.6608 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009562/0.6854, allocations: 5.824 MB / 0.6664 GB, free: 7.367 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-05/0.6855, allocations: 16 kB / 0.6665 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.6865, allocations: 279.5 kB / 0.6667 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.4e-05/0.6866, allocations: 24 kB / 0.6667 GB, free: 7.055 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.6867, allocations: 51.94 kB / 0.6668 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.981e-05/0.6867, allocations: 31.92 kB / 0.6668 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.158e-05/0.6867, allocations: 27.88 kB / 0.6669 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004342/0.6911, allocations: 3.286 MB / 0.6701 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009981/0.6921, allocations: 420.6 kB / 0.6705 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000448/0.6926, allocations: 52.44 kB / 0.6705 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.6938, allocations: 59.97 kB / 0.6706 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.694, allocations: 139.4 kB / 0.6707 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6941, allocations: 82.11 kB / 0.6708 GB, free: 2.648 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003979/0.6981, allocations: 2.504 MB / 0.6732 GB, free: 136 kB / 0.5137 GB Notification: Performance of sort global known variables: time 3.81e-07/0.6981, allocations: 3.938 kB / 0.6732 GB, free: 132 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005057/0.7031, allocations: 0.9024 MB / 0.6741 GB, free: 15.22 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.0005025/0.7037, allocations: 201.6 kB / 0.6743 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006705/0.7104, allocations: 3.986 MB / 0.6782 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/0.7104, allocations: 0.8125 kB / 0.6782 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.7115, allocations: 0.7523 MB / 0.6789 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/0.7147, allocations: 473.9 kB / 0.6794 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01681/0.7315, allocations: 11.21 MB / 0.6903 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003656/0.7352, allocations: 3.169 MB / 0.6934 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008704/0.7361, allocations: 291.4 kB / 0.6937 GB, free: 10.89 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/0.7361, allocations: 0 / 0.6937 GB, free: 10.89 MB / 0.545 GB Notification: Performance of Templates: time 0.2983/1.034, allocations: 53.13 MB / 0.7456 GB, free: 177.9 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/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