Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 90.7 kB / 16.31 MB, free: 6.008 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.001245/0.001246, allocations: 184.3 kB / 17.21 MB, free: 5.902 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.445/1.445, allocations: 223.2 MB / 241.2 MB, free: 5.398 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002428, allocations: 7.375 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09443, allocations: 50.43 MB / 351.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.03946/0.1339, allocations: 42.53 MB / 393.8 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02303/0.157, allocations: 9.426 MB / 403.2 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008651/0.1657, allocations: 199.5 kB / 403.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007858/0.1736, allocations: 2.185 MB / 405.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01856/0.1922, allocations: 6.584 MB / 412.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003434/0.1957, allocations: 0.6943 MB / 412.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007386/0.2031, allocations: 5.181 MB / 418.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006906/0.2101, allocations: 4.518 MB / 422.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002958/0.2131, allocations: 1.386 MB / 424 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003364/0.2164, allocations: 2.189 MB / 426.1 MB, free: 488 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006511/0.2171, allocations: 164 kB / 426.3 MB, free: 324 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2015/0.4186, allocations: 0.9889 MB / 427.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002117/0.4207, allocations: 1.867 MB / 429.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00115/0.4219, allocations: 0.8959 MB / 430.1 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007107/0.429, allocations: 5.695 MB / 435.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.4291, allocations: 1.969 kB / 435.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4291, allocations: 1.125 kB / 435.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000289/0.4294, allocations: 0 / 435.8 MB, free: 7.086 MB / 350.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.01037/0.4397, allocations: 4.387 MB / 440.1 MB, free: 5.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.4398, allocations: 9.531 kB / 440.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008485/0.4483, allocations: 2.16 MB / 442.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005926/0.4542, allocations: 2.449 MB / 444.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002715/0.4545, allocations: 279.5 kB / 445 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001775/0.4563, allocations: 428.1 kB / 445.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02303/0.4794, allocations: 12.21 MB / 457.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001459/0.4796, allocations: 58.42 kB / 457.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005808/0.4801, allocations: 171.3 kB / 457.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002782/0.4829, allocations: 2.166 MB / 460.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0213/0.5042, allocations: 10.21 MB / 470.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05496/0.5593, allocations: 44.29 MB / 0.5025 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01052/0.5698, allocations: 4.594 MB / 0.507 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00227/0.5721, allocations: 1.719 MB / 0.5087 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01133/0.5835, allocations: 8.226 MB / 0.5167 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/0.5836, allocations: 60.69 kB / 0.5168 GB, free: 13.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 5.31e-06/0.5836, allocations: 0 / 0.5168 GB, free: 13.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.0387/0.6223, allocations: 15.92 MB / 0.5323 GB, free: 14.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00127/0.6236, allocations: 1.593 MB / 0.5339 GB, free: 12.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005981/0.6296, allocations: 4.176 MB / 0.5379 GB, free: 8.199 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004763/0.6301, allocations: 49.7 kB / 0.538 GB, free: 8.145 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002319/0.6324, allocations: 3.404 MB / 0.5413 GB, free: 4.762 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008656/0.6333, allocations: 0.7971 MB / 0.5421 GB, free: 3.969 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.6336, allocations: 143 kB / 0.5422 GB, free: 3.832 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003723/0.634, allocations: 0.5914 MB / 0.5428 GB, free: 3.234 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003423/0.6374, allocations: 2.239 MB / 0.545 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006011/0.6434, allocations: 6.363 MB / 0.5512 GB, free: 8.656 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005019/0.6485, allocations: 3.67 MB / 0.5548 GB, free: 5.117 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.576e-05/0.6485, allocations: 40 kB / 0.5548 GB, free: 5.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02122/0.6698, allocations: 10.01 MB / 0.5646 GB, free: 11.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.248e-05/0.6699, allocations: 72.06 kB / 0.5647 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01002/0.6799, allocations: 3.78 MB / 0.5684 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008925/0.6889, allocations: 2.193 MB / 0.5705 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005109/0.694, allocations: 1.588 MB / 0.572 GB, free: 4.426 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008175/0.7022, allocations: 6.05 MB / 0.578 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006512/0.7087, allocations: 434.2 kB / 0.5784 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009496/0.7097, allocations: 416 kB / 0.5788 GB, free: 13.35 MB / 478.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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003898/0.7136, allocations: 2.205 MB / 0.5809 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005851/0.7142, allocations: 379.2 kB / 0.5813 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006129/0.7203, allocations: 3.287 MB / 0.5845 GB, free: 7.602 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004957/0.7253, allocations: 2.741 MB / 0.5872 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.7253, allocations: 0 / 0.5872 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.42e-05/0.7254, allocations: 11.97 kB / 0.5872 GB, free: 4.84 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.231/0.9564, allocations: 10.32 MB / 0.5973 GB, free: 175 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.882e-05/0.9564, allocations: 19.95 kB / 0.5973 GB, free: 175 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/0.9579, allocations: 369.2 kB / 0.5976 GB, free: 174.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002734/0.9607, allocations: 0.9869 MB / 0.5986 GB, free: 174.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002119/0.9609, allocations: 60.55 kB / 0.5986 GB, free: 174.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.9649, allocations: 4.592 MB / 0.6031 GB, free: 172.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006867/0.9657, allocations: 1.48 MB / 0.6046 GB, free: 171 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00781/0.9735, allocations: 5.896 MB / 0.6103 GB, free: 169.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.9746, allocations: 445.2 kB / 0.6108 GB, free: 169.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004418/0.9751, allocations: 56.31 kB / 0.6108 GB, free: 169.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.9766, allocations: 151.3 kB / 0.611 GB, free: 169.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.9769, allocations: 173.2 kB / 0.6111 GB, free: 169.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.977, allocations: 73.72 kB / 0.6112 GB, free: 169.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003861/0.9809, allocations: 2.567 MB / 0.6137 GB, free: 168.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.9809, allocations: 0 / 0.6137 GB, free: 168.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005621/0.9865, allocations: 1.171 MB / 0.6148 GB, free: 168.5 MB / 478.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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004477/0.987, allocations: 219 kB / 0.6151 GB, free: 168.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008658/0.9957, allocations: 5.94 MB / 0.6209 GB, free: 165.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.9957, allocations: 0 / 0.6209 GB, free: 165.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003161/0.9989, allocations: 2.189 MB / 0.623 GB, free: 163.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/1.002, allocations: 498.2 kB / 0.6235 GB, free: 163.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/1.019, allocations: 12.59 MB / 0.6358 GB, free: 151.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002934/1.022, allocations: 3.459 MB / 0.6391 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004501/1.027, allocations: 2.019 MB / 0.6411 GB, free: 146.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005687/1.028, allocations: 271.3 kB / 0.6414 GB, free: 146.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/1.028, allocations: 4 kB / 0.6414 GB, free: 146.4 MB / 478.1 MB Notification: Performance of Templates: time 0.05867/1.086, allocations: 39.33 MB / 0.6798 GB, free: 107.2 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches