Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001825/0.001825, allocations: 116.2 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00256/0.00256, allocations: 206 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.845/2.845, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00236/0.002361, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.66/0.6624, allocations: 50.55 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01449/0.6769, allocations: 7.412 MB / 417.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.6881, allocations: 3.246 MB / 420.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002814/0.691, allocations: 35.94 kB / 420.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004087/0.6953, allocations: 1.027 MB / 421.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00665/0.702, allocations: 1.339 MB / 423 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002026/0.704, allocations: 463.1 kB / 423.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006639/0.7107, allocations: 2.664 MB / 426.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003893/0.7146, allocations: 1.52 MB / 427.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002972/0.7177, allocations: 0.8369 MB / 428.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003846/0.7216, allocations: 1.215 MB / 429.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001339/0.723, allocations: 172 kB / 429.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004042/0.727, allocations: 1.01 MB / 430.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002409/0.7295, allocations: 1.087 MB / 431.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002728/0.7323, allocations: 1.293 MB / 433.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009794/0.7421, allocations: 4.318 MB / 437.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.7422, allocations: 4 kB / 437.6 MB, free: 5.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.217e-06/0.7422, allocations: 0 / 437.6 MB, free: 5.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000142/0.7423, allocations: 0 / 437.6 MB, free: 5.844 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01137/0.7537, allocations: 3.02 MB / 440.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.62e-05/0.7538, allocations: 16.02 kB / 440.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01419/0.768, allocations: 1.791 MB / 442.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005945/0.7741, allocations: 1.37 MB / 443.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002716/0.7744, allocations: 131.3 kB / 443.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001852/0.7763, allocations: 259.7 kB / 444.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/0.7956, allocations: 6.679 MB / 450.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.7958, allocations: 31.66 kB / 450.8 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004202/0.7962, allocations: 83.89 kB / 450.9 MB, free: 7.902 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003295/0.7995, allocations: 1.37 MB / 452.3 MB, free: 6.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01782/0.8174, allocations: 6.045 MB / 458.3 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05669/0.8741, allocations: 25.52 MB / 483.9 MB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01366/0.8879, allocations: 2.686 MB / 486.6 MB, free: 3.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.8904, allocations: 1.031 MB / 487.6 MB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.9019, allocations: 3.979 MB / 491.6 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.739e-05/0.9021, allocations: 51.06 kB / 491.6 MB, free: 14.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 5.861e-06/0.9021, allocations: 0 / 491.6 MB, free: 14.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.04976/0.9518, allocations: 10.31 MB / 0.4902 GB, free: 3.531 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002365/0.9543, allocations: 1.671 MB / 0.4918 GB, free: 1.684 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006929/0.9613, allocations: 2.721 MB / 0.4944 GB, free: 14.94 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006018/0.9619, allocations: 41.7 kB / 0.4945 GB, free: 14.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002686/0.9646, allocations: 2.071 MB / 0.4965 GB, free: 12.79 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/0.9659, allocations: 0.5092 MB / 0.497 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002214/0.9681, allocations: 0.9282 MB / 0.4979 GB, free: 11.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.9683, allocations: 305.1 kB / 0.4982 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005008/0.9733, allocations: 1.66 MB / 0.4998 GB, free: 9.363 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009264/0.9826, allocations: 4.456 MB / 0.5042 GB, free: 3.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/0.9973, allocations: 6.558 MB / 0.5106 GB, free: 11.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002084/0.9976, allocations: 28 kB / 0.5106 GB, free: 11.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.03689/1.034, allocations: 8.071 MB / 0.5185 GB, free: 3.438 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/1.035, allocations: 48 kB / 0.5185 GB, free: 3.391 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02095/1.056, allocations: 3.578 MB / 0.522 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0183/1.074, allocations: 2.678 MB / 0.5246 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005506/1.08, allocations: 1.01 MB / 0.5256 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02259/1.102, allocations: 9.72 MB / 0.5351 GB, free: 2.094 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01152/1.114, allocations: 331.5 kB / 0.5354 GB, free: 1.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001789/1.116, allocations: 288 kB / 0.5357 GB, free: 1.488 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009764/1.126, allocations: 1.427 MB / 0.5371 GB, free: 48 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.6399/1.765, allocations: 224.8 kB / 0.5373 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/1.768, allocations: 325 kB / 0.5376 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01431/1.782, allocations: 2.529 MB / 0.5401 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.362e-05/1.782, allocations: 7.922 kB / 0.5401 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.204e-05/1.782, allocations: 8.812 kB / 0.5401 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02714/1.809, allocations: 6.872 MB / 0.5468 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.621e-05/1.809, allocations: 3.797 kB / 0.5468 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/1.811, allocations: 176.9 kB / 0.547 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009729/1.821, allocations: 1.433 MB / 0.5484 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005314/1.822, allocations: 28.38 kB / 0.5484 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01816/1.84, allocations: 7.931 MB / 0.5562 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001474/1.841, allocations: 1.529 MB / 0.5577 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/1.855, allocations: 4.866 MB / 0.5624 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/1.856, allocations: 292.4 kB / 0.5627 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007964/1.857, allocations: 24.5 kB / 0.5627 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002058/1.859, allocations: 115.5 kB / 0.5628 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004783/1.86, allocations: 84.31 kB / 0.5629 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001719/1.86, allocations: 40.09 kB / 0.5629 GB, free: 109.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003889/1.864, allocations: 1.685 MB / 0.5646 GB, free: 107.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.864, allocations: 0 / 0.5646 GB, free: 107.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01089/1.875, allocations: 0.7782 MB / 0.5654 GB, free: 106.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009401/1.876, allocations: 161.5 kB / 0.5655 GB, free: 106.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01612/1.892, allocations: 4.458 MB / 0.5699 GB, free: 102.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/1.892, allocations: 0 / 0.5699 GB, free: 102.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01289/1.905, allocations: 1.738 MB / 0.5716 GB, free: 100.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003423/1.908, allocations: 266.9 kB / 0.5718 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01755/1.926, allocations: 6.82 MB / 0.5785 GB, free: 93.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003115/1.929, allocations: 2.301 MB / 0.5807 GB, free: 91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/1.93, allocations: 207.3 kB / 0.5809 GB, free: 90.8 MB / 462.1 MB Notification: Performance of SimCode: time 2.224e-06/1.93, allocations: 0 / 0.5809 GB, free: 90.8 MB / 462.1 MB Notification: Performance of Templates: time 0.1265/2.056, allocations: 76.27 MB / 0.6554 GB, free: 14.56 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches