Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 118.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 211.7 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 64.14 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2258, allocations: 50.55 MB / 410.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01227/0.238, allocations: 10.7 MB / 420.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008716/0.2468, allocations: 3.896 MB / 424.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002104/0.2489, allocations: 63.81 kB / 424.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004353/0.2532, allocations: 2.258 MB / 427.1 MB, free: 480 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004491/0.2577, allocations: 1.839 MB / 429 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.2593, allocations: 0.7097 MB / 429.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005954/0.2652, allocations: 4.32 MB / 434 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003084/0.2683, allocations: 2.491 MB / 436.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002132/0.2704, allocations: 1.468 MB / 438 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002707/0.2731, allocations: 2.079 MB / 440 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005798/0.2737, allocations: 292 kB / 440.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.2754, allocations: 0.9246 MB / 441.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001734/0.2772, allocations: 1.846 MB / 443.1 MB, free: 436 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00204/0.2792, allocations: 2.077 MB / 445.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006939/0.2861, allocations: 6.38 MB / 451.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.2862, allocations: 0 / 451.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2862, allocations: 4 kB / 451.6 MB, free: 7.926 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001842/0.2863, allocations: 0 / 451.6 MB, free: 7.926 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.008356/0.2947, allocations: 4.677 MB / 456.2 MB, free: 3.172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.2947, allocations: 12.03 kB / 456.2 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007626/0.3024, allocations: 1.94 MB / 458.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004827/0.3072, allocations: 2.258 MB / 460.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.3074, allocations: 225.6 kB / 460.7 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006309/0.308, allocations: 295.8 kB / 460.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01607/0.3241, allocations: 9.659 MB / 470.6 MB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.3242, allocations: 47.58 kB / 470.7 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003768/0.3246, allocations: 151.9 kB / 470.8 MB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003093/0.3277, allocations: 1.911 MB / 472.7 MB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01554/0.3432, allocations: 7.641 MB / 480.4 MB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04538/0.3886, allocations: 37.69 MB / 0.5059 GB, free: 3.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007232/0.3958, allocations: 2.8 MB / 0.5086 GB, free: 404 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.3971, allocations: 0.791 MB / 0.5094 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006441/0.4036, allocations: 3.851 MB / 0.5132 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.4036, allocations: 47.16 kB / 0.5132 GB, free: 11.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.267e-06/0.4036, allocations: 0 / 0.5132 GB, free: 11.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02294/0.4266, allocations: 9.283 MB / 0.5223 GB, free: 2.086 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.4267, allocations: 141.5 kB / 0.5224 GB, free: 1.918 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005857/0.4325, allocations: 3.928 MB / 0.5262 GB, free: 14.01 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.4327, allocations: 45.7 kB / 0.5263 GB, free: 13.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002745/0.4355, allocations: 3.201 MB / 0.5294 GB, free: 10.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007278/0.4362, allocations: 0.632 MB / 0.53 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001604/0.4378, allocations: 1.175 MB / 0.5312 GB, free: 8.902 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4379, allocations: 309.1 kB / 0.5315 GB, free: 8.598 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00277/0.4407, allocations: 1.585 MB / 0.533 GB, free: 7.008 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1956/0.6363, allocations: 5.351 MB / 0.5382 GB, free: 118.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006615/0.6429, allocations: 7.561 MB / 0.5456 GB, free: 112.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.035e-05/0.643, allocations: 39.34 kB / 0.5457 GB, free: 112.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.00805/0.651, allocations: 6.685 MB / 0.5522 GB, free: 109.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.731e-05/0.6511, allocations: 65.69 kB / 0.5523 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.029e-05/0.6511, allocations: 135.2 kB / 0.5524 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001178/0.6513, allocations: 176.2 kB / 0.5526 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003318/0.6546, allocations: 1.382 MB / 0.5539 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001347/0.6547, allocations: 265.3 kB / 0.5542 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002939/0.6576, allocations: 288.4 kB / 0.5544 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002875/0.6579, allocations: 371.9 kB / 0.5548 GB, free: 109.5 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.001847/0.6598, allocations: 1.986 MB / 0.5567 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003258/0.6601, allocations: 350.3 kB / 0.5571 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004984/0.6606, allocations: 395.8 kB / 0.5574 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.6606, allocations: 23.03 kB / 0.5575 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.6606, allocations: 2.406 kB / 0.5575 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.6606, allocations: 7.312 kB / 0.5575 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006307/0.6669, allocations: 5.754 MB / 0.5631 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/0.667, allocations: 16 kB / 0.5631 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008775/0.6678, allocations: 281.8 kB / 0.5634 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.555e-05/0.6679, allocations: 24 kB / 0.5634 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-05/0.6679, allocations: 48 kB / 0.5634 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-05/0.6679, allocations: 35.62 kB / 0.5635 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/0.6679, allocations: 31.88 kB / 0.5635 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002607/0.6706, allocations: 3.251 MB / 0.5667 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004431/0.671, allocations: 425.2 kB / 0.5671 GB, free: 99.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.6713, allocations: 52.77 kB / 0.5671 GB, free: 99.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.6723, allocations: 62.66 kB / 0.5672 GB, free: 99.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.6724, allocations: 150.7 kB / 0.5673 GB, free: 99.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.944e-05/0.6725, allocations: 67.89 kB / 0.5674 GB, free: 99.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002436/0.6749, allocations: 2.429 MB / 0.5698 GB, free: 97.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6749, allocations: 0 / 0.5698 GB, free: 97.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003516/0.6785, allocations: 0.8486 MB / 0.5706 GB, free: 96.48 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.0002987/0.6788, allocations: 202.4 kB / 0.5708 GB, free: 96.31 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004015/0.6828, allocations: 3.555 MB / 0.5743 GB, free: 92.85 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.6828, allocations: 4 kB / 0.5743 GB, free: 92.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007546/0.6835, allocations: 0.692 MB / 0.575 GB, free: 92.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/0.6857, allocations: 457.3 kB / 0.5754 GB, free: 91.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009586/0.6953, allocations: 8.637 MB / 0.5838 GB, free: 82.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/0.6976, allocations: 3.097 MB / 0.5868 GB, free: 79.69 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003068/0.7007, allocations: 1.757 MB / 0.5886 GB, free: 77.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003647/0.701, allocations: 239.4 kB / 0.5888 GB, free: 77.69 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.701, allocations: 3.938 kB / 0.5888 GB, free: 77.69 MB / 462.1 MB Notification: Performance of Templates: time 0.04355/0.7446, allocations: 23.83 MB / 0.6121 GB, free: 54.09 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches