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.001058/0.001058, allocations: 96.33 kB / 16.95 MB, free: 6.887 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.0009111/0.0009113, allocations: 184.5 kB / 17.84 MB, free: 6.133 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.441/1.441, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005187/0.0005191, allocations: 12 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1007, allocations: 47.58 MB / 328.4 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03231/0.133, allocations: 35.01 MB / 363.4 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01914/0.1522, allocations: 8.013 MB / 371.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007888/0.1602, allocations: 167.6 kB / 371.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006453/0.1666, allocations: 1.788 MB / 373.3 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01646/0.1831, allocations: 5.51 MB / 378.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003254/0.1864, allocations: 0.6319 MB / 379.5 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1913/0.3778, allocations: 4.712 MB / 384.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005747/0.3835, allocations: 3.354 MB / 387.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002373/0.3859, allocations: 1.276 MB / 388.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002976/0.3889, allocations: 2.014 MB / 390.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005214/0.3895, allocations: 144.3 kB / 391 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001559/0.391, allocations: 0.7173 MB / 391.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.3926, allocations: 1.644 MB / 393.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.3937, allocations: 0.7852 MB / 394.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005349/0.399, allocations: 4.851 MB / 399 MB, free: 9.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3991, allocations: 2.156 kB / 399 MB, free: 9.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3991, allocations: 0 / 399 MB, free: 9.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002596/0.3993, allocations: 1.641 kB / 399 MB, free: 9.645 MB / 318.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.007706/0.4071, allocations: 3.855 MB / 402.8 MB, free: 7.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.4071, allocations: 7.719 kB / 402.8 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007085/0.4142, allocations: 1.976 MB / 404.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004363/0.4186, allocations: 2.304 MB / 407.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.4188, allocations: 228.9 kB / 407.3 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008274/0.4196, allocations: 293.1 kB / 407.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01531/0.435, allocations: 9.638 MB / 417.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001312/0.4351, allocations: 44.62 kB / 417.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004/0.4356, allocations: 146 kB / 417.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.4383, allocations: 1.918 MB / 419.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/0.4534, allocations: 7.613 MB / 427 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04521/0.4987, allocations: 37.76 MB / 464.7 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007009/0.5058, allocations: 2.873 MB / 467.6 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.5072, allocations: 0.877 MB / 468.5 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006541/0.5137, allocations: 3.767 MB / 472.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.5138, allocations: 45.94 kB / 472.3 MB, free: 15.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.218e-06/0.5138, allocations: 4 kB / 472.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02289/0.5367, allocations: 9.057 MB / 481.3 MB, free: 6.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.933e-05/0.5368, allocations: 145.5 kB / 481.5 MB, free: 6.512 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007517/0.5444, allocations: 3.916 MB / 485.4 MB, free: 2.617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000297/0.5447, allocations: 47.19 kB / 485.5 MB, free: 2.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/0.5472, allocations: 3.095 MB / 488.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009594/0.5482, allocations: 0.6028 MB / 489.2 MB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000542/0.5487, allocations: 116 kB / 489.3 MB, free: 14.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0006567/0.5494, allocations: 0.554 MB / 489.8 MB, free: 14.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003345/0.5528, allocations: 1.557 MB / 491.4 MB, free: 12.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006506/0.5593, allocations: 5.332 MB / 496.7 MB, free: 5.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004862/0.5642, allocations: 2.825 MB / 499.5 MB, free: 2.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001506/0.5643, allocations: 36 kB / 499.6 MB, free: 2.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01443/0.5788, allocations: 6.607 MB / 0.4943 GB, free: 12.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.579, allocations: 71.11 kB / 0.4944 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002161/0.5792, allocations: 134.1 kB / 0.4945 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002321/0.5794, allocations: 200 kB / 0.4947 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004647/0.5841, allocations: 1.38 MB / 0.496 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002616/0.5844, allocations: 266.7 kB / 0.4963 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004353/0.5887, allocations: 287.5 kB / 0.4966 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000765/0.5895, allocations: 368 kB / 0.4969 GB, free: 9.395 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004148/0.5937, allocations: 1.978 MB / 0.4989 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008217/0.5945, allocations: 335.7 kB / 0.4992 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002471/0.597, allocations: 1.246 MB / 0.5004 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.208e-05/0.597, allocations: 22.42 kB / 0.5004 GB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.5971, allocations: 0 / 0.5004 GB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-05/0.5971, allocations: 15.92 kB / 0.5004 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/0.611, allocations: 5.736 MB / 0.506 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.115e-05/0.6111, allocations: 20 kB / 0.5061 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.6122, allocations: 275.5 kB / 0.5063 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.364e-05/0.6122, allocations: 28 kB / 0.5063 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.6124, allocations: 47.95 kB / 0.5064 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.042e-05/0.6124, allocations: 35.86 kB / 0.5064 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.34e-05/0.6124, allocations: 32.78 kB / 0.5065 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004179/0.6166, allocations: 3.203 MB / 0.5096 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/0.6181, allocations: 0.52 MB / 0.5101 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007958/0.6189, allocations: 51.94 kB / 0.5101 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/0.6206, allocations: 59.97 kB / 0.5102 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.6208, allocations: 146 kB / 0.5103 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/0.6209, allocations: 76.05 kB / 0.5104 GB, free: 10.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004981/0.6259, allocations: 2.431 MB / 0.5128 GB, free: 8.582 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6259, allocations: 0 / 0.5128 GB, free: 8.582 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005591/0.6315, allocations: 0.8672 MB / 0.5136 GB, free: 7.715 MB / 430.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 (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.0006288/0.6322, allocations: 203.9 kB / 0.5138 GB, free: 7.512 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007197/0.6394, allocations: 3.61 MB / 0.5173 GB, free: 3.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/0.6394, allocations: 4 kB / 0.5174 GB, free: 3.926 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.6407, allocations: 0.7234 MB / 0.5181 GB, free: 3.207 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003899/0.6446, allocations: 448.4 kB / 0.5185 GB, free: 2.77 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/0.6649, allocations: 10.18 MB / 0.5284 GB, free: 8.309 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005298/0.6702, allocations: 3.103 MB / 0.5315 GB, free: 5.172 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004927/0.6752, allocations: 1.774 MB / 0.5332 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005642/0.6758, allocations: 231.4 kB / 0.5334 GB, free: 3.164 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/0.6758, allocations: 2.406 kB / 0.5334 GB, free: 3.164 MB / 446.1 MB Notification: Performance of Templates: time 0.2496/0.9253, allocations: 25.54 MB / 0.5584 GB, free: 113.7 MB / 446.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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches