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.001789/0.001789, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.12 MB / 344.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 75.86 kB / 418.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1449, allocations: 62.46 MB / 480.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01412/0.1591, allocations: 11.36 MB / 492.1 MB, free: 9.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008909/0.1681, allocations: 4.061 MB / 496.2 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001868/0.17, allocations: 63.81 kB / 496.2 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005222/0.1752, allocations: 2.484 MB / 498.7 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005314/0.1806, allocations: 1.84 MB / 0.4888 GB, free: 1.344 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.1825, allocations: 0.7761 MB / 0.4896 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006857/0.1894, allocations: 4.503 MB / 0.494 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004972/0.1944, allocations: 3.331 MB / 0.4973 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003162/0.1976, allocations: 1.546 MB / 0.4988 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003734/0.2014, allocations: 2.22 MB / 0.5009 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.2024, allocations: 335.9 kB / 0.5012 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002437/0.2049, allocations: 0.9559 MB / 0.5022 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002512/0.2074, allocations: 1.917 MB / 0.5041 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2182/0.4256, allocations: 2.234 MB / 0.5062 GB, free: 18.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01174/0.4374, allocations: 6.562 MB / 0.5126 GB, free: 17.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.4375, allocations: 1.094 kB / 0.5126 GB, free: 17.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.4375, allocations: 0 / 0.5126 GB, free: 17.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002971/0.4378, allocations: 0 / 0.5126 GB, free: 17.69 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.01368/0.4515, allocations: 4.789 MB / 0.5173 GB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4515, allocations: 10.59 kB / 0.5173 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007754/0.4593, allocations: 1.951 MB / 0.5192 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005836/0.4652, allocations: 2.278 MB / 0.5215 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/0.4654, allocations: 255.6 kB / 0.5217 GB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001175/0.4666, allocations: 331 kB / 0.522 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02062/0.4872, allocations: 10.23 MB / 0.532 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001491/0.4874, allocations: 51.09 kB / 0.5321 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005761/0.488, allocations: 159.2 kB / 0.5322 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002662/0.4907, allocations: 1.901 MB / 0.5341 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01599/0.5067, allocations: 8.177 MB / 0.5421 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05318/0.5599, allocations: 39.41 MB / 0.5805 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009148/0.5691, allocations: 3.302 MB / 0.5838 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001947/0.5711, allocations: 1.052 MB / 0.5848 GB, free: 10.01 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.5814, allocations: 5.991 MB / 0.5906 GB, free: 3.688 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/0.5814, allocations: 51.41 kB / 0.5907 GB, free: 3.633 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 4.389e-06/0.5815, allocations: 4 kB / 0.5907 GB, free: 3.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.02671/0.6082, allocations: 9.508 MB / 0.6 GB, free: 10.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.6083, allocations: 141.5 kB / 0.6001 GB, free: 9.867 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007949/0.6163, allocations: 4.039 MB / 0.6041 GB, free: 5.801 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004584/0.6168, allocations: 49.7 kB / 0.6041 GB, free: 5.746 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003446/0.6203, allocations: 3.175 MB / 0.6072 GB, free: 2.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001069/0.6214, allocations: 0.6435 MB / 0.6078 GB, free: 1.934 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002117/0.6235, allocations: 1.21 MB / 0.609 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.6237, allocations: 305.1 kB / 0.6093 GB, free: 420 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003164/0.6268, allocations: 1.665 MB / 0.6109 GB, free: 14.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006751/0.6336, allocations: 5.522 MB / 0.6163 GB, free: 7.355 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/0.6446, allocations: 7.806 MB / 0.6239 GB, free: 14.19 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001354/0.6448, allocations: 40 kB / 0.624 GB, free: 14.15 MB / 478.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01601/0.6608, allocations: 6.92 MB / 0.6307 GB, free: 7.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.661, allocations: 66.5 kB / 0.6308 GB, free: 7.344 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002004/0.6612, allocations: 141 kB / 0.6309 GB, free: 7.211 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/0.6614, allocations: 184 kB / 0.6311 GB, free: 7.031 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004966/0.6664, allocations: 1.439 MB / 0.6325 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002582/0.6667, allocations: 271 kB / 0.6328 GB, free: 5.324 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004747/0.6714, allocations: 295.6 kB / 0.6331 GB, free: 5.035 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000915/0.6724, allocations: 376 kB / 0.6334 GB, free: 4.668 MB / 478.1 MB 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.004812/0.6772, allocations: 2.048 MB / 0.6354 GB, free: 2.609 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007711/0.678, allocations: 347.5 kB / 0.6357 GB, free: 2.266 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009519/0.6789, allocations: 410.6 kB / 0.6361 GB, free: 1.855 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.548e-05/0.679, allocations: 16 kB / 0.6362 GB, free: 1.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.679, allocations: 0 / 0.6362 GB, free: 1.84 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.679, allocations: 11.97 kB / 0.6362 GB, free: 1.828 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.6911, allocations: 5.846 MB / 0.6419 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.858e-05/0.6911, allocations: 16 kB / 0.6419 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.6922, allocations: 283.5 kB / 0.6422 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.822e-05/0.6923, allocations: 28 kB / 0.6422 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.6924, allocations: 48 kB / 0.6422 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.2e-05/0.6924, allocations: 35.86 kB / 0.6423 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-05/0.6925, allocations: 28.25 kB / 0.6423 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004715/0.6972, allocations: 3.306 MB / 0.6455 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.6985, allocations: 424.4 kB / 0.6459 GB, free: 7.285 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000478/0.6989, allocations: 48.95 kB / 0.646 GB, free: 7.238 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.7002, allocations: 63.95 kB / 0.646 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.7004, allocations: 151.3 kB / 0.6462 GB, free: 7.031 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.7006, allocations: 68 kB / 0.6462 GB, free: 6.965 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005224/0.7058, allocations: 2.503 MB / 0.6487 GB, free: 4.449 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7058, allocations: 0 / 0.6487 GB, free: 4.449 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006241/0.7121, allocations: 0.8867 MB / 0.6496 GB, free: 3.562 MB / 494.1 MB 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.0005697/0.7127, allocations: 197.7 kB / 0.6497 GB, free: 3.359 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007947/0.7206, allocations: 4.01 MB / 0.6537 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.788e-05/0.7207, allocations: 0 / 0.6537 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.7221, allocations: 0.7538 MB / 0.6544 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003662/0.7257, allocations: 479.4 kB / 0.6549 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.7456, allocations: 9.261 MB / 0.6639 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005638/0.7513, allocations: 3.173 MB / 0.667 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009768/0.7523, allocations: 287.4 kB / 0.6673 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of SimCode: time 1.032e-06/0.7523, allocations: 0 / 0.6673 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of Templates: time 0.3323/1.085, allocations: 52.94 MB / 0.719 GB, free: 194 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/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_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches