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.001766/0.001766, allocations: 106.2 kB / 17.06 MB, free: 6.145 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.002248/0.002249, allocations: 195 kB / 18 MB, free: 5.219 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.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 55.91 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3257, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.011/0.3367, allocations: 10.73 MB / 411.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008232/0.345, allocations: 3.935 MB / 415.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.3467, allocations: 59.81 kB / 415.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004583/0.3514, allocations: 2.585 MB / 418 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004944/0.3563, allocations: 1.754 MB / 419.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.358, allocations: 0.6941 MB / 420.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005291/0.3633, allocations: 3.68 MB / 424.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.3673, allocations: 3.559 MB / 427.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00265/0.37, allocations: 1.476 MB / 429.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00288/0.3729, allocations: 1.951 MB / 431.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000682/0.3736, allocations: 316 kB / 431.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002338/0.3759, allocations: 1.17 MB / 432.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001783/0.3777, allocations: 1.839 MB / 434.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00232/0.3801, allocations: 2.14 MB / 436.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.3901, allocations: 6.692 MB / 443.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3901, allocations: 0 / 443.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3902, allocations: 0 / 443.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001853/0.3903, allocations: 0 / 443.3 MB, free: 14.11 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.008917/0.3993, allocations: 4.577 MB / 447.9 MB, free: 9.465 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.3993, allocations: 8.031 kB / 447.9 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006456/0.4058, allocations: 1.879 MB / 449.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004483/0.4103, allocations: 2.017 MB / 451.8 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.4105, allocations: 250.2 kB / 452 MB, free: 5.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008012/0.4113, allocations: 395.6 kB / 452.4 MB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0174/0.4287, allocations: 10.06 MB / 462.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001455/0.4289, allocations: 39.62 kB / 462.5 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005128/0.4295, allocations: 163.8 kB / 462.7 MB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002641/0.4321, allocations: 1.857 MB / 464.5 MB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01815/0.4503, allocations: 8.328 MB / 472.9 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0566/0.5069, allocations: 39.25 MB / 0.5001 GB, free: 7.316 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0102/0.5171, allocations: 3.993 MB / 0.504 GB, free: 3.172 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/0.5192, allocations: 1.431 MB / 0.5054 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01091/0.5301, allocations: 7.634 MB / 0.5129 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.5302, allocations: 47.5 kB / 0.5129 GB, free: 9.555 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 3.677e-06/0.5302, allocations: 0 / 0.5129 GB, free: 9.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.03113/0.5613, allocations: 12.38 MB / 0.525 GB, free: 12.97 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00134/0.5627, allocations: 1.687 MB / 0.5266 GB, free: 11.11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005263/0.568, allocations: 3.812 MB / 0.5304 GB, free: 7.305 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002927/0.5683, allocations: 49.7 kB / 0.5304 GB, free: 7.25 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/0.5702, allocations: 3.107 MB / 0.5334 GB, free: 4.098 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006702/0.5709, allocations: 0.6482 MB / 0.5341 GB, free: 3.441 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001437/0.5724, allocations: 1.257 MB / 0.5353 GB, free: 2.172 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.5725, allocations: 305.1 kB / 0.5356 GB, free: 1.871 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2352/0.8077, allocations: 2.031 MB / 0.5376 GB, free: 129.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006467/0.8143, allocations: 5.974 MB / 0.5434 GB, free: 124.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007374/0.8217, allocations: 8.613 MB / 0.5518 GB, free: 116.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.482e-05/0.8218, allocations: 42.28 kB / 0.5519 GB, free: 116.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02036/0.8421, allocations: 9.734 MB / 0.5614 GB, free: 113.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/0.8422, allocations: 64 kB / 0.5614 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0104/0.8527, allocations: 3.747 MB / 0.5651 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01128/0.864, allocations: 2.613 MB / 0.5676 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003753/0.8678, allocations: 1.365 MB / 0.569 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008336/0.8761, allocations: 7.706 MB / 0.5765 GB, free: 98.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004474/0.8806, allocations: 403.8 kB / 0.5769 GB, free: 98.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006023/0.8812, allocations: 392 kB / 0.5773 GB, free: 98.17 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.002352/0.8836, allocations: 2.007 MB / 0.5792 GB, free: 96.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004453/0.884, allocations: 327.9 kB / 0.5795 GB, free: 96.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005741/0.8898, allocations: 3.13 MB / 0.5826 GB, free: 92.89 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004945/0.8948, allocations: 2.684 MB / 0.5852 GB, free: 90.19 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.8948, allocations: 4 kB / 0.5852 GB, free: 90.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.8948, allocations: 11.91 kB / 0.5852 GB, free: 90.17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01341/0.9082, allocations: 8.544 MB / 0.5936 GB, free: 81.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.9083, allocations: 3.984 kB / 0.5936 GB, free: 81.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008721/0.9092, allocations: 187.7 kB / 0.5938 GB, free: 81.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00426/0.9134, allocations: 1.436 MB / 0.5952 GB, free: 79.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/0.9137, allocations: 35.97 kB / 0.5952 GB, free: 79.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005473/0.9192, allocations: 6.016 MB / 0.6011 GB, free: 73.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000726/0.92, allocations: 1.538 MB / 0.6026 GB, free: 71.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007563/0.9275, allocations: 5.305 MB / 0.6077 GB, free: 66.76 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.9286, allocations: 380.7 kB / 0.6081 GB, free: 66.37 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000315/0.929, allocations: 28 kB / 0.6081 GB, free: 66.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/0.9302, allocations: 119.8 kB / 0.6083 GB, free: 66.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/0.9305, allocations: 96.72 kB / 0.6083 GB, free: 66.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.9306, allocations: 43.98 kB / 0.6084 GB, free: 66.08 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003047/0.9337, allocations: 2.345 MB / 0.6107 GB, free: 63.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9337, allocations: 0 / 0.6107 GB, free: 63.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00443/0.9381, allocations: 1.034 MB / 0.6117 GB, free: 62.73 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.0003504/0.9385, allocations: 170 kB / 0.6118 GB, free: 62.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007641/0.9461, allocations: 5.494 MB / 0.6172 GB, free: 57.03 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.9462, allocations: 3.5 kB / 0.6172 GB, free: 57.03 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003478/0.9497, allocations: 2.046 MB / 0.6192 GB, free: 54.91 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.952, allocations: 387.7 kB / 0.6196 GB, free: 54.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/0.9657, allocations: 8.957 MB / 0.6283 GB, free: 45.55 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003256/0.969, allocations: 3.103 MB / 0.6314 GB, free: 42.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003432/0.9725, allocations: 1.803 MB / 0.6331 GB, free: 40.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004852/0.973, allocations: 219.4 kB / 0.6333 GB, free: 40.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.973, allocations: 0 / 0.6333 GB, free: 40.38 MB / 462.1 MB Notification: Performance of Templates: time 0.05745/1.03, allocations: 35.38 MB / 0.6679 GB, free: 5.273 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