Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001549/0.001549, allocations: 195.7 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007111/0.0007111, allocations: 99.73 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002183, allocations: 8 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1941, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02472/0.2188, allocations: 35.09 MB / 447.2 MB, free: 6.719 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01976/0.2386, allocations: 11.56 MB / 458.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00619/0.2449, allocations: 167.6 kB / 458.9 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.2461, allocations: 409.9 kB / 459.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003822/0.25, allocations: 1.717 MB / 461 MB, free: 8.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.2512, allocations: 0.6475 MB / 461.6 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006083/0.2573, allocations: 5.99 MB / 467.6 MB, free: 1.418 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004901/0.2622, allocations: 4.282 MB / 471.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001896/0.2642, allocations: 1.28 MB / 473.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002352/0.2665, allocations: 2.005 MB / 475.2 MB, free: 9.617 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000397/0.2669, allocations: 148 kB / 475.3 MB, free: 9.473 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.2685, allocations: 0.7956 MB / 476.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001399/0.2699, allocations: 1.655 MB / 477.8 MB, free: 7.016 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001654/0.2716, allocations: 1.931 MB / 479.7 MB, free: 5.066 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005256/0.2768, allocations: 5.937 MB / 485.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2768, allocations: 0 / 485.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2769, allocations: 0 / 485.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001159/0.277, allocations: 0 / 485.7 MB, free: 15.11 MB / 362.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.006146/0.2831, allocations: 3.803 MB / 489.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2832, allocations: 8.031 kB / 489.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006524/0.2897, allocations: 1.976 MB / 491.5 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003879/0.2936, allocations: 2.191 MB / 493.6 MB, free: 6.992 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.2938, allocations: 229.6 kB / 493.9 MB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004619/0.2943, allocations: 295.8 kB / 494.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0132/0.3075, allocations: 9.628 MB / 0.492 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.723e-05/0.3076, allocations: 47.53 kB / 0.492 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003178/0.3079, allocations: 147.9 kB / 0.4922 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002526/0.3105, allocations: 1.923 MB / 0.494 GB, free: 9.969 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/0.324, allocations: 7.61 MB / 0.5015 GB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2124/0.5365, allocations: 37.75 MB / 0.5383 GB, free: 60.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005277/0.5418, allocations: 2.883 MB / 0.5412 GB, free: 59.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.5429, allocations: 0.8696 MB / 0.542 GB, free: 58.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004398/0.5473, allocations: 3.76 MB / 0.5457 GB, free: 55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.5473, allocations: 47.16 kB / 0.5457 GB, free: 54.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.526e-06/0.5473, allocations: 4 kB / 0.5457 GB, free: 54.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01716/0.5645, allocations: 9.019 MB / 0.5545 GB, free: 45.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.5646, allocations: 153.4 kB / 0.5547 GB, free: 45.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004295/0.5689, allocations: 3.881 MB / 0.5585 GB, free: 41.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.569, allocations: 45.7 kB / 0.5585 GB, free: 41.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001331/0.5704, allocations: 3.08 MB / 0.5615 GB, free: 38.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003522/0.5707, allocations: 0.6136 MB / 0.5621 GB, free: 38.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.5709, allocations: 121.2 kB / 0.5622 GB, free: 37.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.5711, allocations: 0.5501 MB / 0.5628 GB, free: 37.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001903/0.573, allocations: 1.557 MB / 0.5643 GB, free: 35.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002978/0.576, allocations: 5.331 MB / 0.5695 GB, free: 28.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005483/0.5815, allocations: 7.519 MB / 0.5768 GB, free: 19.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.47e-05/0.5816, allocations: 36 kB / 0.5769 GB, free: 19.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008442/0.5901, allocations: 6.61 MB / 0.5833 GB, free: 12.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.931e-05/0.5901, allocations: 64 kB / 0.5834 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.5902, allocations: 136.2 kB / 0.5835 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001289/0.5904, allocations: 176 kB / 0.5837 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003386/0.5938, allocations: 1.388 MB / 0.585 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000121/0.5939, allocations: 266.4 kB / 0.5853 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/0.597, allocations: 287.5 kB / 0.5856 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003372/0.5974, allocations: 372 kB / 0.5859 GB, free: 9.852 MB / 378.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 (746): * Single equations (assignments): 743 * 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.002102/0.5995, allocations: 1.977 MB / 0.5879 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.5998, allocations: 331.7 kB / 0.5882 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/0.6015, allocations: 1.246 MB / 0.5894 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/0.6015, allocations: 20.14 kB / 0.5894 GB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.6015, allocations: 3.938 kB / 0.5894 GB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.6016, allocations: 7.969 kB / 0.5894 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006778/0.6083, allocations: 5.736 MB / 0.595 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.822e-05/0.6084, allocations: 20 kB / 0.595 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009321/0.6093, allocations: 279.5 kB / 0.5953 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.26e-05/0.6094, allocations: 24 kB / 0.5953 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/0.6095, allocations: 52.52 kB / 0.5954 GB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.481e-05/0.6095, allocations: 39.86 kB / 0.5954 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.948e-05/0.6095, allocations: 31.88 kB / 0.5955 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003971/0.6135, allocations: 3.203 MB / 0.5986 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/0.6146, allocations: 412.6 kB / 0.599 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003201/0.6149, allocations: 47.98 kB / 0.599 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.616, allocations: 63.95 kB / 0.5991 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.6162, allocations: 143.4 kB / 0.5992 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.895e-05/0.6163, allocations: 71.81 kB / 0.5993 GB, free: 11.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00349/0.6198, allocations: 2.403 MB / 0.6016 GB, free: 9.188 MB / 394.7 MB Notification: Performance of sort global known variables: time 3e-07/0.6198, allocations: 0 / 0.6016 GB, free: 9.188 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004127/0.6239, allocations: 0.866 MB / 0.6025 GB, free: 8.324 MB / 394.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 (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.0003947/0.6244, allocations: 215.6 kB / 0.6027 GB, free: 8.113 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006089/0.6305, allocations: 3.605 MB / 0.6062 GB, free: 4.539 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/0.6305, allocations: 4 kB / 0.6062 GB, free: 4.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009694/0.6315, allocations: 0.724 MB / 0.6069 GB, free: 3.816 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01045/0.6419, allocations: 444.1 kB / 0.6073 GB, free: 3.383 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.6567, allocations: 10.6 MB / 0.6177 GB, free: 8.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003352/0.6601, allocations: 3.099 MB / 0.6207 GB, free: 5.371 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004385/0.6645, allocations: 1.768 MB / 0.6224 GB, free: 3.594 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005115/0.665, allocations: 235.4 kB / 0.6227 GB, free: 3.367 MB / 410.7 MB Notification: Performance of SimCode: time 2.244e-06/0.6651, allocations: 0 / 0.6227 GB, free: 3.367 MB / 410.7 MB Notification: Performance of Templates: time 0.05332/0.7184, allocations: 26.01 MB / 0.6481 GB, free: 9.512 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches