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.0008307/0.0008307, allocations: 95.34 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008682/0.0008683, allocations: 202 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.7 MB / 246.8 MB, free: 9.773 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2314/0.2314, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003729, allocations: 8 kB / 419.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1746, allocations: 63.55 MB / 483.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.3737/0.5483, allocations: 41.4 MB / 0.5122 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02359/0.572, allocations: 9.093 MB / 0.5211 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009339/0.5813, allocations: 183.3 kB / 0.5212 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001645/0.583, allocations: 434 kB / 0.5216 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005891/0.5889, allocations: 1.734 MB / 0.5233 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001896/0.5908, allocations: 0.7127 MB / 0.524 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009858/0.6007, allocations: 6.209 MB / 0.5301 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006338/0.607, allocations: 4.541 MB / 0.5345 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002349/0.6094, allocations: 1.161 MB / 0.5357 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00272/0.6121, allocations: 2.1 MB / 0.5377 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004411/0.6126, allocations: 151 kB / 0.5379 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.6144, allocations: 0.8248 MB / 0.5387 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001444/0.6159, allocations: 1.731 MB / 0.5404 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001761/0.6177, allocations: 2.015 MB / 0.5423 GB, free: 188 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006798/0.6245, allocations: 6.313 MB / 0.5485 GB, free: 11.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.6245, allocations: 4 kB / 0.5485 GB, free: 11.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6245, allocations: 0 / 0.5485 GB, free: 11.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001987/0.6247, allocations: 0 / 0.5485 GB, free: 11.63 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.007743/0.6325, allocations: 3.925 MB / 0.5523 GB, free: 7.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.6325, allocations: 8.875 kB / 0.5523 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0075/0.64, allocations: 1.991 MB / 0.5543 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004595/0.6447, allocations: 2.288 MB / 0.5565 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.6449, allocations: 254.8 kB / 0.5568 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006462/0.6455, allocations: 333.8 kB / 0.5571 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01796/0.6635, allocations: 10.26 MB / 0.5671 GB, free: 7.895 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/0.6636, allocations: 43.59 kB / 0.5671 GB, free: 7.852 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000392/0.664, allocations: 157.6 kB / 0.5673 GB, free: 7.734 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002814/0.6669, allocations: 1.908 MB / 0.5691 GB, free: 5.832 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01712/0.684, allocations: 8.2 MB / 0.5772 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04705/0.7311, allocations: 39.42 MB / 0.6157 GB, free: 5.191 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008258/0.7394, allocations: 3.322 MB / 0.6189 GB, free: 1.703 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/0.7411, allocations: 1.053 MB / 0.6199 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009348/0.7504, allocations: 5.995 MB / 0.6258 GB, free: 10.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.008e-05/0.7505, allocations: 59.48 kB / 0.6258 GB, free: 10.23 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.839e-06/0.7505, allocations: 0 / 0.6258 GB, free: 10.23 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02779/0.7783, allocations: 9.551 MB / 0.6352 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.27e-05/0.7785, allocations: 145.5 kB / 0.6353 GB, free: 408 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005968/0.7844, allocations: 4.041 MB / 0.6393 GB, free: 12.33 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.7846, allocations: 45.7 kB / 0.6393 GB, free: 12.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002316/0.787, allocations: 3.186 MB / 0.6424 GB, free: 9.098 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006866/0.7877, allocations: 0.6326 MB / 0.643 GB, free: 8.469 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006126/0.7883, allocations: 0.523 MB / 0.6435 GB, free: 7.938 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.7884, allocations: 305.1 kB / 0.6438 GB, free: 7.637 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/0.7911, allocations: 1.667 MB / 0.6455 GB, free: 5.965 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005728/0.7968, allocations: 5.525 MB / 0.6509 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/0.8077, allocations: 7.81 MB / 0.6585 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/0.808, allocations: 40 kB / 0.6585 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.02008/0.8281, allocations: 6.925 MB / 0.6653 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002164/0.8283, allocations: 64 kB / 0.6653 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002792/0.8286, allocations: 136 kB / 0.6655 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/0.8289, allocations: 184 kB / 0.6656 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00532/0.8342, allocations: 1.439 MB / 0.6671 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003268/0.8346, allocations: 274.9 kB / 0.6673 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005564/0.8402, allocations: 299.5 kB / 0.6676 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/0.8414, allocations: 382.2 kB / 0.668 GB, free: 11.06 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.005297/0.8468, allocations: 2.033 MB / 0.6699 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/0.8479, allocations: 355.5 kB / 0.6703 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.8492, allocations: 410.6 kB / 0.6707 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.485e-05/0.8493, allocations: 16 kB / 0.6707 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/0.8493, allocations: 0 / 0.6707 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.6e-05/0.8493, allocations: 15.91 kB / 0.6707 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/0.8641, allocations: 5.849 MB / 0.6764 GB, free: 2.094 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.912e-05/0.8641, allocations: 20 kB / 0.6764 GB, free: 2.074 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.8653, allocations: 295.6 kB / 0.6767 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.84e-05/0.8653, allocations: 24 kB / 0.6767 GB, free: 1.762 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.8655, allocations: 48 kB / 0.6768 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.021e-05/0.8655, allocations: 35.86 kB / 0.6768 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.796e-05/0.8655, allocations: 24.41 kB / 0.6768 GB, free: 1.656 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004895/0.8704, allocations: 3.324 MB / 0.6801 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.8715, allocations: 428.5 kB / 0.6805 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003019/0.8718, allocations: 47.98 kB / 0.6805 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.8729, allocations: 67.95 kB / 0.6806 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.8731, allocations: 151.3 kB / 0.6808 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.8732, allocations: 71.98 kB / 0.6808 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004352/0.8776, allocations: 2.503 MB / 0.6833 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8776, allocations: 0 / 0.6833 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005441/0.8831, allocations: 0.889 MB / 0.6841 GB, free: 9.914 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.0005361/0.8836, allocations: 189.1 kB / 0.6843 GB, free: 9.719 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007245/0.8909, allocations: 3.804 MB / 0.688 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/0.8909, allocations: 4 kB / 0.688 GB, free: 5.938 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.8921, allocations: 0.7648 MB / 0.6888 GB, free: 5.176 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01094/0.9031, allocations: 460.7 kB / 0.6892 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01792/0.921, allocations: 10.89 MB / 0.6999 GB, free: 9.559 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003668/0.9247, allocations: 3.173 MB / 0.703 GB, free: 6.359 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004673/0.9294, allocations: 1.812 MB / 0.7047 GB, free: 4.539 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005632/0.93, allocations: 239.4 kB / 0.705 GB, free: 4.305 MB / 0.545 GB Notification: Performance of SimCode: time 1.493e-06/0.93, allocations: 0 / 0.705 GB, free: 4.305 MB / 0.545 GB Notification: Performance of Templates: time 0.3378/1.268, allocations: 27.29 MB / 0.7316 GB, free: 183.1 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