Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000885/0.0008853, allocations: 98.61 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009522/0.0009524, allocations: 197.8 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002563, allocations: 8 kB / 306.6 MB, free: 1.402 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1052, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2218/0.3271, allocations: 33.05 MB / 391.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01742/0.3445, allocations: 8.365 MB / 399.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006167/0.3507, allocations: 165.1 kB / 399.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00567/0.3564, allocations: 1.61 MB / 401.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01713/0.3736, allocations: 4.857 MB / 406.1 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002772/0.3764, allocations: 0.6139 MB / 406.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005252/0.3816, allocations: 2.467 MB / 409.2 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005675/0.3873, allocations: 3.332 MB / 412.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.3896, allocations: 1.043 MB / 413.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/0.3921, allocations: 1.468 MB / 415 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007843/0.3929, allocations: 144 kB / 415.2 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001864/0.3948, allocations: 0.6749 MB / 415.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001743/0.3965, allocations: 1.523 MB / 417.4 MB, free: 244 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008565/0.3974, allocations: 0.7843 MB / 418.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004692/0.4021, allocations: 4.845 MB / 423 MB, free: 10.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.4021, allocations: 0 / 423 MB, free: 10.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4021, allocations: 4 kB / 423 MB, free: 10.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001353/0.4023, allocations: 0 / 423 MB, free: 10.58 MB / 334.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.006633/0.4089, allocations: 3.863 MB / 426.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.409, allocations: 16.03 kB / 426.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008016/0.417, allocations: 2.264 MB / 429.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005304/0.4223, allocations: 2.399 MB / 431.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.4226, allocations: 233.6 kB / 431.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006664/0.4232, allocations: 295.8 kB / 432.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.4384, allocations: 9.722 MB / 441.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.725e-05/0.4385, allocations: 47.53 kB / 441.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003422/0.4388, allocations: 143.9 kB / 442 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002854/0.4417, allocations: 1.919 MB / 443.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01485/0.4566, allocations: 7.72 MB / 451.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04297/0.4996, allocations: 37.84 MB / 489.5 MB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00693/0.5065, allocations: 2.907 MB / 492.4 MB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006498/0.5131, allocations: 3.905 MB / 496.3 MB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.5132, allocations: 47.22 kB / 496.3 MB, free: 14.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.217e-06/0.5132, allocations: 0 / 496.3 MB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02044/0.5336, allocations: 9.37 MB / 0.4938 GB, free: 5.266 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.5337, allocations: 141.5 kB / 0.494 GB, free: 5.094 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004811/0.5385, allocations: 4.132 MB / 0.498 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.5387, allocations: 45.7 kB / 0.498 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002059/0.5407, allocations: 3.086 MB / 0.5011 GB, free: 13.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005573/0.5413, allocations: 0.6058 MB / 0.5016 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.5415, allocations: 116 kB / 0.5018 GB, free: 13.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003308/0.5418, allocations: 0.5538 MB / 0.5023 GB, free: 12.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/0.5442, allocations: 1.546 MB / 0.5038 GB, free: 10.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004631/0.5488, allocations: 5.303 MB / 0.509 GB, free: 3.758 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003826/0.5527, allocations: 2.806 MB / 0.5117 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.445e-05/0.5527, allocations: 47.94 kB / 0.5118 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01092/0.5637, allocations: 6.584 MB / 0.5182 GB, free: 10.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.003e-05/0.5638, allocations: 64 kB / 0.5183 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001497/0.5639, allocations: 132 kB / 0.5184 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002284/0.5642, allocations: 196 kB / 0.5186 GB, free: 9.934 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00385/0.568, allocations: 1.381 MB / 0.5199 GB, free: 8.551 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001961/0.5682, allocations: 259 kB / 0.5202 GB, free: 8.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/0.5716, allocations: 287.5 kB / 0.5204 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003891/0.572, allocations: 364 kB / 0.5208 GB, free: 7.66 MB / 446.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 (738): * Single equations (assignments): 735 * 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.002821/0.5749, allocations: 1.986 MB / 0.5227 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004861/0.5754, allocations: 335.6 kB / 0.5231 GB, free: 5.332 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005891/0.576, allocations: 397.6 kB / 0.5234 GB, free: 4.938 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/0.576, allocations: 20 kB / 0.5235 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.576, allocations: 0 / 0.5235 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.576, allocations: 7.969 kB / 0.5235 GB, free: 4.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1963/0.7723, allocations: 5.766 MB / 0.5291 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/0.7724, allocations: 21.34 kB / 0.5291 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.7734, allocations: 276.5 kB / 0.5294 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.094e-05/0.7735, allocations: 29.66 kB / 0.5294 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.375e-05/0.7736, allocations: 49.72 kB / 0.5294 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.348e-05/0.7736, allocations: 36.72 kB / 0.5295 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.388e-05/0.7737, allocations: 32.36 kB / 0.5295 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004475/0.7781, allocations: 5.285 MB / 0.5347 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008325/0.779, allocations: 426.3 kB / 0.5351 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003168/0.7793, allocations: 51.19 kB / 0.5351 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.7804, allocations: 71.05 kB / 0.5352 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.7806, allocations: 141.3 kB / 0.5353 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.574e-05/0.7807, allocations: 69.91 kB / 0.5354 GB, free: 134.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003781/0.7845, allocations: 2.6 MB / 0.5379 GB, free: 134.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7845, allocations: 0 / 0.5379 GB, free: 134.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004764/0.7892, allocations: 0.873 MB / 0.5388 GB, free: 134.1 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 (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.0004895/0.7897, allocations: 213.6 kB / 0.539 GB, free: 134 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007096/0.7968, allocations: 3.598 MB / 0.5425 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/0.7969, allocations: 3.5 kB / 0.5425 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.798, allocations: 0.7356 MB / 0.5432 GB, free: 132.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.8001, allocations: 430 kB / 0.5436 GB, free: 132.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.8139, allocations: 10.11 MB / 0.5535 GB, free: 126.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002706/0.8166, allocations: 3.185 MB / 0.5566 GB, free: 125.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003811/0.8204, allocations: 1.763 MB / 0.5584 GB, free: 125.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000452/0.8209, allocations: 239.5 kB / 0.5586 GB, free: 125.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/0.8209, allocations: 0 / 0.5586 GB, free: 125.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04331/0.8642, allocations: 25.96 MB / 0.5839 GB, free: 104.4 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches