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.0008767/0.0008768, allocations: 94.81 kB / 17.3 MB, free: 6.34 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.0009004/0.0009005, allocations: 180.1 kB / 18.21 MB, free: 5.527 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.564/1.564, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0006764/0.0006767, allocations: 8 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.125, allocations: 47.59 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.04025/0.1653, allocations: 37.61 MB / 366.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01922/0.1846, allocations: 8.432 MB / 375 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008074/0.1927, allocations: 159.6 kB / 375.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001684/0.1945, allocations: 425.8 kB / 375.6 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005465/0.2, allocations: 1.713 MB / 377.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.2017, allocations: 0.6553 MB / 377.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2274/0.4292, allocations: 5.906 MB / 383.9 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006849/0.4361, allocations: 3.711 MB / 387.6 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002706/0.4388, allocations: 1.17 MB / 388.7 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003753/0.4426, allocations: 2.029 MB / 390.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009949/0.4436, allocations: 142.6 kB / 390.9 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002582/0.4462, allocations: 0.833 MB / 391.7 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002255/0.4485, allocations: 1.684 MB / 393.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002673/0.4511, allocations: 1.942 MB / 395.4 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007147/0.4583, allocations: 5.962 MB / 401.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.4583, allocations: 2.312 kB / 401.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4583, allocations: 0 / 401.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002469/0.4586, allocations: 0 / 401.3 MB, free: 5.953 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.007806/0.4664, allocations: 3.801 MB / 405.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.4665, allocations: 14.22 kB / 405.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007558/0.4741, allocations: 1.972 MB / 407.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004394/0.4785, allocations: 2.352 MB / 409.5 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.4787, allocations: 229.1 kB / 409.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008065/0.4795, allocations: 296.4 kB / 410 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01629/0.4958, allocations: 9.657 MB / 419.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001279/0.496, allocations: 55.14 kB / 419.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004006/0.4964, allocations: 142.3 kB / 419.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.4993, allocations: 1.916 MB / 421.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/0.5157, allocations: 7.647 MB / 429.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04518/0.5609, allocations: 37.78 MB / 467.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006613/0.5675, allocations: 2.879 MB / 470.1 MB, free: 8.418 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.5689, allocations: 0.8655 MB / 470.9 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00645/0.5753, allocations: 3.771 MB / 474.7 MB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.5754, allocations: 54.39 kB / 474.7 MB, free: 3.539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.967e-06/0.5754, allocations: 0 / 474.7 MB, free: 3.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.0221/0.5975, allocations: 9.079 MB / 483.8 MB, free: 10.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/0.5977, allocations: 148.6 kB / 484 MB, free: 10.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00521/0.6029, allocations: 3.936 MB / 487.9 MB, free: 6.281 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.603, allocations: 53.06 kB / 488 MB, free: 6.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002082/0.6051, allocations: 3.081 MB / 491 MB, free: 3.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005742/0.6057, allocations: 0.6119 MB / 491.6 MB, free: 2.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005223/0.6062, allocations: 0.4963 MB / 492.1 MB, free: 2.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.829e-05/0.6064, allocations: 305.1 kB / 492.4 MB, free: 1.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002395/0.6088, allocations: 1.581 MB / 494 MB, free: 152 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005032/0.6138, allocations: 5.358 MB / 499.4 MB, free: 8.965 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008898/0.6227, allocations: 7.54 MB / 0.495 GB, free: 72 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/0.6229, allocations: 40 kB / 0.4951 GB, free: 32 kB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01344/0.6363, allocations: 6.666 MB / 0.5016 GB, free: 9.965 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.6365, allocations: 60 kB / 0.5016 GB, free: 9.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/0.6367, allocations: 136 kB / 0.5018 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001855/0.6369, allocations: 176 kB / 0.5019 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004656/0.6415, allocations: 1.38 MB / 0.5033 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002096/0.6418, allocations: 267.2 kB / 0.5035 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004521/0.6463, allocations: 296.5 kB / 0.5038 GB, free: 7.668 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008419/0.6472, allocations: 365.2 kB / 0.5042 GB, free: 7.312 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.004136/0.6513, allocations: 1.978 MB / 0.5061 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007669/0.6521, allocations: 331.7 kB / 0.5064 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/0.6543, allocations: 1.254 MB / 0.5076 GB, free: 3.734 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.991e-05/0.6544, allocations: 16.92 kB / 0.5077 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/0.6544, allocations: 7.969 kB / 0.5077 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.6544, allocations: 7.984 kB / 0.5077 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.665, allocations: 5.752 MB / 0.5133 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.293e-05/0.6651, allocations: 20 kB / 0.5133 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.6662, allocations: 279.6 kB / 0.5136 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.01e-05/0.6662, allocations: 28 kB / 0.5136 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.6664, allocations: 44.47 kB / 0.5137 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.823e-05/0.6664, allocations: 35.86 kB / 0.5137 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.207e-05/0.6664, allocations: 31.88 kB / 0.5137 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004166/0.6706, allocations: 3.215 MB / 0.5169 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.672, allocations: 0.5161 MB / 0.5174 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003939/0.6724, allocations: 53.09 kB / 0.5174 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.6735, allocations: 63.95 kB / 0.5175 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/0.6737, allocations: 151.4 kB / 0.5176 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6738, allocations: 65.09 kB / 0.5177 GB, free: 8.891 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003985/0.6778, allocations: 2.45 MB / 0.5201 GB, free: 6.461 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6778, allocations: 0 / 0.5201 GB, free: 6.461 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004943/0.6828, allocations: 0.868 MB / 0.5209 GB, free: 5.594 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.0004718/0.6833, allocations: 206.1 kB / 0.5211 GB, free: 5.383 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006361/0.6897, allocations: 3.632 MB / 0.5247 GB, free: 1.781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.209e-05/0.6897, allocations: 8.25 kB / 0.5247 GB, free: 1.773 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.6908, allocations: 0.7225 MB / 0.5254 GB, free: 1.055 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01143/0.7022, allocations: 456.8 kB / 0.5258 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/0.7209, allocations: 10.64 MB / 0.5362 GB, free: 5.695 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003713/0.7247, allocations: 3.107 MB / 0.5392 GB, free: 2.555 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004492/0.7292, allocations: 1.768 MB / 0.541 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005408/0.7297, allocations: 235.4 kB / 0.5412 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.7298, allocations: 0 / 0.5412 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of Templates: time 0.2586/0.9884, allocations: 26.07 MB / 0.5666 GB, free: 164.6 MB / 462.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