Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00203/0.00203, allocations: 175.1 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 86.36 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002765, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2147, allocations: 47.57 MB / 375.1 MB, free: 45.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02592/0.2407, allocations: 35.01 MB / 410.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.2585, allocations: 8.024 MB / 418.1 MB, free: 5.578 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007404/0.266, allocations: 163.6 kB / 418.3 MB, free: 5.418 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00534/0.2714, allocations: 1.8 MB / 420.1 MB, free: 3.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01462/0.286, allocations: 5.525 MB / 425.6 MB, free: 14.07 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003169/0.2892, allocations: 0.6631 MB / 426.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006961/0.2962, allocations: 4.757 MB / 431 MB, free: 8.629 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00649/0.3028, allocations: 3.591 MB / 434.6 MB, free: 4.969 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003769/0.3066, allocations: 1.28 MB / 435.9 MB, free: 3.684 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004363/0.311, allocations: 2.002 MB / 437.9 MB, free: 1.676 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009035/0.312, allocations: 147.9 kB / 438 MB, free: 1.531 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/0.3144, allocations: 0.8229 MB / 438.9 MB, free: 0.707 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002187/0.3167, allocations: 1.636 MB / 440.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00223/0.3189, allocations: 1.831 MB / 442.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005985/0.3249, allocations: 4.851 MB / 447.2 MB, free: 8.352 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3249, allocations: 0 / 447.2 MB, free: 8.352 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3249, allocations: 0 / 447.2 MB, free: 8.352 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002018/0.3251, allocations: 0 / 447.2 MB, free: 8.352 MB / 330.7 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.007443/0.3326, allocations: 3.803 MB / 451 MB, free: 4.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.3327, allocations: 12.03 kB / 451 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006978/0.3396, allocations: 1.972 MB / 453 MB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005306/0.345, allocations: 2.359 MB / 455.3 MB, free: 68 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.3452, allocations: 229.6 kB / 455.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007865/0.346, allocations: 295.8 kB / 455.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01638/0.3624, allocations: 9.639 MB / 465.5 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001333/0.3626, allocations: 43.59 kB / 465.5 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003622/0.363, allocations: 147.9 kB / 465.7 MB, free: 4.965 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002773/0.3658, allocations: 1.915 MB / 467.6 MB, free: 3.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01612/0.3819, allocations: 7.61 MB / 475.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2471/0.629, allocations: 37.77 MB / 0.5009 GB, free: 82.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006126/0.6352, allocations: 2.87 MB / 0.5037 GB, free: 81.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.6364, allocations: 0.8706 MB / 0.5046 GB, free: 81.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005669/0.6421, allocations: 3.759 MB / 0.5083 GB, free: 79.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.6422, allocations: 56.33 kB / 0.5083 GB, free: 79.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.927e-06/0.6422, allocations: 1.781 kB / 0.5083 GB, free: 79.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01822/0.6604, allocations: 9.059 MB / 0.5172 GB, free: 74.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.6605, allocations: 147.9 kB / 0.5173 GB, free: 74.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004249/0.6648, allocations: 3.918 MB / 0.5211 GB, free: 72.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001326/0.6649, allocations: 53.66 kB / 0.5212 GB, free: 72.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00142/0.6663, allocations: 3.084 MB / 0.5242 GB, free: 69.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005036/0.6668, allocations: 0.6089 MB / 0.5248 GB, free: 69.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.667, allocations: 115.4 kB / 0.5249 GB, free: 68.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.6672, allocations: 0.5538 MB / 0.5254 GB, free: 68.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001978/0.6692, allocations: 1.558 MB / 0.527 GB, free: 67.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003199/0.6724, allocations: 5.334 MB / 0.5322 GB, free: 60.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005843/0.6783, allocations: 7.523 MB / 0.5395 GB, free: 50.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.118e-05/0.6784, allocations: 36 kB / 0.5395 GB, free: 50.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009022/0.6874, allocations: 6.611 MB / 0.546 GB, free: 44.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.428e-05/0.6875, allocations: 60 kB / 0.5461 GB, free: 44.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.6876, allocations: 136.9 kB / 0.5462 GB, free: 44.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001253/0.6878, allocations: 179.9 kB / 0.5464 GB, free: 43.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003337/0.6911, allocations: 1.389 MB / 0.5477 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001283/0.6913, allocations: 263 kB / 0.548 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00326/0.6945, allocations: 283.6 kB / 0.5482 GB, free: 41.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003328/0.6949, allocations: 369.1 kB / 0.5486 GB, free: 41.61 MB / 378.7 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.002633/0.6975, allocations: 1.975 MB / 0.5505 GB, free: 39.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005348/0.6981, allocations: 339.6 kB / 0.5508 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.6998, allocations: 1.246 MB / 0.5521 GB, free: 38.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.373e-05/0.6998, allocations: 17.62 kB / 0.5521 GB, free: 38.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.6998, allocations: 7.938 kB / 0.5521 GB, free: 38.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.6999, allocations: 15.47 kB / 0.5521 GB, free: 38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007269/0.7071, allocations: 5.749 MB / 0.5577 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/0.7072, allocations: 20 kB / 0.5577 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008401/0.708, allocations: 275.5 kB / 0.558 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.7081, allocations: 24 kB / 0.558 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.045e-05/0.7081, allocations: 52 kB / 0.5581 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.047e-05/0.7082, allocations: 35.86 kB / 0.5581 GB, free: 31.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.369e-05/0.7082, allocations: 27.88 kB / 0.5581 GB, free: 31.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003041/0.7112, allocations: 3.209 MB / 0.5613 GB, free: 28.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008442/0.7121, allocations: 0.516 MB / 0.5618 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/0.7124, allocations: 47.98 kB / 0.5618 GB, free: 27.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009392/0.7133, allocations: 59.97 kB / 0.5619 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.7134, allocations: 151.4 kB / 0.562 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.556e-05/0.7135, allocations: 69.19 kB / 0.5621 GB, free: 27.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002867/0.7164, allocations: 2.431 MB / 0.5645 GB, free: 24.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7164, allocations: 0 / 0.5645 GB, free: 24.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003978/0.7204, allocations: 0.8693 MB / 0.5653 GB, free: 23.93 MB / 378.7 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.0003355/0.7207, allocations: 193.2 kB / 0.5655 GB, free: 23.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00499/0.7257, allocations: 3.615 MB / 0.569 GB, free: 20.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.7258, allocations: 4 kB / 0.569 GB, free: 20.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007852/0.7265, allocations: 0.723 MB / 0.5697 GB, free: 19.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0106/0.7372, allocations: 451.2 kB / 0.5702 GB, free: 18.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/0.7497, allocations: 10.58 MB / 0.5805 GB, free: 8.121 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002569/0.7523, allocations: 3.111 MB / 0.5835 GB, free: 4.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007154/0.753, allocations: 275.4 kB / 0.5838 GB, free: 4.711 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.753, allocations: 0 / 0.5838 GB, free: 4.711 MB / 378.7 MB Notification: Performance of Templates: time 0.07503/0.828, allocations: 50.65 MB / 0.6333 GB, free: 1.988 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches