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.00137/0.00137, allocations: 103.3 kB / 17.16 MB, free: 6.316 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.001438/0.001438, allocations: 190 kB / 18.07 MB, free: 5.414 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.509/1.509, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001544/0.001544, allocations: 47.94 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1128, allocations: 46.63 MB / 326.6 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03864/0.1515, allocations: 38.69 MB / 365.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02548/0.177, allocations: 8.486 MB / 373.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0102/0.1874, allocations: 171.5 kB / 373.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005066/0.1925, allocations: 2.201 MB / 376.2 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005754/0.1983, allocations: 1.713 MB / 377.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.2, allocations: 0.667 MB / 378.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2298/0.4298, allocations: 5.909 MB / 384.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006429/0.4363, allocations: 2.875 MB / 387.3 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004136/0.4405, allocations: 1.335 MB / 388.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005644/0.4462, allocations: 2.252 MB / 390.9 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001663/0.4479, allocations: 214.2 kB / 391.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00409/0.452, allocations: 0.898 MB / 392 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00399/0.456, allocations: 1.775 MB / 393.8 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005508/0.4616, allocations: 2.042 MB / 395.8 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009245/0.4709, allocations: 6.127 MB / 402 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4709, allocations: 0 / 402 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4709, allocations: 0 / 402 MB, free: 6.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003112/0.4713, allocations: 0 / 402 MB, free: 6.387 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.01184/0.4831, allocations: 4.614 MB / 406.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.4832, allocations: 10.44 kB / 406.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007172/0.4904, allocations: 1.921 MB / 408.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004567/0.495, allocations: 2.341 MB / 410.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.4952, allocations: 230.8 kB / 411.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008228/0.496, allocations: 299.5 kB / 411.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01719/0.5132, allocations: 9.64 MB / 421 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000128/0.5134, allocations: 42.59 kB / 421 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004487/0.5138, allocations: 149.4 kB / 421.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00279/0.5166, allocations: 1.923 MB / 423.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01604/0.5327, allocations: 7.629 MB / 430.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0514/0.5841, allocations: 37.75 MB / 468.5 MB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007211/0.5914, allocations: 2.897 MB / 471.4 MB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001463/0.5929, allocations: 0.8682 MB / 472.3 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006961/0.5999, allocations: 3.764 MB / 476 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.5999, allocations: 46.31 kB / 476.1 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.578e-06/0.6, allocations: 0 / 476.1 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.0247/0.6247, allocations: 9.067 MB / 485.1 MB, free: 7.773 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.6248, allocations: 145.5 kB / 485.3 MB, free: 7.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007658/0.6325, allocations: 3.94 MB / 489.2 MB, free: 3.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003099/0.6328, allocations: 49.7 kB / 489.3 MB, free: 3.625 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002433/0.6352, allocations: 3.089 MB / 492.3 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007135/0.636, allocations: 0.6017 MB / 492.9 MB, free: 15.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002036/0.638, allocations: 1.17 MB / 494.1 MB, free: 14.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.653e-05/0.6381, allocations: 309.1 kB / 494.4 MB, free: 14.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/0.6409, allocations: 1.581 MB / 496 MB, free: 12.87 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005359/0.6462, allocations: 5.355 MB / 0.4896 GB, free: 5.684 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008689/0.6549, allocations: 7.549 MB / 0.497 GB, free: 12.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001315/0.6551, allocations: 36 kB / 0.497 GB, free: 12.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01422/0.6693, allocations: 6.663 MB / 0.5035 GB, free: 6.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.6696, allocations: 65 kB / 0.5036 GB, free: 6.527 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002681/0.6698, allocations: 132 kB / 0.5037 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002509/0.6701, allocations: 180 kB / 0.5039 GB, free: 6.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00458/0.6747, allocations: 1.38 MB / 0.5052 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002419/0.6749, allocations: 259 kB / 0.5055 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/0.6791, allocations: 287.6 kB / 0.5057 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007915/0.6799, allocations: 364 kB / 0.5061 GB, free: 3.949 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.004091/0.684, allocations: 1.982 MB / 0.508 GB, free: 1.957 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007915/0.6848, allocations: 339.6 kB / 0.5084 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002548/0.6874, allocations: 1.238 MB / 0.5096 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.339e-05/0.6874, allocations: 31.72 kB / 0.5096 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.6874, allocations: 4 kB / 0.5096 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.6875, allocations: 7.969 kB / 0.5096 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.6988, allocations: 5.752 MB / 0.5152 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.137e-05/0.6989, allocations: 20 kB / 0.5152 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009816/0.6999, allocations: 275.5 kB / 0.5155 GB, free: 10.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-05/0.6999, allocations: 31.94 kB / 0.5155 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-05/0.7, allocations: 44.14 kB / 0.5156 GB, free: 9.934 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-05/0.7, allocations: 39.86 kB / 0.5156 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.629e-05/0.7001, allocations: 28.28 kB / 0.5156 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003996/0.7041, allocations: 3.226 MB / 0.5188 GB, free: 6.383 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.7052, allocations: 0.516 MB / 0.5193 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003462/0.7056, allocations: 51.98 kB / 0.5193 GB, free: 5.793 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.7067, allocations: 55.97 kB / 0.5194 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.7069, allocations: 147.4 kB / 0.5195 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.46e-05/0.707, allocations: 64 kB / 0.5196 GB, free: 5.531 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003896/0.7109, allocations: 2.458 MB / 0.522 GB, free: 3.094 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7109, allocations: 0 / 0.522 GB, free: 3.094 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005063/0.716, allocations: 0.8709 MB / 0.5229 GB, free: 2.227 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.0004305/0.7164, allocations: 201.8 kB / 0.523 GB, free: 2.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005824/0.7222, allocations: 3.631 MB / 0.5266 GB, free: 14.42 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.787e-05/0.7223, allocations: 7.938 kB / 0.5266 GB, free: 14.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.7233, allocations: 0.728 MB / 0.5273 GB, free: 13.69 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003387/0.7267, allocations: 435.5 kB / 0.5277 GB, free: 13.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01832/0.7451, allocations: 10.53 MB / 0.538 GB, free: 2.449 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2452/0.9904, allocations: 3.104 MB / 0.541 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005627/0.996, allocations: 1.771 MB / 0.5428 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006381/0.9967, allocations: 233.5 kB / 0.543 GB, free: 131 MB / 462.1 MB Notification: Performance of SimCode: time 1.233e-06/0.9967, allocations: 0 / 0.543 GB, free: 131 MB / 462.1 MB Notification: Performance of Templates: time 0.05716/1.054, allocations: 26.25 MB / 0.5686 GB, free: 124.5 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