Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 112.3 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 187 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 55.91 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2618, allocations: 49.42 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01153/0.2734, allocations: 10.71 MB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008262/0.2817, allocations: 3.872 MB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.2837, allocations: 59.81 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004575/0.2884, allocations: 2.235 MB / 418.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005496/0.2939, allocations: 1.823 MB / 420.1 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001877/0.2958, allocations: 0.7175 MB / 420.8 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006621/0.3025, allocations: 4.23 MB / 425.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004332/0.3068, allocations: 2.909 MB / 428 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002657/0.3095, allocations: 1.468 MB / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003214/0.3128, allocations: 2.083 MB / 431.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001094/0.3139, allocations: 292 kB / 431.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00253/0.3164, allocations: 0.948 MB / 432.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002455/0.3189, allocations: 1.819 MB / 434.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004137/0.3231, allocations: 2.105 MB / 436.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009199/0.3323, allocations: 6.416 MB / 443.1 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3323, allocations: 0 / 443.1 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.3323, allocations: 0 / 443.1 MB, free: 15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000275/0.3326, allocations: 0 / 443.1 MB, free: 15 MB / 366.1 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.012/0.3446, allocations: 4.614 MB / 447.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.3447, allocations: 11.89 kB / 447.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007874/0.3526, allocations: 1.922 MB / 449.6 MB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005679/0.3583, allocations: 2.289 MB / 451.9 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002433/0.3585, allocations: 225.6 kB / 452.1 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/0.3597, allocations: 299.7 kB / 452.4 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/0.3789, allocations: 9.635 MB / 462.1 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001819/0.3791, allocations: 51.53 kB / 462.1 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009263/0.3801, allocations: 139.9 kB / 462.3 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00319/0.3833, allocations: 1.927 MB / 464.2 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0171/0.4004, allocations: 7.625 MB / 471.8 MB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05155/0.452, allocations: 37.61 MB / 0.4975 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007001/0.459, allocations: 2.887 MB / 0.5003 GB, free: 7.535 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.4605, allocations: 0.8765 MB / 0.5012 GB, free: 6.645 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007261/0.4677, allocations: 3.755 MB / 0.5048 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.222e-05/0.4678, allocations: 51.22 kB / 0.5049 GB, free: 2.625 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 4.649e-06/0.4679, allocations: 0 / 0.5049 GB, free: 2.625 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02406/0.4919, allocations: 9.029 MB / 0.5137 GB, free: 9.473 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.915e-05/0.4921, allocations: 145.5 kB / 0.5138 GB, free: 9.301 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007322/0.4994, allocations: 3.916 MB / 0.5176 GB, free: 5.402 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002436/0.4997, allocations: 49.7 kB / 0.5177 GB, free: 5.348 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003145/0.5028, allocations: 3.082 MB / 0.5207 GB, free: 2.223 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009277/0.5038, allocations: 0.6057 MB / 0.5213 GB, free: 1.609 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002428/0.5062, allocations: 1.163 MB / 0.5224 GB, free: 444 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.5064, allocations: 309.1 kB / 0.5227 GB, free: 132 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003074/0.5094, allocations: 1.581 MB / 0.5243 GB, free: 14.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005832/0.5153, allocations: 5.354 MB / 0.5295 GB, free: 7.293 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2327/0.7481, allocations: 7.542 MB / 0.5369 GB, free: 124.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/0.7482, allocations: 42.53 kB / 0.5369 GB, free: 124.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0106/0.7588, allocations: 6.651 MB / 0.5434 GB, free: 122.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.66e-05/0.7589, allocations: 67.45 kB / 0.5435 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/0.7591, allocations: 134.3 kB / 0.5436 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.7592, allocations: 177.3 kB / 0.5438 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003438/0.7627, allocations: 1.382 MB / 0.5451 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001354/0.7628, allocations: 264.2 kB / 0.5454 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003263/0.7661, allocations: 286.3 kB / 0.5456 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003626/0.7665, allocations: 367.5 kB / 0.546 GB, free: 122 MB / 462.1 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.002324/0.7688, allocations: 1.982 MB / 0.5479 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004616/0.7693, allocations: 333.7 kB / 0.5482 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.771, allocations: 1.249 MB / 0.5495 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.771, allocations: 14.69 kB / 0.5495 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.771, allocations: 0.5469 kB / 0.5495 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.771, allocations: 15.3 kB / 0.5495 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007795/0.7788, allocations: 5.748 MB / 0.5551 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.037e-05/0.7789, allocations: 20 kB / 0.5551 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000857/0.7798, allocations: 274.1 kB / 0.5554 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.74e-05/0.7798, allocations: 26.19 kB / 0.5554 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.062e-05/0.7799, allocations: 57.16 kB / 0.5555 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.038e-05/0.7799, allocations: 39.53 kB / 0.5555 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/0.7799, allocations: 27.88 kB / 0.5555 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002815/0.7827, allocations: 3.213 MB / 0.5587 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007161/0.7835, allocations: 412.2 kB / 0.5591 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/0.7838, allocations: 51.98 kB / 0.5591 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.7848, allocations: 57.34 kB / 0.5592 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.785, allocations: 150.1 kB / 0.5593 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.018e-05/0.7851, allocations: 71.09 kB / 0.5594 GB, free: 113.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00304/0.7881, allocations: 2.431 MB / 0.5617 GB, free: 111.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7881, allocations: 0 / 0.5617 GB, free: 111.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004152/0.7923, allocations: 0.8602 MB / 0.5626 GB, free: 110.8 MB / 462.1 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.0003608/0.7927, allocations: 213.6 kB / 0.5628 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00453/0.7972, allocations: 3.683 MB / 0.5664 GB, free: 107 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.7972, allocations: 2.078 kB / 0.5664 GB, free: 107 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008167/0.7981, allocations: 0.7337 MB / 0.5671 GB, free: 106.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/0.8006, allocations: 453.7 kB / 0.5675 GB, free: 105.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.8116, allocations: 8.929 MB / 0.5763 GB, free: 96.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002439/0.814, allocations: 3.095 MB / 0.5793 GB, free: 93.51 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006856/0.8147, allocations: 279.4 kB / 0.5795 GB, free: 93.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.8148, allocations: 0 / 0.5795 GB, free: 93.24 MB / 462.1 MB Notification: Performance of Templates: time 0.06127/0.876, allocations: 52.36 MB / 0.6307 GB, free: 40.98 MB / 462.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches