Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 116.2 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001194, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 55.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2511, allocations: 50.55 MB / 409.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01158/0.2628, allocations: 11.97 MB / 421.9 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008689/0.2715, allocations: 4.207 MB / 426.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001894/0.2734, allocations: 67.81 kB / 426.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005384/0.2789, allocations: 2.752 MB / 428.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005322/0.2842, allocations: 1.933 MB / 430.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.2862, allocations: 0.8073 MB / 431.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0068/0.293, allocations: 4.679 MB / 436.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004789/0.2979, allocations: 3.541 MB / 439.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003309/0.3012, allocations: 1.674 MB / 441.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00369/0.305, allocations: 2.332 MB / 443.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001111/0.3061, allocations: 352 kB / 444.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00276/0.3089, allocations: 1.256 MB / 445.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002194/0.3111, allocations: 2.096 MB / 447.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002695/0.3138, allocations: 2.408 MB / 450 MB, free: 9.297 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007666/0.3215, allocations: 7.462 MB / 457.5 MB, free: 1.809 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.3215, allocations: 7.984 kB / 457.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3216, allocations: 0 / 457.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002581/0.3218, allocations: 0 / 457.5 MB, free: 1.801 MB / 366.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.01162/0.3334, allocations: 5.239 MB / 462.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.3335, allocations: 8.031 kB / 462.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008927/0.3424, allocations: 2.174 MB / 464.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005298/0.3478, allocations: 2.477 MB / 467.4 MB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002388/0.3481, allocations: 270.9 kB / 467.6 MB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00148/0.3496, allocations: 435.6 kB / 468.1 MB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02496/0.3745, allocations: 12.26 MB / 480.3 MB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00013/0.3747, allocations: 51.52 kB / 480.4 MB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005973/0.3753, allocations: 175.8 kB / 480.5 MB, free: 9.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003375/0.3787, allocations: 2.158 MB / 482.7 MB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02322/0.4019, allocations: 10.25 MB / 492.9 MB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05547/0.4574, allocations: 44.13 MB / 0.5245 GB, free: 15.97 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/0.4702, allocations: 4.655 MB / 0.529 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002773/0.473, allocations: 1.716 MB / 0.5307 GB, free: 9.387 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0137/0.4867, allocations: 8.302 MB / 0.5388 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.051e-05/0.4868, allocations: 55.86 kB / 0.5389 GB, free: 0.6172 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 8.776e-06/0.4869, allocations: 7.938 kB / 0.5389 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2655/0.7524, allocations: 16.06 MB / 0.5546 GB, free: 120.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009788/0.7534, allocations: 1.681 MB / 0.5562 GB, free: 118.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005267/0.7587, allocations: 4.191 MB / 0.5603 GB, free: 115.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004753/0.7592, allocations: 53.7 kB / 0.5603 GB, free: 115.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001522/0.7607, allocations: 3.396 MB / 0.5637 GB, free: 112.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000764/0.7615, allocations: 0.8079 MB / 0.5645 GB, free: 112 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.7628, allocations: 1.361 MB / 0.5658 GB, free: 110.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.779e-05/0.7629, allocations: 305.1 kB / 0.5661 GB, free: 110.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/0.7656, allocations: 2.283 MB / 0.5683 GB, free: 108 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003881/0.7695, allocations: 6.412 MB / 0.5746 GB, free: 99.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00755/0.777, allocations: 9.355 MB / 0.5837 GB, free: 88.24 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.524e-05/0.7771, allocations: 44 kB / 0.5837 GB, free: 88.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02015/0.7973, allocations: 10.17 MB / 0.5937 GB, free: 78.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.992e-05/0.7974, allocations: 68 kB / 0.5937 GB, free: 77.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01023/0.8077, allocations: 3.9 MB / 0.5975 GB, free: 74.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009629/0.8173, allocations: 2.25 MB / 0.5997 GB, free: 71.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004762/0.8221, allocations: 1.597 MB / 0.6013 GB, free: 70.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007473/0.8297, allocations: 6.617 MB / 0.6078 GB, free: 63.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005067/0.8348, allocations: 443.4 kB / 0.6082 GB, free: 62.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00089/0.8357, allocations: 427.3 kB / 0.6086 GB, free: 62.44 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003119/0.8388, allocations: 2.212 MB / 0.6108 GB, free: 60.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006417/0.8395, allocations: 371.2 kB / 0.6111 GB, free: 59.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005524/0.845, allocations: 3.312 MB / 0.6143 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004447/0.8495, allocations: 2.776 MB / 0.6171 GB, free: 53.72 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.8495, allocations: 8 kB / 0.6171 GB, free: 53.71 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.8495, allocations: 7.969 kB / 0.6171 GB, free: 53.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01507/0.8646, allocations: 10.37 MB / 0.6272 GB, free: 43.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/0.8647, allocations: 16 kB / 0.6272 GB, free: 43.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/0.8661, allocations: 372.3 kB / 0.6276 GB, free: 42.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00261/0.8687, allocations: 0.9863 MB / 0.6285 GB, free: 41.73 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002085/0.8689, allocations: 63.92 kB / 0.6286 GB, free: 41.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003912/0.8729, allocations: 4.915 MB / 0.6334 GB, free: 36.47 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007111/0.8736, allocations: 1.557 MB / 0.6349 GB, free: 34.77 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007595/0.8812, allocations: 5.97 MB / 0.6407 GB, free: 28.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009758/0.8822, allocations: 440 kB / 0.6412 GB, free: 28.14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005235/0.8827, allocations: 56.67 kB / 0.6412 GB, free: 28.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/0.8844, allocations: 155.8 kB / 0.6414 GB, free: 27.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002887/0.8847, allocations: 176.4 kB / 0.6415 GB, free: 27.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.8848, allocations: 83.48 kB / 0.6416 GB, free: 27.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003164/0.888, allocations: 2.581 MB / 0.6441 GB, free: 25.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.888, allocations: 0 / 0.6441 GB, free: 25.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006281/0.8943, allocations: 1.146 MB / 0.6452 GB, free: 23.95 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007252/0.895, allocations: 221 kB / 0.6455 GB, free: 23.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009064/0.9041, allocations: 6.065 MB / 0.6514 GB, free: 17.64 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/0.9042, allocations: 4 kB / 0.6514 GB, free: 17.63 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003516/0.9077, allocations: 2.222 MB / 0.6536 GB, free: 15.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/0.9107, allocations: 0.4915 MB / 0.654 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/0.9255, allocations: 11.1 MB / 0.6649 GB, free: 3.555 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002965/0.9285, allocations: 3.45 MB / 0.6682 GB, free: 68 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/0.9296, allocations: 323.4 kB / 0.6686 GB, free: 15.75 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.9296, allocations: 0 / 0.6686 GB, free: 15.75 MB / 478.1 MB Notification: Performance of Templates: time 0.3702/1.3, allocations: 141.5 MB / 0.8068 GB, free: 106.8 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches