Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001377/0.001377, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.4 MB / 223.1 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009466/0.0009466, allocations: 98.59 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002731/0.0002731, allocations: 4 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.252, allocations: 47.56 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1218/0.3739, allocations: 97.28 MB / 473.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.3742, allocations: 91.89 kB / 473.2 MB, free: 15.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4233/0.7975, allocations: 93.91 MB / 0.5538 GB, free: 62.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.7976, allocations: 4 kB / 0.5538 GB, free: 62.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002262/0.7978, allocations: 95.98 kB / 0.5539 GB, free: 62.73 MB / 378.7 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.01853/0.8164, allocations: 4.964 MB / 0.5587 GB, free: 57.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.8164, allocations: 8.031 kB / 0.5587 GB, free: 57.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01243/0.8289, allocations: 2.692 MB / 0.5614 GB, free: 54.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01642/0.8453, allocations: 5.634 MB / 0.5669 GB, free: 49.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006233/0.846, allocations: 361.5 kB / 0.5672 GB, free: 48.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002781/0.8488, allocations: 483.8 kB / 0.5677 GB, free: 48.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03035/0.8792, allocations: 12.66 MB / 0.58 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004096/0.8796, allocations: 71.28 kB / 0.5801 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002365/0.882, allocations: 231.9 kB / 0.5803 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001701/0.8838, allocations: 1.21 MB / 0.5815 GB, free: 33.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02081/0.9046, allocations: 10.4 MB / 0.5917 GB, free: 22.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06203/0.9667, allocations: 52.91 MB / 0.6433 GB, free: 152 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2465/1.213, allocations: 4.542 MB / 0.6478 GB, free: 94.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01316/1.226, allocations: 8.294 MB / 0.6559 GB, free: 92.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/1.227, allocations: 49.66 kB / 0.6559 GB, free: 92.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 5.921e-06/1.227, allocations: 3.844 kB / 0.6559 GB, free: 92.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.04167/1.268, allocations: 16.2 MB / 0.6717 GB, free: 88.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001081/1.269, allocations: 1.606 MB / 0.6733 GB, free: 87.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006556/1.276, allocations: 3.794 MB / 0.677 GB, free: 86.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005598/1.277, allocations: 63.02 kB / 0.6771 GB, free: 86.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002243/1.279, allocations: 3.411 MB / 0.6804 GB, free: 84.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/1.28, allocations: 0.8062 MB / 0.6812 GB, free: 83.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003039/1.28, allocations: 136.3 kB / 0.6813 GB, free: 83.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003144/1.281, allocations: 0.5857 MB / 0.6819 GB, free: 83.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003358/1.284, allocations: 2.244 MB / 0.6841 GB, free: 82.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005423/1.289, allocations: 6.332 MB / 0.6903 GB, free: 76.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006429/1.296, allocations: 3.654 MB / 0.6938 GB, free: 75.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001501/1.296, allocations: 43.91 kB / 0.6939 GB, free: 75.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01991/1.316, allocations: 9.09 MB / 0.7028 GB, free: 72.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/1.316, allocations: 70.47 kB / 0.7028 GB, free: 72.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005326/1.321, allocations: 2.813 MB / 0.7056 GB, free: 70.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003555/1.325, allocations: 1.087 MB / 0.7066 GB, free: 69.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005976/1.331, allocations: 1.593 MB / 0.7082 GB, free: 68.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00407/1.335, allocations: 4.47 MB / 0.7126 GB, free: 64.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007105/1.342, allocations: 0.4907 MB / 0.713 GB, free: 63.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001758/1.344, allocations: 412.4 kB / 0.7134 GB, free: 63.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (845): * Single equations (assignments): 836 * 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.006295/1.35, allocations: 2.207 MB / 0.7156 GB, free: 61.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001619/1.352, allocations: 379.1 kB / 0.7159 GB, free: 61.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007745/1.36, allocations: 3.267 MB / 0.7191 GB, free: 58.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00472/1.365, allocations: 2.709 MB / 0.7218 GB, free: 56.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.383e-05/1.365, allocations: 4 kB / 0.7218 GB, free: 56.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-05/1.365, allocations: 11.41 kB / 0.7218 GB, free: 56.31 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02487/1.39, allocations: 10.36 MB / 0.7319 GB, free: 47.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.081e-05/1.39, allocations: 12 kB / 0.7319 GB, free: 47.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/1.391, allocations: 370.9 kB / 0.7323 GB, free: 47.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002787/1.394, allocations: 0.9776 MB / 0.7332 GB, free: 46.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000355/1.394, allocations: 66.34 kB / 0.7333 GB, free: 46.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004414/1.399, allocations: 4.685 MB / 0.7379 GB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000921/1.4, allocations: 1.481 MB / 0.7393 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01419/1.414, allocations: 7.504 MB / 0.7466 GB, free: 33.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003804/1.418, allocations: 0.6678 MB / 0.7473 GB, free: 32.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001984/1.42, allocations: 67.27 kB / 0.7474 GB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005238/1.425, allocations: 175.8 kB / 0.7475 GB, free: 32.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006572/1.426, allocations: 176.5 kB / 0.7477 GB, free: 32.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000267/1.426, allocations: 71.98 kB / 0.7478 GB, free: 32.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.008186/1.434, allocations: 2.637 MB / 0.7503 GB, free: 29.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.81e-07/1.434, allocations: 0 / 0.7503 GB, free: 29.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01249/1.447, allocations: 1.152 MB / 0.7515 GB, free: 28.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 61 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 172 * 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.001157/1.448, allocations: 231.1 kB / 0.7517 GB, free: 28.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01808/1.466, allocations: 5.865 MB / 0.7574 GB, free: 22.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-05/1.466, allocations: 4 kB / 0.7574 GB, free: 22.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007033/1.473, allocations: 2.179 MB / 0.7595 GB, free: 20.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004959/1.478, allocations: 469 kB / 0.76 GB, free: 19.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03438/1.513, allocations: 12.53 MB / 0.7722 GB, free: 6.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009963/1.523, allocations: 3.56 MB / 0.7757 GB, free: 3.336 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.01022/1.533, allocations: 2.033 MB / 0.7777 GB, free: 1.309 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001779/1.535, allocations: 267.4 kB / 0.7779 GB, free: 1.047 MB / 410.7 MB Notification: Performance of SimCode: time 2.434e-06/1.535, allocations: 3.938 kB / 0.7779 GB, free: 1.043 MB / 410.7 MB Notification: Performance of Templates: time 0.2837/1.819, allocations: 37.01 MB / 0.8141 GB, free: 111.6 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches