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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009294/0.0009295, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 223.2 MB / 240.3 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009547/0.0009546, allocations: 94.44 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003098, allocations: 19.98 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2445, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1221/0.3666, allocations: 96.51 MB / 498 MB, free: 15.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.3669, allocations: 91.95 kB / 498.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3725/0.7394, allocations: 85.95 MB / 0.5704 GB, free: 42.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.7395, allocations: 0 / 0.5704 GB, free: 42.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001906/0.7397, allocations: 79.94 kB / 0.5704 GB, free: 42.16 MB / 378.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.01131/0.751, allocations: 4.058 MB / 0.5744 GB, free: 38.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.751, allocations: 8.031 kB / 0.5744 GB, free: 38.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/0.7624, allocations: 2.44 MB / 0.5768 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.7747, allocations: 4.8 MB / 0.5815 GB, free: 30.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.7751, allocations: 308.2 kB / 0.5818 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002258/0.7773, allocations: 411.9 kB / 0.5822 GB, free: 30 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02253/0.7999, allocations: 10.08 MB / 0.592 GB, free: 18.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000282/0.8002, allocations: 63.41 kB / 0.5921 GB, free: 18.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001701/0.8019, allocations: 203.9 kB / 0.5923 GB, free: 18.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001453/0.8034, allocations: 1.01 MB / 0.5932 GB, free: 17.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01646/0.8199, allocations: 7.893 MB / 0.601 GB, free: 9.656 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0548/0.8747, allocations: 45.65 MB / 0.6455 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006938/0.8817, allocations: 2.858 MB / 0.6483 GB, free: 7.473 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007609/0.8893, allocations: 3.806 MB / 0.652 GB, free: 3.461 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.177e-05/0.8894, allocations: 55.14 kB / 0.6521 GB, free: 3.398 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 5.059e-06/0.8894, allocations: 0 / 0.6521 GB, free: 3.398 MB / 426.7 MB Notification: Performance of matching and sorting (n=152): time 0.02369/0.9131, allocations: 9.253 MB / 0.6611 GB, free: 9.969 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.9133, allocations: 141.5 kB / 0.6613 GB, free: 9.801 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007115/0.9204, allocations: 3.52 MB / 0.6647 GB, free: 6.301 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000293/0.9208, allocations: 49.7 kB / 0.6648 GB, free: 6.246 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002405/0.9232, allocations: 3.093 MB / 0.6678 GB, free: 3.109 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000729/0.9239, allocations: 0.6058 MB / 0.6684 GB, free: 2.496 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000227/0.9241, allocations: 112 kB / 0.6685 GB, free: 2.387 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003688/0.9245, allocations: 0.5538 MB / 0.669 GB, free: 1.824 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002749/0.9273, allocations: 1.588 MB / 0.6706 GB, free: 236 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2231/1.15, allocations: 5.323 MB / 0.6758 GB, free: 107.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003947/1.154, allocations: 2.842 MB / 0.6785 GB, free: 107.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.531e-05/1.154, allocations: 38.38 kB / 0.6786 GB, free: 107.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01073/1.165, allocations: 6.65 MB / 0.6851 GB, free: 107.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.165, allocations: 60.5 kB / 0.6851 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/1.166, allocations: 138.5 kB / 0.6853 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/1.166, allocations: 193 kB / 0.6854 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004196/1.17, allocations: 1.401 MB / 0.6868 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003647/1.17, allocations: 262.7 kB / 0.6871 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004571/1.175, allocations: 378.9 kB / 0.6874 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007631/1.176, allocations: 358.8 kB / 0.6878 GB, free: 107.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * 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 (736): * Single equations (assignments): 733 * 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.003505/1.179, allocations: 1.982 MB / 0.6897 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000613/1.18, allocations: 335.8 kB / 0.69 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002144/1.182, allocations: 1.244 MB / 0.6912 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-05/1.182, allocations: 18.91 kB / 0.6913 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/1.182, allocations: 1.094 kB / 0.6913 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/1.182, allocations: 6.703 kB / 0.6913 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009126/1.191, allocations: 5.794 MB / 0.6969 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.906e-05/1.191, allocations: 18.56 kB / 0.6969 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009085/1.192, allocations: 284.2 kB / 0.6972 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.976e-05/1.192, allocations: 28.88 kB / 0.6972 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.198e-05/1.192, allocations: 49.91 kB / 0.6973 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-05/1.192, allocations: 35.39 kB / 0.6973 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-05/1.192, allocations: 34.7 kB / 0.6974 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003493/1.196, allocations: 5.366 MB / 0.7026 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00089/1.197, allocations: 422.9 kB / 0.703 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003151/1.197, allocations: 50.58 kB / 0.703 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/1.198, allocations: 92.66 kB / 0.7031 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/1.198, allocations: 151 kB / 0.7033 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.261e-05/1.199, allocations: 68.72 kB / 0.7033 GB, free: 101.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003953/1.202, allocations: 2.466 MB / 0.7058 GB, free: 101.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.203, allocations: 0 / 0.7058 GB, free: 101.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005247/1.208, allocations: 0.8729 MB / 0.7066 GB, free: 101 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * 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 (144): * Single equations (assignments): 141 * 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.0004388/1.208, allocations: 222.5 kB / 0.7068 GB, free: 100.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005302/1.214, allocations: 3.64 MB / 0.7104 GB, free: 99.67 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/1.214, allocations: 2.469 kB / 0.7104 GB, free: 99.67 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008645/1.214, allocations: 0.7295 MB / 0.7111 GB, free: 99.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/1.217, allocations: 420 kB / 0.7115 GB, free: 99.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/1.231, allocations: 10.11 MB / 0.7214 GB, free: 93.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002875/1.234, allocations: 3.186 MB / 0.7245 GB, free: 92.25 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004135/1.239, allocations: 1.772 MB / 0.7262 GB, free: 92.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005302/1.239, allocations: 230.2 kB / 0.7264 GB, free: 92.08 MB / 442.7 MB Notification: Performance of SimCode: time 2.024e-06/1.239, allocations: 0 / 0.7264 GB, free: 92.08 MB / 442.7 MB Notification: Performance of Templates: time 0.04606/1.285, allocations: 25.6 MB / 0.7514 GB, free: 76.63 MB / 442.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