Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001446/0.001446, allocations: 109.4 kB / 17.73 MB, free: 5.363 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.001598/0.001598, allocations: 188.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 47.94 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1028, allocations: 46.63 MB / 375.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2279/0.3308, allocations: 10.75 MB / 385.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008763/0.3396, allocations: 3.87 MB / 389.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/0.342, allocations: 64.38 kB / 389.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004397/0.3464, allocations: 2.241 MB / 392.1 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005913/0.3523, allocations: 1.874 MB / 393.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001786/0.3541, allocations: 0.7151 MB / 394.7 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007171/0.3613, allocations: 4.269 MB / 398.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004187/0.3655, allocations: 2.918 MB / 401.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003529/0.3691, allocations: 1.489 MB / 403.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003952/0.3731, allocations: 2.092 MB / 405.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.3741, allocations: 292.6 kB / 405.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002671/0.3768, allocations: 0.9402 MB / 406.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002473/0.3793, allocations: 1.834 MB / 408.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003184/0.3825, allocations: 2.105 MB / 410.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008985/0.3915, allocations: 6.426 MB / 417 MB, free: 5.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.956e-06/0.3916, allocations: 0 / 417 MB, free: 5.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.3916, allocations: 0 / 417 MB, free: 5.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003004/0.3919, allocations: 0 / 417 MB, free: 5.582 MB / 334.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.01144/0.4033, allocations: 4.615 MB / 421.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.4034, allocations: 11.89 kB / 421.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006982/0.4104, allocations: 1.918 MB / 423.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004644/0.4151, allocations: 2.399 MB / 426 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.4153, allocations: 229.6 kB / 426.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00057/0.4158, allocations: 295.8 kB / 426.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/0.4327, allocations: 9.635 MB / 436.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002378/0.433, allocations: 47.58 kB / 436.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001039/0.4341, allocations: 147.8 kB / 436.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003141/0.4372, allocations: 1.919 MB / 438.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01817/0.4554, allocations: 7.629 MB / 445.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05002/0.5055, allocations: 37.6 MB / 483.5 MB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006524/0.512, allocations: 2.881 MB / 486.3 MB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001279/0.5133, allocations: 0.8782 MB / 487.2 MB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00583/0.5192, allocations: 3.755 MB / 491 MB, free: 9.184 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/0.5193, allocations: 59.14 kB / 491 MB, free: 9.113 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.326e-06/0.5193, allocations: 0 / 491 MB, free: 9.113 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02102/0.5403, allocations: 9.062 MB / 0.4884 GB, free: 15.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.791e-05/0.5404, allocations: 141.5 kB / 0.4885 GB, free: 15.76 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005949/0.5464, allocations: 3.948 MB / 0.4924 GB, free: 11.83 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002392/0.5466, allocations: 49.7 kB / 0.4924 GB, free: 11.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002518/0.5492, allocations: 3.078 MB / 0.4954 GB, free: 8.652 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005908/0.5498, allocations: 0.6057 MB / 0.496 GB, free: 8.039 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/0.5511, allocations: 1.167 MB / 0.4971 GB, free: 6.859 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.5512, allocations: 305.1 kB / 0.4974 GB, free: 6.559 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.5536, allocations: 1.585 MB / 0.499 GB, free: 4.969 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004836/0.5584, allocations: 5.351 MB / 0.5042 GB, free: 13.72 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007798/0.5663, allocations: 7.561 MB / 0.5116 GB, free: 4.277 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.542e-05/0.5664, allocations: 36 kB / 0.5116 GB, free: 4.242 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01076/0.5771, allocations: 6.652 MB / 0.5181 GB, free: 13.58 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.264e-05/0.5772, allocations: 68.12 kB / 0.5182 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/0.5773, allocations: 132 kB / 0.5183 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001487/0.5775, allocations: 183.9 kB / 0.5185 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/0.5814, allocations: 1.389 MB / 0.5198 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001959/0.5816, allocations: 260 kB / 0.5201 GB, free: 11.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003736/0.5853, allocations: 279.7 kB / 0.5204 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00042/0.5858, allocations: 364 kB / 0.5207 GB, free: 10.93 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.003129/0.5889, allocations: 1.986 MB / 0.5226 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006476/0.5896, allocations: 339.6 kB / 0.523 GB, free: 8.598 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.5917, allocations: 1.242 MB / 0.5242 GB, free: 7.344 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.601e-05/0.5917, allocations: 23.98 kB / 0.5242 GB, free: 7.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.5917, allocations: 4.062 kB / 0.5242 GB, free: 7.316 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.5917, allocations: 3.984 kB / 0.5242 GB, free: 7.312 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008877/0.6006, allocations: 5.744 MB / 0.5298 GB, free: 1.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.16e-05/0.6007, allocations: 23.88 kB / 0.5298 GB, free: 1.219 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009753/0.6016, allocations: 275.7 kB / 0.5301 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-05/0.6017, allocations: 24 kB / 0.5301 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.391e-05/0.6018, allocations: 55.98 kB / 0.5302 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.549e-05/0.6018, allocations: 36.33 kB / 0.5302 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.069e-05/0.6018, allocations: 27.88 kB / 0.5302 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003887/0.6057, allocations: 3.231 MB / 0.5334 GB, free: 13.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.607, allocations: 0.5082 MB / 0.5339 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003387/0.6074, allocations: 47.98 kB / 0.5339 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.6084, allocations: 63.95 kB / 0.534 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.6086, allocations: 147.4 kB / 0.5341 GB, free: 12.53 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.6087, allocations: 68 kB / 0.5342 GB, free: 12.46 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003931/0.6127, allocations: 2.45 MB / 0.5366 GB, free: 10.04 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.853e-06/0.6127, allocations: 0 / 0.5366 GB, free: 10.04 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005625/0.6183, allocations: 0.8671 MB / 0.5374 GB, free: 9.168 MB / 478.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.0005038/0.6188, allocations: 210.6 kB / 0.5376 GB, free: 8.953 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006989/0.6258, allocations: 3.681 MB / 0.5412 GB, free: 5.301 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/0.6259, allocations: 4 kB / 0.5412 GB, free: 5.297 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009878/0.6269, allocations: 0.7203 MB / 0.5419 GB, free: 4.582 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003377/0.6303, allocations: 475.5 kB / 0.5424 GB, free: 4.117 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2245/0.8547, allocations: 8.529 MB / 0.5507 GB, free: 146.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003892/0.8587, allocations: 3.103 MB / 0.5538 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004609/0.8633, allocations: 1.764 MB / 0.5555 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006562/0.864, allocations: 238.2 kB / 0.5557 GB, free: 145.9 MB / 478.1 MB Notification: Performance of SimCode: time 9.12e-07/0.864, allocations: 2 kB / 0.5557 GB, free: 145.9 MB / 478.1 MB Notification: Performance of Templates: time 0.05119/0.9152, allocations: 23.9 MB / 0.5791 GB, free: 138.1 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches