Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,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.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,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.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001519/0.001519, allocations: 177.5 kB / 16.41 MB, free: 5.707 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.517/1.517, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0008763/0.0008763, allocations: 91.86 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000402/0.0004021, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2843, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.03176/0.3161, allocations: 38.2 MB / 412.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02208/0.3383, allocations: 8.668 MB / 421.4 MB, free: 1.871 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01079/0.3491, allocations: 179.6 kB / 421.6 MB, free: 1.695 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007067/0.3562, allocations: 1.975 MB / 423.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02038/0.3767, allocations: 5.898 MB / 429.5 MB, free: 9.793 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003466/0.3802, allocations: 0.5695 MB / 430 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006848/0.387, allocations: 4.255 MB / 434.3 MB, free: 4.957 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008446/0.3955, allocations: 4.185 MB / 438.5 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003599/0.3992, allocations: 1.206 MB / 439.7 MB, free: 15.49 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0037/0.4029, allocations: 1.803 MB / 441.5 MB, free: 13.68 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001394/0.4043, allocations: 140 kB / 441.6 MB, free: 13.55 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002926/0.4073, allocations: 0.901 MB / 442.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002662/0.41, allocations: 1.597 MB / 444.1 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001862/0.4119, allocations: 0.7999 MB / 444.9 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007332/0.4192, allocations: 5.102 MB / 450 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.413e-06/0.4193, allocations: 0 / 450 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4193, allocations: 0 / 450 MB, free: 5.117 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003606/0.4197, allocations: 4 kB / 450 MB, free: 5.113 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01139/0.4311, allocations: 3.793 MB / 453.8 MB, free: 1.254 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.4311, allocations: 15.97 kB / 453.8 MB, free: 1.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00785/0.439, allocations: 1.925 MB / 455.8 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005977/0.445, allocations: 2.001 MB / 457.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003285/0.4454, allocations: 246.2 kB / 458 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002234/0.4476, allocations: 403.5 kB / 458.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02327/0.4709, allocations: 10.05 MB / 468.5 MB, free: 1.855 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002807/0.4713, allocations: 35.69 kB / 468.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001531/0.4728, allocations: 163.8 kB / 468.6 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003538/0.4764, allocations: 1.849 MB / 470.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02124/0.4977, allocations: 8.3 MB / 478.8 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2857/0.7834, allocations: 39.37 MB / 0.506 GB, free: 82.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.7946, allocations: 3.999 MB / 0.5099 GB, free: 81.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002575/0.7972, allocations: 1.418 MB / 0.5113 GB, free: 80.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.8099, allocations: 7.627 MB / 0.5188 GB, free: 75.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.81, allocations: 54.23 kB / 0.5188 GB, free: 75.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 5.921e-06/0.81, allocations: 0 / 0.5188 GB, free: 75.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.03256/0.8426, allocations: 12.36 MB / 0.5309 GB, free: 67.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001071/0.8437, allocations: 1.595 MB / 0.5324 GB, free: 65.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007081/0.8508, allocations: 3.796 MB / 0.5361 GB, free: 62.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000335/0.8512, allocations: 52.42 kB / 0.5362 GB, free: 62.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001886/0.8531, allocations: 3.115 MB / 0.5392 GB, free: 58.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008114/0.8539, allocations: 0.6492 MB / 0.5399 GB, free: 58.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005748/0.8545, allocations: 128 kB / 0.54 GB, free: 58.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004585/0.855, allocations: 0.5626 MB / 0.5405 GB, free: 57.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003381/0.8584, allocations: 2.011 MB / 0.5425 GB, free: 55.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004805/0.8632, allocations: 5.944 MB / 0.5483 GB, free: 47.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005162/0.8684, allocations: 3.365 MB / 0.5516 GB, free: 44.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001896/0.8686, allocations: 40 kB / 0.5516 GB, free: 44.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.0216/0.8902, allocations: 9.689 MB / 0.5611 GB, free: 34.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.8905, allocations: 65 kB / 0.5612 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01066/0.9011, allocations: 3.737 MB / 0.5648 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01086/0.912, allocations: 2.653 MB / 0.5674 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004376/0.9165, allocations: 1.365 MB / 0.5687 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008237/0.9247, allocations: 7.193 MB / 0.5758 GB, free: 19.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005151/0.9299, allocations: 395.4 kB / 0.5761 GB, free: 18.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/0.931, allocations: 399.2 kB / 0.5765 GB, free: 18.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (742): * Single equations (assignments): 732 * 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: 2 * 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: 1 {6 29} Notification: Performance of prepare postOptimizeDAE: time 0.003658/0.9347, allocations: 2.009 MB / 0.5785 GB, free: 16.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008221/0.9355, allocations: 327.7 kB / 0.5788 GB, free: 16.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005974/0.9415, allocations: 3.125 MB / 0.5818 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004904/0.9464, allocations: 2.683 MB / 0.5845 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.9465, allocations: 4 kB / 0.5845 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/0.9465, allocations: 11.91 kB / 0.5845 GB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01428/0.9608, allocations: 8.553 MB / 0.5928 GB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/0.9609, allocations: 4 kB / 0.5928 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009227/0.9618, allocations: 199.6 kB / 0.593 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004068/0.9659, allocations: 1.428 MB / 0.5944 GB, free: 72 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/0.9661, allocations: 35.97 kB / 0.5945 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006298/0.9724, allocations: 5.7 MB / 0.6 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009914/0.9734, allocations: 1.456 MB / 0.6014 GB, free: 8.445 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009325/0.9827, allocations: 5.291 MB / 0.6066 GB, free: 3.129 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.984, allocations: 388.7 kB / 0.607 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.9843, allocations: 28 kB / 0.607 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.9856, allocations: 131.8 kB / 0.6071 GB, free: 2.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.9859, allocations: 88.8 kB / 0.6072 GB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.986, allocations: 51.97 kB / 0.6073 GB, free: 2.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003761/0.9898, allocations: 2.318 MB / 0.6095 GB, free: 132 kB / 394.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9898, allocations: 4 kB / 0.6095 GB, free: 128 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.005444/0.9952, allocations: 1.04 MB / 0.6105 GB, free: 15.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * 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: 2 * 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: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004961/0.9957, allocations: 162.4 kB / 0.6107 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01002/1.006, allocations: 5.481 MB / 0.6161 GB, free: 9.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/1.006, allocations: 0 / 0.6161 GB, free: 9.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004007/1.01, allocations: 2.019 MB / 0.618 GB, free: 7.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/1.013, allocations: 383.9 kB / 0.6184 GB, free: 6.945 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01984/1.033, allocations: 11.15 MB / 0.6293 GB, free: 11.74 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003444/1.036, allocations: 3.103 MB / 0.6323 GB, free: 8.602 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009721/1.037, allocations: 271.4 kB / 0.6326 GB, free: 8.336 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/1.037, allocations: 0 / 0.6326 GB, free: 8.336 MB / 426.7 MB Notification: Performance of Templates: time 0.3466/1.384, allocations: 142.8 MB / 0.772 GB, free: 50.82 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches