Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006772/0.006771, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.605/3.605, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001798/0.001798, allocations: 90.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007588/0.0007596, allocations: 12 kB / 327 MB, free: 15.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1443, allocations: 47.58 MB / 374.5 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.4749/0.6193, allocations: 33.06 MB / 407.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03664/0.656, allocations: 8.342 MB / 415.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01344/0.6695, allocations: 166.1 kB / 416.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009909/0.6795, allocations: 1.613 MB / 417.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03173/0.7113, allocations: 4.865 MB / 422.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005012/0.7164, allocations: 0.625 MB / 423.2 MB, free: 9.883 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009973/0.7264, allocations: 2.408 MB / 425.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01164/0.7382, allocations: 3.365 MB / 429 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004498/0.7427, allocations: 1.051 MB / 430 MB, free: 4.801 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005262/0.7481, allocations: 1.464 MB / 431.5 MB, free: 3.332 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002238/0.7504, allocations: 148 kB / 431.6 MB, free: 3.188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004471/0.7549, allocations: 0.6905 MB / 432.3 MB, free: 2.496 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004607/0.7596, allocations: 1.527 MB / 433.9 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007194/0.7669, allocations: 0.792 MB / 434.7 MB, free: 168 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0175/0.7844, allocations: 4.861 MB / 439.5 MB, free: 11.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.7845, allocations: 7.938 kB / 439.5 MB, free: 11.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.988e-06/0.7845, allocations: 0 / 439.5 MB, free: 11.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002876/0.7848, allocations: 0 / 439.5 MB, free: 11.29 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01793/0.8028, allocations: 3.889 MB / 443.4 MB, free: 7.328 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.234e-05/0.8029, allocations: 8.031 kB / 443.4 MB, free: 7.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02272/0.8256, allocations: 2.264 MB / 445.7 MB, free: 5.047 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0125/0.8382, allocations: 2.703 MB / 448.4 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005568/0.8388, allocations: 229.6 kB / 448.6 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002272/0.8411, allocations: 291.8 kB / 448.9 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04213/0.8833, allocations: 9.706 MB / 458.6 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003068/0.8837, allocations: 51.47 kB / 458.7 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001912/0.8856, allocations: 147.8 kB / 458.8 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007888/0.8936, allocations: 1.911 MB / 460.7 MB, free: 5.191 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03858/0.9322, allocations: 7.703 MB / 468.4 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09908/1.031, allocations: 37.87 MB / 0.4944 GB, free: 6.434 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01759/1.049, allocations: 2.898 MB / 0.4972 GB, free: 3.387 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01539/1.065, allocations: 3.809 MB / 0.501 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.197e-05/1.065, allocations: 55.16 kB / 0.501 GB, free: 15.31 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 8.476e-06/1.065, allocations: 4 kB / 0.501 GB, free: 15.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.05985/1.125, allocations: 9.429 MB / 0.5102 GB, free: 5.707 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/1.125, allocations: 145.5 kB / 0.5104 GB, free: 5.531 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01519/1.14, allocations: 4.165 MB / 0.5144 GB, free: 1.336 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003594/1.14, allocations: 45.7 kB / 0.5145 GB, free: 1.285 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004839/1.145, allocations: 3.027 MB / 0.5174 GB, free: 14.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00138/1.147, allocations: 0.6057 MB / 0.518 GB, free: 13.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007694/1.148, allocations: 116 kB / 0.5181 GB, free: 13.49 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007648/1.148, allocations: 0.5508 MB / 0.5187 GB, free: 12.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007257/1.156, allocations: 1.546 MB / 0.5202 GB, free: 11.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01306/1.169, allocations: 5.291 MB / 0.5254 GB, free: 4.184 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/1.18, allocations: 2.789 MB / 0.5281 GB, free: 1.395 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001963/1.18, allocations: 40 kB / 0.5281 GB, free: 1.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.02911/1.209, allocations: 6.459 MB / 0.5344 GB, free: 10.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000202/1.21, allocations: 64.25 kB / 0.5345 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003651/1.21, allocations: 136 kB / 0.5346 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004605/1.211, allocations: 199.9 kB / 0.5348 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01181/1.222, allocations: 1.376 MB / 0.5362 GB, free: 9.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005088/1.223, allocations: 263 kB / 0.5364 GB, free: 8.871 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009803/1.233, allocations: 291.5 kB / 0.5367 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/1.235, allocations: 360 kB / 0.537 GB, free: 8.234 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * 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.008053/1.243, allocations: 1.974 MB / 0.539 GB, free: 6.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/1.244, allocations: 339.6 kB / 0.5393 GB, free: 5.914 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005585/1.25, allocations: 1.246 MB / 0.5405 GB, free: 4.648 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.487e-05/1.25, allocations: 23.94 kB / 0.5405 GB, free: 4.625 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.333e-05/1.25, allocations: 3.953 kB / 0.5405 GB, free: 4.621 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.793e-05/1.25, allocations: 3.984 kB / 0.5405 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5127/1.763, allocations: 5.763 MB / 0.5461 GB, free: 139.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.548e-05/1.763, allocations: 18.58 kB / 0.5462 GB, free: 139.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002781/1.766, allocations: 280.1 kB / 0.5464 GB, free: 139.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.528e-05/1.766, allocations: 33.84 kB / 0.5465 GB, free: 139.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003182/1.766, allocations: 50.55 kB / 0.5465 GB, free: 139.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.253e-05/1.766, allocations: 36.5 kB / 0.5465 GB, free: 139.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.722e-05/1.766, allocations: 27.75 kB / 0.5466 GB, free: 139.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01149/1.778, allocations: 5.286 MB / 0.5517 GB, free: 135.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002836/1.781, allocations: 0.5254 MB / 0.5523 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001579/1.782, allocations: 49.27 kB / 0.5523 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003998/1.786, allocations: 65.69 kB / 0.5524 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006344/1.787, allocations: 141.9 kB / 0.5525 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002583/1.787, allocations: 67.45 kB / 0.5526 GB, free: 135.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01147/1.799, allocations: 2.619 MB / 0.5551 GB, free: 134.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.793e-06/1.799, allocations: 1.062 kB / 0.5551 GB, free: 134.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01221/1.811, allocations: 0.8861 MB / 0.556 GB, free: 134.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * 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.001249/1.813, allocations: 221.6 kB / 0.5562 GB, free: 134.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01471/1.827, allocations: 3.58 MB / 0.5597 GB, free: 133.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.484e-05/1.827, allocations: 3.031 kB / 0.5597 GB, free: 133.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002867/1.83, allocations: 0.7225 MB / 0.5604 GB, free: 133.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006454/1.837, allocations: 433.8 kB / 0.5608 GB, free: 132.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0376/1.875, allocations: 10.58 MB / 0.5711 GB, free: 127 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009755/1.884, allocations: 3.193 MB / 0.5743 GB, free: 125.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/1.886, allocations: 283.5 kB / 0.5745 GB, free: 125.7 MB / 426.7 MB Notification: Performance of SimCode: time 2.354e-06/1.886, allocations: 0 / 0.5745 GB, free: 125.7 MB / 426.7 MB Notification: Performance of Templates: time 0.1567/2.043, allocations: 50.43 MB / 0.6238 GB, free: 79.86 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches