Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 97.28 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009089/0.0009093, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2452, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.03137/0.2766, allocations: 42.21 MB / 449.3 MB, free: 1.441 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01965/0.2963, allocations: 9.204 MB / 458.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00691/0.3033, allocations: 175.6 kB / 458.6 MB, free: 8.043 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004849/0.3082, allocations: 2.56 MB / 461.2 MB, free: 5.477 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004259/0.3125, allocations: 1.623 MB / 462.8 MB, free: 3.848 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001555/0.3141, allocations: 0.628 MB / 463.4 MB, free: 3.219 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006448/0.3205, allocations: 5.407 MB / 468.9 MB, free: 13.8 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005032/0.3256, allocations: 3.53 MB / 472.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002787/0.3284, allocations: 1.327 MB / 473.7 MB, free: 8.875 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003282/0.3317, allocations: 2.087 MB / 475.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006575/0.3324, allocations: 228 kB / 476 MB, free: 6.559 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.3345, allocations: 1.108 MB / 477.1 MB, free: 5.453 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001483/0.336, allocations: 1.769 MB / 478.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001932/0.3379, allocations: 2.069 MB / 481 MB, free: 1.598 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006494/0.3444, allocations: 6.394 MB / 487.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3445, allocations: 0 / 487.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3445, allocations: 7.938 kB / 487.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001783/0.3447, allocations: 0 / 487.4 MB, free: 11.18 MB / 362.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.008218/0.3529, allocations: 4.569 MB / 491.9 MB, free: 6.539 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.353, allocations: 12.03 kB / 491.9 MB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006916/0.3599, allocations: 1.937 MB / 493.9 MB, free: 4.582 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004384/0.3643, allocations: 1.962 MB / 495.8 MB, free: 2.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.3645, allocations: 246.2 kB / 496.1 MB, free: 2.328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008748/0.3654, allocations: 399.6 kB / 496.5 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01716/0.3826, allocations: 10.06 MB / 0.4947 GB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/0.3827, allocations: 39.62 kB / 0.4947 GB, free: 7.117 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003969/0.3831, allocations: 155.9 kB / 0.4949 GB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002554/0.3857, allocations: 1.861 MB / 0.4967 GB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1953/0.581, allocations: 8.318 MB / 0.5048 GB, free: 90.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03571/0.6168, allocations: 39.38 MB / 0.5433 GB, free: 57.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008785/0.6256, allocations: 3.998 MB / 0.5472 GB, free: 52.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.6271, allocations: 1.432 MB / 0.5486 GB, free: 51.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008902/0.636, allocations: 7.624 MB / 0.556 GB, free: 43.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.636, allocations: 51.5 kB / 0.5561 GB, free: 43.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 3.937e-06/0.6361, allocations: 0 / 0.5561 GB, free: 43.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.02667/0.6627, allocations: 12.38 MB / 0.5681 GB, free: 30.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008176/0.6636, allocations: 1.596 MB / 0.5697 GB, free: 29.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0037/0.6673, allocations: 3.816 MB / 0.5734 GB, free: 25.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.6675, allocations: 53.38 kB / 0.5735 GB, free: 25.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.6686, allocations: 3.106 MB / 0.5765 GB, free: 22.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003954/0.669, allocations: 0.6472 MB / 0.5771 GB, free: 21.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/0.6701, allocations: 1.261 MB / 0.5784 GB, free: 20.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.842e-05/0.6701, allocations: 301.1 kB / 0.5787 GB, free: 19.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002217/0.6724, allocations: 2.03 MB / 0.5806 GB, free: 17.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003394/0.6758, allocations: 5.977 MB / 0.5865 GB, free: 9.895 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006571/0.6823, allocations: 8.622 MB / 0.5949 GB, free: 15.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.535e-05/0.6824, allocations: 43.94 kB / 0.5949 GB, free: 15.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02079/0.7032, allocations: 9.793 MB / 0.6045 GB, free: 5.453 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.887e-05/0.7033, allocations: 68 kB / 0.6046 GB, free: 5.387 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01129/0.7146, allocations: 3.812 MB / 0.6083 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01222/0.7269, allocations: 2.708 MB / 0.6109 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003832/0.7307, allocations: 1.365 MB / 0.6123 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009355/0.7401, allocations: 7.197 MB / 0.6193 GB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004174/0.7443, allocations: 411.3 kB / 0.6197 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005748/0.7449, allocations: 388 kB / 0.6201 GB, free: 5.188 MB / 410.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 (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.002671/0.7476, allocations: 2.015 MB / 0.622 GB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004846/0.7481, allocations: 327.8 kB / 0.6223 GB, free: 2.836 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006588/0.7547, allocations: 3.133 MB / 0.6254 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005655/0.7603, allocations: 2.683 MB / 0.628 GB, free: 12.97 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.7604, allocations: 4 kB / 0.628 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.7604, allocations: 7.922 kB / 0.628 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/0.7755, allocations: 8.571 MB / 0.6364 GB, free: 4.285 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.7756, allocations: 0 / 0.6364 GB, free: 4.285 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008725/0.7765, allocations: 195.7 kB / 0.6366 GB, free: 4.094 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004563/0.781, allocations: 1.432 MB / 0.638 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.7812, allocations: 39.97 kB / 0.638 GB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005918/0.7871, allocations: 5.695 MB / 0.6436 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009916/0.7881, allocations: 1.456 MB / 0.645 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2539/1.042, allocations: 37.78 MB / 0.6819 GB, free: 147 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00055/1.043, allocations: 378.8 kB / 0.6823 GB, free: 146.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003085/1.043, allocations: 33.16 kB / 0.6823 GB, free: 146.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/1.044, allocations: 119.7 kB / 0.6824 GB, free: 146.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/1.044, allocations: 92.98 kB / 0.6825 GB, free: 146.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.904e-05/1.045, allocations: 44.14 kB / 0.6826 GB, free: 146.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002752/1.047, allocations: 2.342 MB / 0.6848 GB, free: 146.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.047, allocations: 0 / 0.6848 GB, free: 146.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00488/1.052, allocations: 1.408 MB / 0.6862 GB, free: 145.9 MB / 458.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 (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.0004131/1.053, allocations: 173.4 kB / 0.6864 GB, free: 145.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008245/1.061, allocations: 5.476 MB / 0.6917 GB, free: 143.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/1.061, allocations: 3.344 kB / 0.6917 GB, free: 143.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003507/1.064, allocations: 2.027 MB / 0.6937 GB, free: 143 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/1.067, allocations: 381.4 kB / 0.6941 GB, free: 142.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/1.085, allocations: 13.42 MB / 0.7072 GB, free: 133.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003217/1.088, allocations: 3.167 MB / 0.7103 GB, free: 130.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003919/1.092, allocations: 1.825 MB / 0.7121 GB, free: 129.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/1.093, allocations: 225.6 kB / 0.7123 GB, free: 129.5 MB / 458.7 MB Notification: Performance of SimCode: time 7.72e-07/1.093, allocations: 0 / 0.7123 GB, free: 129.5 MB / 458.7 MB Notification: Performance of Templates: time 0.06111/1.154, allocations: 48.34 MB / 0.7595 GB, free: 81.82 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches