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.001602/0.001602, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.3 MB, free: 9.105 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 67.77 kB / 306.3 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1042, allocations: 50.54 MB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1996/0.3039, allocations: 38.41 MB / 395.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.3248, allocations: 8.404 MB / 403.7 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007183/0.332, allocations: 172.6 kB / 403.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004581/0.3367, allocations: 2.198 MB / 406 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004693/0.3414, allocations: 1.682 MB / 407.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.343, allocations: 0.6557 MB / 408.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007062/0.3501, allocations: 5.946 MB / 414.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004171/0.3543, allocations: 2.855 MB / 417.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002561/0.3568, allocations: 1.308 MB / 418.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003114/0.36, allocations: 2.239 MB / 420.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005647/0.3606, allocations: 212 kB / 420.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.3625, allocations: 0.8854 MB / 421.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.3643, allocations: 1.745 MB / 423.6 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002228/0.3665, allocations: 2.015 MB / 425.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006396/0.3729, allocations: 6.054 MB / 431.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.373, allocations: 0 / 431.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.373, allocations: 4 kB / 431.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001573/0.3731, allocations: 0 / 431.6 MB, free: 0.6406 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.008651/0.3818, allocations: 4.565 MB / 436.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3818, allocations: 8.031 kB / 436.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007077/0.3889, allocations: 1.918 MB / 438.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004347/0.3933, allocations: 2.195 MB / 440.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/0.3935, allocations: 233.6 kB / 440.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005346/0.3941, allocations: 295.8 kB / 440.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/0.4097, allocations: 9.647 MB / 450.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.4098, allocations: 47.58 kB / 450.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000377/0.4102, allocations: 147.8 kB / 450.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002945/0.4132, allocations: 1.919 MB / 452.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0154/0.4286, allocations: 7.634 MB / 460.2 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04565/0.4743, allocations: 37.75 MB / 498 MB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007001/0.4813, allocations: 2.907 MB / 0.4891 GB, free: 9.145 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.4827, allocations: 0.873 MB / 0.49 GB, free: 8.262 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006049/0.4888, allocations: 3.846 MB / 0.4938 GB, free: 4.195 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.4889, allocations: 51.16 kB / 0.4938 GB, free: 4.137 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 2.905e-06/0.4889, allocations: 0 / 0.4938 GB, free: 4.137 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02191/0.5108, allocations: 9.059 MB / 0.5026 GB, free: 10.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.941e-05/0.5109, allocations: 145.5 kB / 0.5028 GB, free: 10.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005417/0.5163, allocations: 3.912 MB / 0.5066 GB, free: 6.891 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.5165, allocations: 45.7 kB / 0.5066 GB, free: 6.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002379/0.5189, allocations: 3.078 MB / 0.5097 GB, free: 3.723 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005598/0.5194, allocations: 0.6057 MB / 0.5102 GB, free: 3.109 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001403/0.5208, allocations: 1.167 MB / 0.5114 GB, free: 1.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.521, allocations: 313.1 kB / 0.5117 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002556/0.5235, allocations: 1.581 MB / 0.5132 GB, free: 36 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005678/0.5292, allocations: 5.358 MB / 0.5185 GB, free: 8.777 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1712/0.7005, allocations: 7.554 MB / 0.5258 GB, free: 139.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/0.7006, allocations: 37.72 kB / 0.5259 GB, free: 139.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01103/0.7117, allocations: 6.664 MB / 0.5324 GB, free: 137.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.175e-05/0.7118, allocations: 64.06 kB / 0.5324 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001923/0.712, allocations: 133.8 kB / 0.5326 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002216/0.7122, allocations: 176.8 kB / 0.5327 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004446/0.7167, allocations: 1.388 MB / 0.5341 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002849/0.717, allocations: 260.4 kB / 0.5343 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00392/0.7209, allocations: 289.4 kB / 0.5346 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007085/0.7216, allocations: 365.7 kB / 0.535 GB, free: 137.4 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 (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.002965/0.7246, allocations: 1.982 MB / 0.5369 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005856/0.7252, allocations: 334.9 kB / 0.5372 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000656/0.7259, allocations: 402 kB / 0.5376 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/0.7259, allocations: 16.31 kB / 0.5376 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.7259, allocations: 2.812 kB / 0.5376 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.726, allocations: 8.172 kB / 0.5376 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008289/0.7342, allocations: 5.756 MB / 0.5433 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/0.7343, allocations: 19.53 kB / 0.5433 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009149/0.7352, allocations: 272.6 kB / 0.5435 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.026e-05/0.7352, allocations: 31.5 kB / 0.5436 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.708e-05/0.7353, allocations: 48.44 kB / 0.5436 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.069e-05/0.7354, allocations: 40.09 kB / 0.5436 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.408e-05/0.7354, allocations: 28.34 kB / 0.5437 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003123/0.7385, allocations: 3.236 MB / 0.5468 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00058/0.7391, allocations: 411.1 kB / 0.5472 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002997/0.7394, allocations: 48.92 kB / 0.5473 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.7405, allocations: 62.89 kB / 0.5473 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.7406, allocations: 146.5 kB / 0.5475 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.34e-05/0.7407, allocations: 74.05 kB / 0.5475 GB, free: 131.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003004/0.7437, allocations: 2.434 MB / 0.5499 GB, free: 130.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7437, allocations: 0 / 0.5499 GB, free: 130.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00418/0.7479, allocations: 0.841 MB / 0.5507 GB, free: 130.6 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.0003184/0.7483, allocations: 205.3 kB / 0.5509 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004618/0.7529, allocations: 3.647 MB / 0.5545 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.7529, allocations: 3.938 kB / 0.5545 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008045/0.7537, allocations: 0.7386 MB / 0.5552 GB, free: 129 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.7562, allocations: 443.9 kB / 0.5556 GB, free: 128.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.7677, allocations: 10.5 MB / 0.5659 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002445/0.7702, allocations: 3.094 MB / 0.5689 GB, free: 117.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003763/0.774, allocations: 1.766 MB / 0.5706 GB, free: 116.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/0.7744, allocations: 227.4 kB / 0.5709 GB, free: 116 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.7744, allocations: 0 / 0.5709 GB, free: 116 MB / 446.1 MB Notification: Performance of Templates: time 0.04689/0.8213, allocations: 26 MB / 0.5962 GB, free: 90.15 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.1.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