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.001055/0.001055, allocations: 118.2 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 67.88 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2989, allocations: 50.54 MB / 409.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01093/0.3098, allocations: 10.66 MB / 419.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00829/0.3182, allocations: 3.892 MB / 423.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.3198, allocations: 63.81 kB / 423.9 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003823/0.3237, allocations: 2.219 MB / 426.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004506/0.3282, allocations: 1.805 MB / 427.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.3296, allocations: 0.7058 MB / 428.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005493/0.3351, allocations: 4.316 MB / 432.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003161/0.3383, allocations: 2.889 MB / 435.8 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002185/0.3405, allocations: 1.464 MB / 437.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002576/0.3431, allocations: 2.072 MB / 439.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005977/0.3437, allocations: 296 kB / 439.6 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.3454, allocations: 0.9168 MB / 440.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00156/0.347, allocations: 1.812 MB / 442.4 MB, free: 304 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002035/0.3491, allocations: 2.085 MB / 444.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006127/0.3552, allocations: 6.35 MB / 450.8 MB, free: 7.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3552, allocations: 0 / 450.8 MB, free: 7.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3552, allocations: 0 / 450.8 MB, free: 7.828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001233/0.3554, allocations: 0 / 450.8 MB, free: 7.828 MB / 366.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.009019/0.3644, allocations: 4.564 MB / 455.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3644, allocations: 8.031 kB / 455.4 MB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007067/0.3715, allocations: 1.922 MB / 457.3 MB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004445/0.376, allocations: 2.241 MB / 459.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.3762, allocations: 225.6 kB / 459.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005069/0.3767, allocations: 299.8 kB / 460 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01482/0.3916, allocations: 9.651 MB / 469.7 MB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001005/0.3917, allocations: 51.53 kB / 469.7 MB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003517/0.392, allocations: 143.9 kB / 469.9 MB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002693/0.3947, allocations: 1.915 MB / 471.8 MB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01336/0.4081, allocations: 7.645 MB / 479.4 MB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04167/0.4498, allocations: 37.61 MB / 0.5049 GB, free: 3.461 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00671/0.4566, allocations: 2.897 MB / 0.5078 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.4579, allocations: 0.8691 MB / 0.5086 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006039/0.464, allocations: 3.853 MB / 0.5124 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.4641, allocations: 47.22 kB / 0.5124 GB, free: 11.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.466e-06/0.4641, allocations: 0 / 0.5124 GB, free: 11.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02222/0.4863, allocations: 9.052 MB / 0.5213 GB, free: 2.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/0.4864, allocations: 141.5 kB / 0.5214 GB, free: 2.062 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005544/0.492, allocations: 3.912 MB / 0.5252 GB, free: 14.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.4921, allocations: 45.7 kB / 0.5253 GB, free: 14.11 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001938/0.4941, allocations: 3.074 MB / 0.5283 GB, free: 11 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005097/0.4946, allocations: 0.6135 MB / 0.5289 GB, free: 10.38 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001219/0.4958, allocations: 1.159 MB / 0.53 GB, free: 9.207 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.993e-05/0.4959, allocations: 309 kB / 0.5303 GB, free: 8.902 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00226/0.4982, allocations: 1.585 MB / 0.5318 GB, free: 7.312 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004779/0.503, allocations: 5.358 MB / 0.5371 GB, free: 60 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.273/0.776, allocations: 7.566 MB / 0.5445 GB, free: 112.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001216/0.7761, allocations: 35.83 kB / 0.5445 GB, free: 112.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01188/0.788, allocations: 6.671 MB / 0.551 GB, free: 110.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.103e-05/0.7881, allocations: 69.55 kB / 0.5511 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/0.7883, allocations: 134.2 kB / 0.5512 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000146/0.7884, allocations: 173.8 kB / 0.5514 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003709/0.7921, allocations: 1.383 MB / 0.5527 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002023/0.7923, allocations: 260.8 kB / 0.553 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004108/0.7965, allocations: 295 kB / 0.5532 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004329/0.7969, allocations: 368.1 kB / 0.5536 GB, free: 109.9 MB / 462.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.002715/0.7996, allocations: 1.981 MB / 0.5555 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000722/0.8004, allocations: 332.5 kB / 0.5558 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007612/0.8011, allocations: 399.3 kB / 0.5562 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-05/0.8012, allocations: 20.59 kB / 0.5562 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-05/0.8012, allocations: 2.469 kB / 0.5563 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/0.8012, allocations: 10.88 kB / 0.5563 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00719/0.8084, allocations: 5.753 MB / 0.5619 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/0.8085, allocations: 16.22 kB / 0.5619 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008426/0.8093, allocations: 277.8 kB / 0.5622 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.129e-05/0.8094, allocations: 28 kB / 0.5622 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.146e-05/0.8094, allocations: 51.89 kB / 0.5622 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.171e-05/0.8095, allocations: 35.77 kB / 0.5623 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.649e-05/0.8095, allocations: 32.75 kB / 0.5623 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.8126, allocations: 3.223 MB / 0.5655 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006857/0.8133, allocations: 412.3 kB / 0.5658 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/0.8136, allocations: 47.89 kB / 0.5659 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009684/0.8145, allocations: 55.88 kB / 0.5659 GB, free: 99.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.8147, allocations: 150.7 kB / 0.5661 GB, free: 99.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.6e-05/0.8148, allocations: 71.84 kB / 0.5662 GB, free: 99.78 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002993/0.8178, allocations: 2.426 MB / 0.5685 GB, free: 97.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8178, allocations: 3.938 kB / 0.5685 GB, free: 97.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004624/0.8224, allocations: 0.8484 MB / 0.5694 GB, free: 96.94 MB / 462.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.0003913/0.8228, allocations: 210.4 kB / 0.5696 GB, free: 96.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005037/0.8279, allocations: 3.692 MB / 0.5732 GB, free: 93.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/0.8279, allocations: 4 kB / 0.5732 GB, free: 93.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007781/0.8287, allocations: 0.742 MB / 0.5739 GB, free: 92.42 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.8311, allocations: 448.3 kB / 0.5743 GB, free: 91.99 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.8438, allocations: 8.502 MB / 0.5826 GB, free: 83.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003364/0.8472, allocations: 3.087 MB / 0.5856 GB, free: 80.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00377/0.851, allocations: 1.764 MB / 0.5874 GB, free: 78.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004291/0.8514, allocations: 231.4 kB / 0.5876 GB, free: 78.09 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.8514, allocations: 0 / 0.5876 GB, free: 78.09 MB / 462.1 MB Notification: Performance of Templates: time 0.04445/0.8959, allocations: 23.68 MB / 0.6107 GB, free: 54.62 MB / 462.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches