Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009404/0.0009404, allocations: 176.5 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 225.7 MB / 243.2 MB, free: 8.465 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008273/0.0008274, allocations: 96.47 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.000365, allocations: 11.94 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2123, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02321/0.2355, allocations: 35.09 MB / 439.7 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.2532, allocations: 11.16 MB / 450.8 MB, free: 284 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00574/0.259, allocations: 163.6 kB / 451 MB, free: 120 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.2601, allocations: 413.9 kB / 451.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003481/0.2635, allocations: 1.717 MB / 453.1 MB, free: 13.99 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.2647, allocations: 0.6514 MB / 453.8 MB, free: 13.34 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005393/0.2701, allocations: 5.873 MB / 459.6 MB, free: 7.445 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004726/0.2748, allocations: 4.286 MB / 463.9 MB, free: 2.938 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001665/0.2765, allocations: 1.284 MB / 465.2 MB, free: 1.648 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002023/0.2786, allocations: 2.009 MB / 467.2 MB, free: 15.63 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003303/0.2789, allocations: 144 kB / 467.4 MB, free: 15.49 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.2803, allocations: 0.8229 MB / 468.2 MB, free: 14.67 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001306/0.2816, allocations: 1.651 MB / 469.8 MB, free: 13.01 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.2836, allocations: 1.931 MB / 471.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005929/0.2895, allocations: 5.961 MB / 477.7 MB, free: 5.082 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2896, allocations: 4 kB / 477.7 MB, free: 5.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2896, allocations: 0 / 477.7 MB, free: 5.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001225/0.2897, allocations: 0 / 477.7 MB, free: 5.078 MB / 346.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.005612/0.2953, allocations: 3.799 MB / 481.5 MB, free: 1.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2954, allocations: 12.03 kB / 481.5 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006319/0.3017, allocations: 1.968 MB / 483.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003882/0.3056, allocations: 2.25 MB / 485.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.3058, allocations: 233.6 kB / 486 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005685/0.3064, allocations: 295.8 kB / 486.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.319, allocations: 9.627 MB / 495.9 MB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.828e-05/0.3191, allocations: 51.58 kB / 495.9 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003069/0.3194, allocations: 143.8 kB / 496.1 MB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002452/0.3219, allocations: 1.927 MB / 498 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/0.3341, allocations: 7.606 MB / 0.4938 GB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1904/0.5246, allocations: 37.74 MB / 0.5306 GB, free: 67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005155/0.5298, allocations: 2.884 MB / 0.5334 GB, free: 65.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009551/0.5308, allocations: 0.8721 MB / 0.5343 GB, free: 65.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004276/0.5351, allocations: 3.759 MB / 0.538 GB, free: 62.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.5351, allocations: 56.77 kB / 0.538 GB, free: 62.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.997e-06/0.5351, allocations: 4 kB / 0.538 GB, free: 62.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01684/0.552, allocations: 9.012 MB / 0.5468 GB, free: 55.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.552, allocations: 153.4 kB / 0.547 GB, free: 55.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00377/0.5558, allocations: 3.881 MB / 0.5508 GB, free: 51.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.556, allocations: 50.42 kB / 0.5508 GB, free: 51.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.5571, allocations: 3.089 MB / 0.5538 GB, free: 48.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003213/0.5574, allocations: 0.6041 MB / 0.5544 GB, free: 47.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.5575, allocations: 120 kB / 0.5545 GB, free: 47.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.5577, allocations: 0.5501 MB / 0.5551 GB, free: 47.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001747/0.5595, allocations: 1.554 MB / 0.5566 GB, free: 45.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002797/0.5623, allocations: 5.335 MB / 0.5618 GB, free: 38.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005097/0.5674, allocations: 7.514 MB / 0.5691 GB, free: 28.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-05/0.5675, allocations: 40 kB / 0.5692 GB, free: 28.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007842/0.5753, allocations: 6.614 MB / 0.5756 GB, free: 22.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.951e-05/0.5754, allocations: 64 kB / 0.5757 GB, free: 22.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-05/0.5755, allocations: 135.9 kB / 0.5758 GB, free: 22.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001107/0.5756, allocations: 176 kB / 0.576 GB, free: 21.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003141/0.5788, allocations: 1.38 MB / 0.5773 GB, free: 20.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001187/0.5789, allocations: 264.1 kB / 0.5776 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002786/0.5817, allocations: 291.8 kB / 0.5779 GB, free: 19.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000282/0.582, allocations: 363.1 kB / 0.5782 GB, free: 19.62 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.0019/0.5839, allocations: 1.982 MB / 0.5801 GB, free: 17.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003264/0.5842, allocations: 339.6 kB / 0.5805 GB, free: 17.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.5857, allocations: 1.242 MB / 0.5817 GB, free: 16.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.5858, allocations: 20 kB / 0.5817 GB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.5858, allocations: 0 / 0.5817 GB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.5858, allocations: 7.969 kB / 0.5817 GB, free: 16.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00621/0.592, allocations: 5.739 MB / 0.5873 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/0.592, allocations: 20.97 kB / 0.5873 GB, free: 9.949 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008205/0.5929, allocations: 279.5 kB / 0.5876 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.787e-05/0.5929, allocations: 28.53 kB / 0.5876 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.19e-05/0.593, allocations: 51.98 kB / 0.5877 GB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.792e-05/0.593, allocations: 39.86 kB / 0.5877 GB, free: 9.559 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.166e-05/0.593, allocations: 27.88 kB / 0.5877 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/0.5955, allocations: 3.198 MB / 0.5909 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005326/0.5961, allocations: 416.5 kB / 0.5913 GB, free: 5.645 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/0.5963, allocations: 51.98 kB / 0.5913 GB, free: 5.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009519/0.5973, allocations: 64.73 kB / 0.5914 GB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.5974, allocations: 147.4 kB / 0.5915 GB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.091e-05/0.5975, allocations: 65.33 kB / 0.5916 GB, free: 5.324 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002589/0.6001, allocations: 2.403 MB / 0.5939 GB, free: 2.941 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6001, allocations: 0 / 0.5939 GB, free: 2.941 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003671/0.6038, allocations: 0.8654 MB / 0.5948 GB, free: 2.082 MB / 378.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.0003209/0.6041, allocations: 216.3 kB / 0.595 GB, free: 1.867 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00487/0.609, allocations: 3.612 MB / 0.5985 GB, free: 14.28 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.609, allocations: 0 / 0.5985 GB, free: 14.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008859/0.6099, allocations: 0.7234 MB / 0.5992 GB, free: 13.56 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01018/0.6201, allocations: 441.9 kB / 0.5996 GB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/0.6338, allocations: 10.6 MB / 0.61 GB, free: 2.242 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00289/0.6367, allocations: 3.087 MB / 0.613 GB, free: 15.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004118/0.6409, allocations: 1.772 MB / 0.6147 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005041/0.6414, allocations: 235.4 kB / 0.615 GB, free: 13.12 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6414, allocations: 4 kB / 0.615 GB, free: 13.11 MB / 410.7 MB Notification: Performance of Templates: time 0.04803/0.6894, allocations: 26 MB / 0.6404 GB, free: 3.266 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches