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.00102/0.00102, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.00102/0.00102, allocations: 192 kB / 18.62 MB, free: 4.434 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.341/1.341, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009736/0.0009737, allocations: 50.59 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09622, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01107/0.1073, allocations: 10.7 MB / 362.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007822/0.1152, allocations: 3.868 MB / 366.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001384/0.1166, allocations: 63.81 kB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00388/0.1206, allocations: 2.238 MB / 368.4 MB, free: 2.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00408/0.1247, allocations: 1.824 MB / 370.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.1261, allocations: 0.7097 MB / 370.9 MB, free: 216 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1864/0.3125, allocations: 4.224 MB / 375.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00441/0.3169, allocations: 2.907 MB / 378 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.3198, allocations: 1.481 MB / 379.5 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.323, allocations: 2.079 MB / 381.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007583/0.3238, allocations: 291.8 kB / 381.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.3258, allocations: 0.9389 MB / 382.8 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002124/0.328, allocations: 1.811 MB / 384.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002586/0.3306, allocations: 2.099 MB / 386.7 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006766/0.3373, allocations: 6.421 MB / 393.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3374, allocations: 3.938 kB / 393.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3374, allocations: 0 / 393.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001937/0.3376, allocations: 0 / 393.2 MB, free: 4.676 MB / 302.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.00953/0.3471, allocations: 4.598 MB / 397.7 MB, free: 1.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.3472, allocations: 13.61 kB / 397.8 MB, free: 1.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006379/0.3536, allocations: 1.921 MB / 399.7 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004642/0.3582, allocations: 2.292 MB / 402 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.3584, allocations: 228.1 kB / 402.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006855/0.3591, allocations: 294.9 kB / 402.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01719/0.3763, allocations: 9.64 MB / 412.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.3765, allocations: 45.69 kB / 412.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004322/0.377, allocations: 150.1 kB / 412.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002876/0.3798, allocations: 1.918 MB / 414.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01497/0.3948, allocations: 7.628 MB / 421.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04308/0.438, allocations: 37.6 MB / 459.5 MB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006296/0.4443, allocations: 2.888 MB / 462.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.4456, allocations: 0.8785 MB / 463.2 MB, free: 68 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006367/0.452, allocations: 3.757 MB / 467 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.452, allocations: 55.09 kB / 467 MB, free: 12.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.407e-06/0.452, allocations: 4 kB / 467 MB, free: 12.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02033/0.4724, allocations: 9.01 MB / 476.1 MB, free: 2.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.288e-05/0.4725, allocations: 149.4 kB / 476.2 MB, free: 2.766 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005363/0.4778, allocations: 3.92 MB / 480.1 MB, free: 14.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002357/0.4781, allocations: 49.7 kB / 480.2 MB, free: 14.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/0.4801, allocations: 3.078 MB / 483.2 MB, free: 11.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006621/0.4808, allocations: 0.6054 MB / 483.9 MB, free: 11.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/0.4823, allocations: 1.169 MB / 485 MB, free: 9.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.4824, allocations: 309.1 kB / 485.3 MB, free: 9.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002577/0.485, allocations: 1.573 MB / 486.9 MB, free: 8.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004814/0.4898, allocations: 5.359 MB / 492.3 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007648/0.4974, allocations: 7.554 MB / 499.8 MB, free: 7.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.968e-05/0.4975, allocations: 40 kB / 499.8 MB, free: 7.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01002/0.5076, allocations: 6.651 MB / 0.4946 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.349e-05/0.5077, allocations: 64 kB / 0.4947 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/0.5078, allocations: 132 kB / 0.4948 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001497/0.508, allocations: 176 kB / 0.495 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004068/0.512, allocations: 1.384 MB / 0.4963 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001825/0.5122, allocations: 267.1 kB / 0.4966 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003648/0.5159, allocations: 289.3 kB / 0.4969 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004864/0.5164, allocations: 367.9 kB / 0.4972 GB, free: 14.06 MB / 430.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.003413/0.5198, allocations: 1.989 MB / 0.4992 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006335/0.5205, allocations: 331.7 kB / 0.4995 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/0.5225, allocations: 1.252 MB / 0.5007 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.5225, allocations: 16.14 kB / 0.5007 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/0.5225, allocations: 0 / 0.5007 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.5225, allocations: 11.97 kB / 0.5007 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008806/0.5313, allocations: 5.747 MB / 0.5063 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.141e-05/0.5314, allocations: 16 kB / 0.5064 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009358/0.5323, allocations: 279.5 kB / 0.5066 GB, free: 4.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.309e-05/0.5324, allocations: 27.94 kB / 0.5066 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.93e-05/0.5325, allocations: 48 kB / 0.5067 GB, free: 4.043 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.852e-05/0.5325, allocations: 35.86 kB / 0.5067 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-05/0.5325, allocations: 28.25 kB / 0.5068 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.536, allocations: 3.213 MB / 0.5099 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008317/0.5368, allocations: 413.7 kB / 0.5103 GB, free: 84 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003067/0.5371, allocations: 47.98 kB / 0.5103 GB, free: 36 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.5382, allocations: 59.95 kB / 0.5104 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.5384, allocations: 151.4 kB / 0.5105 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.5385, allocations: 67.52 kB / 0.5106 GB, free: 15.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003707/0.5422, allocations: 2.434 MB / 0.513 GB, free: 13.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5422, allocations: 0 / 0.513 GB, free: 13.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004715/0.547, allocations: 0.871 MB / 0.5138 GB, free: 12.48 MB / 446.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.000381/0.5474, allocations: 202.6 kB / 0.514 GB, free: 12.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005669/0.553, allocations: 3.686 MB / 0.5176 GB, free: 8.617 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/0.5531, allocations: 4.188 kB / 0.5176 GB, free: 8.613 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.5541, allocations: 0.7307 MB / 0.5183 GB, free: 7.887 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003198/0.5573, allocations: 453.7 kB / 0.5188 GB, free: 7.453 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2011/0.7584, allocations: 8.492 MB / 0.5271 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005171/0.7636, allocations: 3.097 MB / 0.5301 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0043/0.7679, allocations: 1.772 MB / 0.5318 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006205/0.7686, allocations: 233.1 kB / 0.532 GB, free: 144.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.7686, allocations: 0 / 0.532 GB, free: 144.9 MB / 446.1 MB Notification: Performance of Templates: time 0.04897/0.8176, allocations: 21.9 MB / 0.5534 GB, free: 138 MB / 446.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 -s cvode -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