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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009934/0.0009934, allocations: 102.6 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.001461, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2229, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02863/0.2516, allocations: 38.66 MB / 445.7 MB, free: 4.992 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01688/0.2685, allocations: 8.515 MB / 454.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006364/0.2749, allocations: 167.6 kB / 454.4 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004509/0.2795, allocations: 2.209 MB / 456.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004749/0.2843, allocations: 1.689 MB / 458.3 MB, free: 8.379 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.2858, allocations: 0.6553 MB / 458.9 MB, free: 7.723 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00646/0.2923, allocations: 5.995 MB / 464.9 MB, free: 1.715 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003723/0.2961, allocations: 2.866 MB / 467.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002139/0.2982, allocations: 1.327 MB / 469.1 MB, free: 13.46 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002824/0.3011, allocations: 2.239 MB / 471.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000599/0.3017, allocations: 220 kB / 471.6 MB, free: 11 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001729/0.3034, allocations: 0.8854 MB / 472.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001655/0.3051, allocations: 1.765 MB / 474.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00208/0.3072, allocations: 2.03 MB / 476.3 MB, free: 6.301 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005667/0.3129, allocations: 6.097 MB / 482.4 MB, free: 188 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.3129, allocations: 4 kB / 482.4 MB, free: 184 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3129, allocations: 0 / 482.4 MB, free: 184 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001433/0.3131, allocations: 0 / 482.4 MB, free: 184 kB / 346.7 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.008454/0.3215, allocations: 4.606 MB / 487 MB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.3216, allocations: 8.875 kB / 487 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006993/0.3286, allocations: 1.918 MB / 488.9 MB, free: 9.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004662/0.3333, allocations: 2.191 MB / 491.1 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.3335, allocations: 229.6 kB / 491.3 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005048/0.334, allocations: 299.8 kB / 491.6 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01397/0.3479, allocations: 9.639 MB / 0.4895 GB, free: 12.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.517e-05/0.3481, allocations: 47.61 kB / 0.4896 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003404/0.3484, allocations: 147.8 kB / 0.4897 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00282/0.3513, allocations: 1.915 MB / 0.4916 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01511/0.3664, allocations: 7.637 MB / 0.499 GB, free: 2.629 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2087/0.5751, allocations: 37.73 MB / 0.5359 GB, free: 62.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005661/0.5808, allocations: 2.891 MB / 0.5387 GB, free: 60.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.5819, allocations: 0.8797 MB / 0.5395 GB, free: 60.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005087/0.587, allocations: 3.764 MB / 0.5432 GB, free: 56.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.587, allocations: 47.22 kB / 0.5433 GB, free: 56.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.396e-06/0.587, allocations: 0 / 0.5433 GB, free: 56.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01787/0.6049, allocations: 9.017 MB / 0.5521 GB, free: 47.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.605, allocations: 149.5 kB / 0.5522 GB, free: 47.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003745/0.6087, allocations: 3.92 MB / 0.556 GB, free: 43.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.6089, allocations: 45.7 kB / 0.5561 GB, free: 43.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.61, allocations: 3.085 MB / 0.5591 GB, free: 40.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003245/0.6104, allocations: 0.6071 MB / 0.5597 GB, free: 39.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000985/0.6113, allocations: 1.165 MB / 0.5608 GB, free: 38.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.737e-05/0.6114, allocations: 305.1 kB / 0.5611 GB, free: 38.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.6133, allocations: 1.585 MB / 0.5627 GB, free: 36.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002919/0.6162, allocations: 5.354 MB / 0.5679 GB, free: 29.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005314/0.6215, allocations: 7.547 MB / 0.5753 GB, free: 19.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-05/0.6216, allocations: 40 kB / 0.5753 GB, free: 19.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.00822/0.6299, allocations: 6.657 MB / 0.5818 GB, free: 13.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/0.6299, allocations: 67.98 kB / 0.5819 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.975e-05/0.63, allocations: 132 kB / 0.582 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001125/0.6302, allocations: 176 kB / 0.5822 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003384/0.6335, allocations: 1.385 MB / 0.5835 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001311/0.6337, allocations: 266.9 kB / 0.5838 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00327/0.637, allocations: 283.6 kB / 0.584 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003313/0.6373, allocations: 370.5 kB / 0.5844 GB, free: 10.45 MB / 378.7 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.002327/0.6397, allocations: 1.979 MB / 0.5863 GB, free: 8.457 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/0.6401, allocations: 335.6 kB / 0.5866 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/0.6417, allocations: 1.246 MB / 0.5879 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.6418, allocations: 16 kB / 0.5879 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.016e-06/0.6418, allocations: 3.938 kB / 0.5879 GB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.6418, allocations: 15.97 kB / 0.5879 GB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006857/0.6487, allocations: 5.749 MB / 0.5935 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/0.6487, allocations: 20 kB / 0.5935 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008321/0.6495, allocations: 271.5 kB / 0.5938 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.792e-05/0.6496, allocations: 28 kB / 0.5938 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.459e-05/0.6496, allocations: 48 kB / 0.5939 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.78e-05/0.6497, allocations: 35.86 kB / 0.5939 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.6497, allocations: 35.81 kB / 0.5939 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00967/0.6594, allocations: 7.656 MB / 0.6014 GB, free: 8.301 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006202/0.66, allocations: 408.6 kB / 0.6018 GB, free: 7.879 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.6603, allocations: 51.98 kB / 0.6018 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.6613, allocations: 64.11 kB / 0.6019 GB, free: 7.766 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.6615, allocations: 143.4 kB / 0.602 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-05/0.6616, allocations: 72.03 kB / 0.6021 GB, free: 7.555 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003397/0.665, allocations: 2.442 MB / 0.6045 GB, free: 5.133 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.665, allocations: 4 kB / 0.6045 GB, free: 5.129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004832/0.6699, allocations: 1.079 MB / 0.6056 GB, free: 4.055 MB / 394.7 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.0004681/0.6704, allocations: 207.9 kB / 0.6058 GB, free: 3.848 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006004/0.6764, allocations: 3.64 MB / 0.6093 GB, free: 240 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/0.6764, allocations: 0 / 0.6093 GB, free: 240 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.678, allocations: 0.7274 MB / 0.61 GB, free: 15.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/0.6813, allocations: 443.6 kB / 0.6104 GB, free: 15.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/0.6968, allocations: 11.44 MB / 0.6216 GB, free: 3.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003333/0.7001, allocations: 3.146 MB / 0.6247 GB, free: 164 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004569/0.7047, allocations: 1.768 MB / 0.6264 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000539/0.7053, allocations: 239.3 kB / 0.6266 GB, free: 14.15 MB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7053, allocations: 0 / 0.6266 GB, free: 14.15 MB / 426.7 MB Notification: Performance of Templates: time 0.05215/0.7574, allocations: 27.42 MB / 0.6534 GB, free: 2.812 MB / 442.7 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@2/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