Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008309/0.0008306, allocations: 100.8 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008994/0.0008993, allocations: 194.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.7 MB / 246.4 MB, free: 9.801 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2453/0.2453, allocations: 46.18 MB / 344.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002583/0.0002587, allocations: 4 kB / 418.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1385, allocations: 63.57 MB / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.3409/0.4795, allocations: 38.5 MB / 0.5087 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.502, allocations: 8.646 MB / 0.5171 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009362/0.5114, allocations: 183.7 kB / 0.5173 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008431/0.5199, allocations: 1.991 MB / 0.5193 GB, free: 9.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02164/0.5416, allocations: 5.923 MB / 0.525 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004156/0.5458, allocations: 0.6743 MB / 0.5257 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009591/0.5554, allocations: 4.983 MB / 0.5306 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006652/0.562, allocations: 4.12 MB / 0.5346 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003111/0.5652, allocations: 1.266 MB / 0.5358 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003251/0.5685, allocations: 2.071 MB / 0.5378 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005671/0.569, allocations: 151.5 kB / 0.538 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001806/0.5709, allocations: 0.7125 MB / 0.5387 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001427/0.5723, allocations: 1.698 MB / 0.5403 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.5733, allocations: 0.8194 MB / 0.5411 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004705/0.578, allocations: 5.197 MB / 0.5462 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.5781, allocations: 128 / 0.5462 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.5781, allocations: 64 / 0.5462 GB, free: 0 / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001623/0.5783, allocations: 4.047 kB / 0.5462 GB, free: 15.99 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.008405/0.5867, allocations: 3.977 MB / 0.5501 GB, free: 12.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.5867, allocations: 12.5 kB / 0.5501 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007303/0.5941, allocations: 1.999 MB / 0.5521 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005351/0.5994, allocations: 2.246 MB / 0.5543 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.5997, allocations: 247.2 kB / 0.5545 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000909/0.6006, allocations: 330.4 kB / 0.5548 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.6196, allocations: 10.24 MB / 0.5648 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/0.6197, allocations: 47.53 kB / 0.5649 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004314/0.6202, allocations: 157.7 kB / 0.565 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0028/0.623, allocations: 1.908 MB / 0.5669 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.6402, allocations: 8.156 MB / 0.5748 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04944/0.6897, allocations: 39.4 MB / 0.6133 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007994/0.6977, allocations: 3.301 MB / 0.6165 GB, free: 8.512 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00191/0.6996, allocations: 1.059 MB / 0.6176 GB, free: 7.441 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009215/0.7089, allocations: 5.992 MB / 0.6234 GB, free: 1.113 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.709, allocations: 57.03 kB / 0.6235 GB, free: 1.051 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 5.54e-06/0.709, allocations: 0 / 0.6235 GB, free: 1.051 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02426/0.7332, allocations: 9.526 MB / 0.6328 GB, free: 7.422 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.7334, allocations: 149.5 kB / 0.6329 GB, free: 7.246 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007282/0.7407, allocations: 4.019 MB / 0.6369 GB, free: 3.203 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002964/0.741, allocations: 49.7 kB / 0.6369 GB, free: 3.148 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00259/0.7436, allocations: 3.177 MB / 0.64 GB, free: 15.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008859/0.7445, allocations: 0.6298 MB / 0.6406 GB, free: 15.36 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.7448, allocations: 124 kB / 0.6407 GB, free: 15.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003737/0.7451, allocations: 0.5623 MB / 0.6413 GB, free: 14.67 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002793/0.7479, allocations: 1.644 MB / 0.6429 GB, free: 13.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005584/0.7535, allocations: 5.509 MB / 0.6483 GB, free: 5.578 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004658/0.7582, allocations: 2.939 MB / 0.6511 GB, free: 2.641 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-05/0.7583, allocations: 44 kB / 0.6512 GB, free: 2.598 MB / 494.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01233/0.7706, allocations: 6.877 MB / 0.6579 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.494e-05/0.7708, allocations: 68.06 kB / 0.658 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/0.7709, allocations: 136 kB / 0.6581 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001968/0.7712, allocations: 200 kB / 0.6583 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004635/0.7758, allocations: 1.443 MB / 0.6597 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002711/0.7761, allocations: 264.3 kB / 0.6599 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004441/0.7806, allocations: 307.5 kB / 0.6602 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007891/0.7814, allocations: 376 kB / 0.6606 GB, free: 8.957 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004579/0.7859, allocations: 2.033 MB / 0.6626 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/0.7871, allocations: 351.4 kB / 0.6629 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.7884, allocations: 414.6 kB / 0.6633 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.784e-05/0.7885, allocations: 22.73 kB / 0.6633 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.348e-05/0.7885, allocations: 0 / 0.6633 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-05/0.7885, allocations: 7.969 kB / 0.6633 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01104/0.7996, allocations: 5.848 MB / 0.6691 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.261e-05/0.7996, allocations: 20.05 kB / 0.6691 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.8007, allocations: 283.5 kB / 0.6693 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-05/0.8008, allocations: 29.31 kB / 0.6694 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.442e-05/0.8009, allocations: 48.56 kB / 0.6694 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-05/0.8009, allocations: 39.86 kB / 0.6695 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.2e-05/0.801, allocations: 27.88 kB / 0.6695 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004567/0.8055, allocations: 3.306 MB / 0.6727 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009661/0.8065, allocations: 416.5 kB / 0.6731 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000311/0.8068, allocations: 51.98 kB / 0.6732 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.8079, allocations: 75.86 kB / 0.6732 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.808, allocations: 151.5 kB / 0.6734 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.8082, allocations: 74.39 kB / 0.6734 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004408/0.8126, allocations: 2.484 MB / 0.6759 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.345e-06/0.8126, allocations: 0 / 0.6759 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005597/0.8182, allocations: 0.8802 MB / 0.6767 GB, free: 7.855 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000416/0.8186, allocations: 198.2 kB / 0.6769 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006382/0.825, allocations: 3.781 MB / 0.6806 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.8251, allocations: 4 kB / 0.6806 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.8261, allocations: 0.754 MB / 0.6814 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002892/0.829, allocations: 467.1 kB / 0.6818 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01589/0.845, allocations: 10.41 MB / 0.692 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003407/0.8484, allocations: 3.177 MB / 0.6951 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004653/0.8531, allocations: 1.812 MB / 0.6968 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006066/0.8537, allocations: 239.4 kB / 0.6971 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of SimCode: time 1.302e-06/0.8537, allocations: 5.25 kB / 0.6971 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of Templates: time 0.3199/1.174, allocations: 26.73 MB / 0.7232 GB, free: 187.2 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches