Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001241/0.001241, allocations: 113.1 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 55.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2882, allocations: 50.55 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01139/0.2997, allocations: 10.66 MB / 420.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008532/0.3083, allocations: 3.892 MB / 424.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.3106, allocations: 59.81 kB / 424.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004995/0.3157, allocations: 2.223 MB / 426.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005426/0.3211, allocations: 1.797 MB / 428.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002011/0.3232, allocations: 0.7097 MB / 429.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006474/0.3297, allocations: 4.316 MB / 433.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004624/0.3343, allocations: 2.885 MB / 436.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00321/0.3376, allocations: 1.468 MB / 438 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0036/0.3412, allocations: 2.075 MB / 440 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001243/0.3425, allocations: 292 kB / 440.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002727/0.3453, allocations: 0.9245 MB / 441.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002759/0.3481, allocations: 1.804 MB / 443 MB, free: 328 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003804/0.3519, allocations: 2.081 MB / 445.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008551/0.3605, allocations: 6.358 MB / 451.5 MB, free: 7.848 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3605, allocations: 0 / 451.5 MB, free: 7.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3605, allocations: 0 / 451.5 MB, free: 7.848 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002612/0.3608, allocations: 0 / 451.5 MB, free: 7.848 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.01107/0.3719, allocations: 4.56 MB / 456 MB, free: 3.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3719, allocations: 12.03 kB / 456 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008106/0.3801, allocations: 1.918 MB / 458 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005043/0.3851, allocations: 2.242 MB / 460.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002473/0.3854, allocations: 229.6 kB / 460.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001264/0.3867, allocations: 295.6 kB / 460.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01949/0.4062, allocations: 9.655 MB / 470.4 MB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001833/0.4064, allocations: 43.53 kB / 470.4 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009402/0.4074, allocations: 147.9 kB / 470.6 MB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003213/0.4106, allocations: 1.919 MB / 472.5 MB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/0.4262, allocations: 7.645 MB / 480.1 MB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0441/0.4703, allocations: 37.61 MB / 0.5056 GB, free: 3.484 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007205/0.4776, allocations: 2.889 MB / 0.5084 GB, free: 460 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.4791, allocations: 0.8653 MB / 0.5093 GB, free: 15.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006304/0.4854, allocations: 3.853 MB / 0.513 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.4855, allocations: 43.22 kB / 0.5131 GB, free: 11.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 6.402e-06/0.4855, allocations: 0 / 0.5131 GB, free: 11.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02189/0.5074, allocations: 9.06 MB / 0.5219 GB, free: 2.262 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.5075, allocations: 145.5 kB / 0.5221 GB, free: 2.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004984/0.5125, allocations: 3.908 MB / 0.5259 GB, free: 14.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.5127, allocations: 49.7 kB / 0.5259 GB, free: 14.14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001971/0.5147, allocations: 3.074 MB / 0.5289 GB, free: 11.03 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005792/0.5153, allocations: 0.6095 MB / 0.5295 GB, free: 10.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001328/0.5166, allocations: 1.167 MB / 0.5307 GB, free: 9.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.5167, allocations: 309 kB / 0.531 GB, free: 8.926 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.5191, allocations: 1.581 MB / 0.5325 GB, free: 7.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004807/0.5239, allocations: 5.358 MB / 0.5377 GB, free: 88 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2552/0.7791, allocations: 7.561 MB / 0.5451 GB, free: 112.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.7793, allocations: 35.38 kB / 0.5452 GB, free: 112.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01201/0.7913, allocations: 6.667 MB / 0.5517 GB, free: 110.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.231e-05/0.7914, allocations: 66.19 kB / 0.5517 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/0.7916, allocations: 136.2 kB / 0.5519 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.7917, allocations: 177 kB / 0.552 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003898/0.7957, allocations: 1.385 MB / 0.5534 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001731/0.7958, allocations: 265.4 kB / 0.5536 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003979/0.7998, allocations: 292.7 kB / 0.5539 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007668/0.8006, allocations: 368.4 kB / 0.5543 GB, free: 109.9 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.002759/0.8034, allocations: 1.981 MB / 0.5562 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005701/0.804, allocations: 331.7 kB / 0.5565 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006201/0.8046, allocations: 401.8 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/0.8046, allocations: 19.53 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/0.8047, allocations: 3.094 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.8047, allocations: 10.78 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007773/0.8125, allocations: 5.744 MB / 0.5625 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.91e-05/0.8125, allocations: 16 kB / 0.5626 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009287/0.8135, allocations: 285.8 kB / 0.5628 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.919e-05/0.8135, allocations: 28 kB / 0.5629 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.381e-05/0.8136, allocations: 50.44 kB / 0.5629 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.999e-05/0.8136, allocations: 35.62 kB / 0.5629 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.494e-05/0.8136, allocations: 35.39 kB / 0.563 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/0.8167, allocations: 3.223 MB / 0.5661 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007573/0.8175, allocations: 412.2 kB / 0.5665 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000311/0.8178, allocations: 47.94 kB / 0.5666 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.8189, allocations: 63.72 kB / 0.5666 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.819, allocations: 146.9 kB / 0.5668 GB, free: 99.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.917e-05/0.8191, allocations: 71.59 kB / 0.5668 GB, free: 99.87 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003064/0.8222, allocations: 2.428 MB / 0.5692 GB, free: 97.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8222, allocations: 0 / 0.5692 GB, free: 97.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00476/0.827, allocations: 0.8445 MB / 0.57 GB, free: 97.04 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.0004253/0.8274, allocations: 207.8 kB / 0.5702 GB, free: 96.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00501/0.8324, allocations: 3.696 MB / 0.5738 GB, free: 93.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.868e-05/0.8325, allocations: 4 kB / 0.5738 GB, free: 93.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009345/0.8334, allocations: 0.7384 MB / 0.5745 GB, free: 92.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/0.8363, allocations: 456.7 kB / 0.575 GB, free: 92.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.8491, allocations: 8.916 MB / 0.5837 GB, free: 82.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002669/0.8518, allocations: 3.083 MB / 0.5867 GB, free: 79.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007482/0.8526, allocations: 283.4 kB / 0.587 GB, free: 79.47 MB / 462.1 MB Notification: Performance of SimCode: time 9.81e-07/0.8526, allocations: 0 / 0.587 GB, free: 79.47 MB / 462.1 MB Notification: Performance of Templates: time 0.06568/0.9183, allocations: 51.59 MB / 0.6374 GB, free: 27.99 MB / 462.1 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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches