Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001513/0.001513, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.974/1.974, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.038e-05/3.053e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3396, allocations: 47.57 MB / 362.3 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1541/0.4938, allocations: 96.53 MB / 458.9 MB, free: 5.766 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/0.4941, allocations: 86.86 kB / 458.9 MB, free: 5.684 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6605/1.155, allocations: 91.94 MB / 0.538 GB, free: 95.01 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.645e-06/1.155, allocations: 0 / 0.538 GB, free: 95.01 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002626/1.155, allocations: 88.47 kB / 0.5381 GB, free: 95.01 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.02427/1.179, allocations: 4.702 MB / 0.5427 GB, free: 92.78 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/1.179, allocations: 11.53 kB / 0.5427 GB, free: 92.78 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02137/1.201, allocations: 2.696 MB / 0.5453 GB, free: 91.72 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02092/1.222, allocations: 5.604 MB / 0.5508 GB, free: 88.76 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003469/1.222, allocations: 155.7 kB / 0.5509 GB, free: 88.75 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002541/1.225, allocations: 287.5 kB / 0.5512 GB, free: 88.74 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01699/1.242, allocations: 6.923 MB / 0.558 GB, free: 82.7 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02537/1.267, allocations: 10.39 MB / 0.5681 GB, free: 71.15 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003056/1.268, allocations: 67.41 kB / 0.5682 GB, free: 71.09 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00204/1.27, allocations: 32 kB / 0.5682 GB, free: 71.05 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002998/1.273, allocations: 1.21 MB / 0.5694 GB, free: 69.85 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07447/1.347, allocations: 52.59 MB / 0.6207 GB, free: 15.76 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005152/1.352, allocations: 2.781 MB / 0.6234 GB, free: 12.83 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003181/1.356, allocations: 1.514 MB / 0.6249 GB, free: 11.31 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001426/1.357, allocations: 1.219 MB / 0.6261 GB, free: 9.895 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.116e-05/1.357, allocations: 55.94 kB / 0.6262 GB, free: 9.832 MB / 395.1 MB Notification: Performance of pre-optimization done (n=187): time 7.435e-06/1.357, allocations: 0 / 0.6262 GB, free: 9.832 MB / 395.1 MB Notification: Performance of matching and sorting (n=203): time 0.04511/1.402, allocations: 12.06 MB / 0.6379 GB, free: 13.64 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/1.402, allocations: 149.8 kB / 0.6381 GB, free: 13.46 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009067/1.412, allocations: 3.217 MB / 0.6412 GB, free: 10.26 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005406/1.412, allocations: 29.7 kB / 0.6413 GB, free: 10.23 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004154/1.416, allocations: 3.437 MB / 0.6446 GB, free: 6.742 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001537/1.418, allocations: 0.775 MB / 0.6454 GB, free: 5.957 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008027/1.419, allocations: 0 / 0.6454 GB, free: 5.957 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0007037/1.419, allocations: 0.612 MB / 0.646 GB, free: 5.336 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005901/1.425, allocations: 2.044 MB / 0.648 GB, free: 3.289 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3015/1.727, allocations: 6.245 MB / 0.6541 GB, free: 94.44 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007846/1.735, allocations: 3.505 MB / 0.6575 GB, free: 94.43 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001837/1.735, allocations: 44.84 kB / 0.6575 GB, free: 94.43 MB / 411.1 MB Notification: Performance of matching and sorting (n=908) (initialization): time 0.02737/1.762, allocations: 7.996 MB / 0.6653 GB, free: 93.79 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/1.763, allocations: 71.86 kB / 0.6654 GB, free: 93.79 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009857/1.773, allocations: 2.668 MB / 0.668 GB, free: 93.7 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00639/1.779, allocations: 1.076 MB / 0.6691 GB, free: 93.66 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01044/1.789, allocations: 1.636 MB / 0.6707 GB, free: 93.52 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006537/1.796, allocations: 4.23 MB / 0.6748 GB, free: 90.99 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008906/1.805, allocations: 382.9 kB / 0.6752 GB, free: 90.98 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001827/1.807, allocations: 430.5 kB / 0.6756 GB, free: 90.98 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 861 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00218/1.809, allocations: 491.4 kB / 0.676 GB, free: 90.73 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009085/1.81, allocations: 352 kB / 0.6764 GB, free: 90.73 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/1.82, allocations: 3.023 MB / 0.6793 GB, free: 90.56 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008401/1.829, allocations: 2.54 MB / 0.6818 GB, free: 90.04 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.679e-05/1.829, allocations: 5.062 kB / 0.6818 GB, free: 90.04 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-05/1.829, allocations: 9.469 kB / 0.6818 GB, free: 90.04 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02838/1.857, allocations: 9.381 MB / 0.691 GB, free: 86.44 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.239e-05/1.857, allocations: 13.44 kB / 0.691 GB, free: 86.44 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002928/1.86, allocations: 361.2 kB / 0.6913 GB, free: 86.41 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005092/1.865, allocations: 0.9587 MB / 0.6923 GB, free: 86.25 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005164/1.866, allocations: 33.19 kB / 0.6923 GB, free: 86.25 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007189/1.873, allocations: 4.484 MB / 0.6967 GB, free: 83.33 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001084/1.874, allocations: 1.407 MB / 0.6981 GB, free: 81.97 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/1.888, allocations: 6.934 MB / 0.7048 GB, free: 78.15 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002348/1.89, allocations: 0.6272 MB / 0.7054 GB, free: 77.81 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009646/1.891, allocations: 29.38 kB / 0.7055 GB, free: 77.81 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003757/1.895, allocations: 143.6 kB / 0.7056 GB, free: 77.81 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007897/1.896, allocations: 166.1 kB / 0.7058 GB, free: 77.76 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002649/1.896, allocations: 81.17 kB / 0.7058 GB, free: 77.74 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005536/1.902, allocations: 2.111 MB / 0.7079 GB, free: 76.98 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.1e-07/1.902, allocations: 0 / 0.7079 GB, free: 76.98 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.008452/1.91, allocations: 1.015 MB / 0.7089 GB, free: 76.98 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 14 ($STATESET6370136456.x[3],$STATESET6370136456.x[2],$STATESET6370136456.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 170 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009733/1.911, allocations: 184.7 kB / 0.7091 GB, free: 76.86 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01435/1.926, allocations: 5.446 MB / 0.7144 GB, free: 73.63 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.03e-05/1.926, allocations: 6.625 kB / 0.7144 GB, free: 73.62 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006498/1.932, allocations: 2.099 MB / 0.7164 GB, free: 71.77 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/1.936, allocations: 372.5 kB / 0.7168 GB, free: 71.45 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02315/1.959, allocations: 9.235 MB / 0.7258 GB, free: 63.16 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007842/1.967, allocations: 3.549 MB / 0.7293 GB, free: 60.49 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/1.968, allocations: 313 kB / 0.7296 GB, free: 60.2 MB / 411.1 MB Notification: Performance of SimCode: time 1.694e-06/1.968, allocations: 0 / 0.7296 GB, free: 60.2 MB / 411.1 MB Notification: Performance of Templates: time 0.5379/2.506, allocations: 130.7 MB / 0.8572 GB, free: 91.41 MB / 427.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches