Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 114.6 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009804/0.0009804, allocations: 43.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3136, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01036/0.324, allocations: 10.73 MB / 411.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007216/0.3312, allocations: 3.931 MB / 415.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.3324, allocations: 63.81 kB / 415.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004153/0.3366, allocations: 2.585 MB / 418 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003661/0.3403, allocations: 1.758 MB / 419.8 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.3416, allocations: 0.6863 MB / 420.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004482/0.3461, allocations: 3.687 MB / 424.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00402/0.3502, allocations: 3.55 MB / 427.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002685/0.3529, allocations: 1.491 MB / 429.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004055/0.357, allocations: 1.947 MB / 431.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001354/0.3583, allocations: 316 kB / 431.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003381/0.3617, allocations: 1.166 MB / 432.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00188/0.3636, allocations: 1.82 MB / 434.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003219/0.3669, allocations: 2.14 MB / 436.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008945/0.3758, allocations: 6.723 MB / 443.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.3759, allocations: 0 / 443.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3759, allocations: 4 kB / 443.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001671/0.376, allocations: 4 kB / 443.3 MB, free: 14.05 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.008516/0.3846, allocations: 4.682 MB / 448 MB, free: 9.293 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.3846, allocations: 8.031 kB / 448 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006508/0.3911, allocations: 1.909 MB / 449.9 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003802/0.395, allocations: 2.025 MB / 452 MB, free: 5.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.3952, allocations: 246.2 kB / 452.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007441/0.3959, allocations: 391.7 kB / 452.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01772/0.4136, allocations: 10.08 MB / 462.7 MB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.45e-05/0.4138, allocations: 35.69 kB / 462.7 MB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004007/0.4142, allocations: 159.8 kB / 462.8 MB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002873/0.417, allocations: 1.853 MB / 464.7 MB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01896/0.436, allocations: 8.331 MB / 473 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04925/0.4853, allocations: 39.32 MB / 0.5003 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/0.496, allocations: 3.989 MB / 0.5042 GB, free: 2.906 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002485/0.4985, allocations: 1.438 MB / 0.5056 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01223/0.5108, allocations: 7.648 MB / 0.5131 GB, free: 9.328 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/0.5109, allocations: 55.56 kB / 0.5132 GB, free: 9.266 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 4.208e-06/0.5109, allocations: 0 / 0.5132 GB, free: 9.266 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.03381/0.5447, allocations: 12.58 MB / 0.5254 GB, free: 12.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001347/0.5461, allocations: 1.687 MB / 0.5271 GB, free: 10.64 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006971/0.5531, allocations: 3.821 MB / 0.5308 GB, free: 6.828 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004724/0.5536, allocations: 45.7 kB / 0.5309 GB, free: 6.777 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002599/0.5562, allocations: 3.246 MB / 0.534 GB, free: 3.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/0.5573, allocations: 0.6786 MB / 0.5347 GB, free: 2.816 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001787/0.5591, allocations: 1.262 MB / 0.5359 GB, free: 1.543 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5592, allocations: 301.1 kB / 0.5362 GB, free: 1.246 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2554/0.8146, allocations: 2.033 MB / 0.5382 GB, free: 129.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006102/0.8207, allocations: 5.969 MB / 0.544 GB, free: 124.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007408/0.8282, allocations: 8.619 MB / 0.5525 GB, free: 116.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.134e-05/0.8283, allocations: 46.88 kB / 0.5525 GB, free: 116.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.01852/0.8468, allocations: 9.756 MB / 0.562 GB, free: 113.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.153e-05/0.8469, allocations: 68.06 kB / 0.5621 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009797/0.8567, allocations: 3.746 MB / 0.5658 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01045/0.8672, allocations: 2.605 MB / 0.5683 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/0.8711, allocations: 1.368 MB / 0.5696 GB, free: 106.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008274/0.8794, allocations: 7.716 MB / 0.5772 GB, free: 98.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004771/0.8842, allocations: 399.9 kB / 0.5775 GB, free: 97.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/0.8855, allocations: 388 kB / 0.5779 GB, free: 97.34 MB / 462.1 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 (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.005165/0.8906, allocations: 2.01 MB / 0.5799 GB, free: 95.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007761/0.8914, allocations: 344.6 kB / 0.5802 GB, free: 95.25 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006461/0.8979, allocations: 3.134 MB / 0.5833 GB, free: 92.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004799/0.9027, allocations: 2.672 MB / 0.5859 GB, free: 89.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/0.9028, allocations: 4 kB / 0.5859 GB, free: 89.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/0.9028, allocations: 11.8 kB / 0.5859 GB, free: 89.39 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/0.9172, allocations: 8.545 MB / 0.5942 GB, free: 80.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.9173, allocations: 0 / 0.5942 GB, free: 80.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008332/0.9181, allocations: 195.7 kB / 0.5944 GB, free: 80.62 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003968/0.9221, allocations: 1.44 MB / 0.5958 GB, free: 79.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/0.9223, allocations: 39.38 kB / 0.5959 GB, free: 79.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004799/0.9271, allocations: 6.012 MB / 0.6017 GB, free: 72.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006984/0.9278, allocations: 1.544 MB / 0.6032 GB, free: 71.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007159/0.9349, allocations: 5.329 MB / 0.6085 GB, free: 65.97 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007925/0.9358, allocations: 391.2 kB / 0.6088 GB, free: 65.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003129/0.9361, allocations: 27.98 kB / 0.6089 GB, free: 65.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.9373, allocations: 119.8 kB / 0.609 GB, free: 65.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.9375, allocations: 100.7 kB / 0.6091 GB, free: 65.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.9376, allocations: 51.88 kB / 0.6091 GB, free: 65.28 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002925/0.9406, allocations: 2.333 MB / 0.6114 GB, free: 62.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9406, allocations: 0 / 0.6114 GB, free: 62.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004744/0.9453, allocations: 1.036 MB / 0.6124 GB, free: 61.93 MB / 462.1 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 (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003747/0.9457, allocations: 165.5 kB / 0.6126 GB, free: 61.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007705/0.9534, allocations: 5.512 MB / 0.6179 GB, free: 56.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.9535, allocations: 0 / 0.6179 GB, free: 56.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003229/0.9567, allocations: 2.039 MB / 0.6199 GB, free: 54.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.959, allocations: 402.1 kB / 0.6203 GB, free: 53.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.9726, allocations: 9.074 MB / 0.6292 GB, free: 44.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002715/0.9754, allocations: 3.111 MB / 0.6322 GB, free: 41.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003268/0.9787, allocations: 1.796 MB / 0.634 GB, free: 39.67 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.9791, allocations: 227.4 kB / 0.6342 GB, free: 39.45 MB / 462.1 MB Notification: Performance of SimCode: time 6.52e-07/0.9791, allocations: 0 / 0.6342 GB, free: 39.45 MB / 462.1 MB Notification: Performance of Templates: time 0.05268/1.032, allocations: 35.44 MB / 0.6688 GB, free: 4.227 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches