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.00129/0.00129, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 212.1 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 67.62 kB / 307.6 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07949/0.08068, allocations: 50.53 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01022/0.09094, allocations: 10.66 MB / 368.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1461/0.2371, allocations: 3.885 MB / 372.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.2385, allocations: 65.34 kB / 372.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003783/0.2423, allocations: 2.217 MB / 375 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00384/0.2461, allocations: 1.804 MB / 376.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.2475, allocations: 0.7072 MB / 377.5 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005195/0.2527, allocations: 4.314 MB / 381.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003441/0.2562, allocations: 2.897 MB / 384.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002282/0.2585, allocations: 1.467 MB / 386.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002535/0.2611, allocations: 2.075 MB / 388.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007741/0.2619, allocations: 295.2 kB / 388.5 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.2638, allocations: 0.912 MB / 389.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.2653, allocations: 1.795 MB / 391.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001962/0.2673, allocations: 2.079 MB / 393.3 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005365/0.2727, allocations: 6.113 MB / 399.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2727, allocations: 9.125 kB / 399.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2727, allocations: 0 / 399.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001443/0.2729, allocations: 0 / 399.4 MB, free: 15.07 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.007765/0.2806, allocations: 4.556 MB / 404 MB, free: 10.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2807, allocations: 8.031 kB / 404 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006941/0.2876, allocations: 1.918 MB / 405.9 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003972/0.2916, allocations: 2.191 MB / 408.1 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.2918, allocations: 234.6 kB / 408.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008032/0.2926, allocations: 295.1 kB / 408.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01502/0.3077, allocations: 9.65 MB / 418.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001414/0.3078, allocations: 51.47 kB / 418.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000691/0.3085, allocations: 145.7 kB / 418.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002744/0.3113, allocations: 1.921 MB / 420.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/0.3252, allocations: 7.64 MB / 428 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04574/0.3709, allocations: 37.75 MB / 465.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007046/0.378, allocations: 2.915 MB / 468.7 MB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.3795, allocations: 0.8652 MB / 469.6 MB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006461/0.3859, allocations: 3.846 MB / 473.4 MB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.386, allocations: 51.09 kB / 473.5 MB, free: 3.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.228e-06/0.386, allocations: 0 / 473.5 MB, free: 3.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02407/0.4101, allocations: 9.046 MB / 482.5 MB, free: 10.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/0.4102, allocations: 149.4 kB / 482.7 MB, free: 10.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006629/0.4169, allocations: 3.912 MB / 486.6 MB, free: 6.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002117/0.4171, allocations: 45.7 kB / 486.6 MB, free: 6.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002332/0.4195, allocations: 3.078 MB / 489.7 MB, free: 3.238 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000743/0.4202, allocations: 0.6049 MB / 490.3 MB, free: 2.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00201/0.4222, allocations: 1.165 MB / 491.5 MB, free: 1.461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.4224, allocations: 309.1 kB / 491.8 MB, free: 1.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/0.4252, allocations: 1.589 MB / 493.3 MB, free: 15.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005535/0.4308, allocations: 5.351 MB / 498.7 MB, free: 8.312 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00869/0.4395, allocations: 7.564 MB / 0.4944 GB, free: 14.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/0.4396, allocations: 36 kB / 0.4944 GB, free: 14.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01221/0.4519, allocations: 6.665 MB / 0.5009 GB, free: 8.168 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.452, allocations: 64.19 kB / 0.501 GB, free: 8.105 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002027/0.4523, allocations: 132 kB / 0.5011 GB, free: 7.977 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001951/0.4525, allocations: 179.9 kB / 0.5013 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004196/0.4567, allocations: 1.393 MB / 0.5027 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002275/0.4569, allocations: 263 kB / 0.5029 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003827/0.4608, allocations: 283.6 kB / 0.5032 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007421/0.4615, allocations: 371.9 kB / 0.5035 GB, free: 5.508 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.003813/0.4653, allocations: 1.985 MB / 0.5055 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000727/0.4661, allocations: 335.6 kB / 0.5058 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008441/0.4669, allocations: 401.3 kB / 0.5062 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.369e-05/0.467, allocations: 19.98 kB / 0.5062 GB, free: 2.773 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.467, allocations: 0 / 0.5062 GB, free: 2.773 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.467, allocations: 3.984 kB / 0.5062 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.4774, allocations: 5.75 MB / 0.5118 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.506e-05/0.4775, allocations: 20.22 kB / 0.5118 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.4785, allocations: 283.5 kB / 0.5121 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-05/0.4786, allocations: 27.94 kB / 0.5121 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.4787, allocations: 47.98 kB / 0.5122 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.719e-05/0.4787, allocations: 39.86 kB / 0.5122 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.918e-05/0.4787, allocations: 27.88 kB / 0.5122 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003971/0.4827, allocations: 3.226 MB / 0.5154 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009754/0.4837, allocations: 416.7 kB / 0.5158 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006673/0.4844, allocations: 55.92 kB / 0.5158 GB, free: 8.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/0.4859, allocations: 63.95 kB / 0.5159 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.4861, allocations: 147.4 kB / 0.516 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.4862, allocations: 66.5 kB / 0.5161 GB, free: 8.051 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004419/0.4906, allocations: 2.43 MB / 0.5185 GB, free: 5.641 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4906, allocations: 0 / 0.5185 GB, free: 5.641 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004999/0.4956, allocations: 0.8438 MB / 0.5193 GB, free: 4.797 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.0005377/0.4962, allocations: 201.9 kB / 0.5195 GB, free: 4.594 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006918/0.5031, allocations: 3.831 MB / 0.5232 GB, free: 0.793 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-05/0.5032, allocations: 0 / 0.5232 GB, free: 0.793 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.5044, allocations: 0.7343 MB / 0.524 GB, free: 64 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1618/0.6663, allocations: 452.4 kB / 0.5244 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01531/0.6816, allocations: 9.029 MB / 0.5332 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003639/0.6853, allocations: 3.091 MB / 0.5362 GB, free: 138.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007731/0.6861, allocations: 278.3 kB / 0.5365 GB, free: 138.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6861, allocations: 3.828 kB / 0.5365 GB, free: 138.2 MB / 446.1 MB Notification: Performance of Templates: time 0.3469/1.033, allocations: 50.96 MB / 0.5863 GB, free: 100 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/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