Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001507/0.001506, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001578/0.001578, allocations: 187.1 kB / 18.67 MB, free: 4.441 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.373/1.373, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 43.94 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3403, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009465/0.3498, allocations: 7.43 MB / 408.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006819/0.3567, allocations: 3.24 MB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001395/0.3581, allocations: 35.88 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002565/0.3607, allocations: 1.016 MB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003923/0.3647, allocations: 1.378 MB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.3659, allocations: 467 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003853/0.3698, allocations: 2.64 MB / 417.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002336/0.3722, allocations: 1.52 MB / 419.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.3738, allocations: 0.8408 MB / 420 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002132/0.3759, allocations: 1.223 MB / 421.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006758/0.3766, allocations: 168 kB / 421.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002367/0.379, allocations: 1.034 MB / 422.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001446/0.3805, allocations: 1.11 MB / 423.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002076/0.3826, allocations: 1.305 MB / 424.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006174/0.3888, allocations: 4.365 MB / 429.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.515e-06/0.3888, allocations: 4 kB / 429.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3888, allocations: 0 / 429.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000161/0.389, allocations: 0 / 429.2 MB, free: 12.97 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.007747/0.3967, allocations: 3.055 MB / 432.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3968, allocations: 8.031 kB / 432.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006776/0.4036, allocations: 1.725 MB / 434 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003006/0.4066, allocations: 1.417 MB / 435.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.4068, allocations: 131.3 kB / 435.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009169/0.4077, allocations: 255.7 kB / 435.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/0.4202, allocations: 6.66 MB / 442.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.4204, allocations: 35.73 kB / 442.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006412/0.421, allocations: 83.89 kB / 442.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002377/0.4234, allocations: 1.363 MB / 443.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.4354, allocations: 6.029 MB / 449.9 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03281/0.4682, allocations: 25.54 MB / 475.5 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006951/0.4752, allocations: 2.682 MB / 478.1 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001518/0.4768, allocations: 1.032 MB / 479.2 MB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005988/0.4828, allocations: 3.884 MB / 483.1 MB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.4829, allocations: 51.11 kB / 483.1 MB, free: 5.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 3.436e-06/0.4829, allocations: 0 / 483.1 MB, free: 5.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.02622/0.5091, allocations: 10.29 MB / 493.4 MB, free: 10.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001305/0.5104, allocations: 1.675 MB / 495.1 MB, free: 8.965 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003941/0.5144, allocations: 2.721 MB / 497.8 MB, free: 6.223 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000219/0.5147, allocations: 41.7 kB / 497.8 MB, free: 6.176 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001384/0.516, allocations: 2.083 MB / 499.9 MB, free: 4.059 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005818/0.5166, allocations: 0.5054 MB / 0.4887 GB, free: 3.547 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001434/0.5181, allocations: 0.9244 MB / 0.4896 GB, free: 2.609 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.152e-05/0.5182, allocations: 305.1 kB / 0.4899 GB, free: 2.309 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002508/0.5207, allocations: 1.652 MB / 0.4915 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004209/0.5249, allocations: 4.456 MB / 0.4958 GB, free: 10.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006792/0.5317, allocations: 6.546 MB / 0.5022 GB, free: 2.848 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.128e-05/0.5318, allocations: 32 kB / 0.5023 GB, free: 2.816 MB / 430.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.019/0.5508, allocations: 7.994 MB / 0.5101 GB, free: 10.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.551, allocations: 48 kB / 0.5101 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01143/0.5624, allocations: 3.492 MB / 0.5135 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01197/0.5744, allocations: 2.584 MB / 0.5161 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.5778, allocations: 1.002 MB / 0.517 GB, free: 3.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01507/0.5929, allocations: 9.697 MB / 0.5265 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003597/0.5965, allocations: 327.5 kB / 0.5268 GB, free: 9.352 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008746/0.5974, allocations: 284 kB / 0.5271 GB, free: 9.074 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.002879/0.6003, allocations: 1.423 MB / 0.5285 GB, free: 7.641 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00058/0.6009, allocations: 237 kB / 0.5287 GB, free: 7.406 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006943/0.6079, allocations: 2.827 MB / 0.5315 GB, free: 4.547 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005919/0.6138, allocations: 2.529 MB / 0.5339 GB, free: 2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.6139, allocations: 4 kB / 0.5339 GB, free: 1.996 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.899e-05/0.6139, allocations: 3.984 kB / 0.5339 GB, free: 1.992 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2169/0.8308, allocations: 6.861 MB / 0.5406 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/0.8308, allocations: 0 / 0.5406 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008299/0.8317, allocations: 182.6 kB / 0.5408 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00455/0.8362, allocations: 1.435 MB / 0.5422 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002083/0.8365, allocations: 31.27 kB / 0.5422 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008949/0.8454, allocations: 7.91 MB / 0.55 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007818/0.8462, allocations: 1.548 MB / 0.5515 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007626/0.8539, allocations: 4.855 MB / 0.5562 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006298/0.8546, allocations: 290.6 kB / 0.5565 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002789/0.8549, allocations: 27.97 kB / 0.5565 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.856, allocations: 111.8 kB / 0.5566 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/0.8563, allocations: 76.44 kB / 0.5567 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.8564, allocations: 39.81 kB / 0.5567 GB, free: 120.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002178/0.8586, allocations: 1.689 MB / 0.5584 GB, free: 118.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.713e-06/0.8586, allocations: 0 / 0.5584 GB, free: 118.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003407/0.862, allocations: 0.7975 MB / 0.5592 GB, free: 117.8 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.0003835/0.8624, allocations: 164 kB / 0.5593 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006497/0.8689, allocations: 4.458 MB / 0.5637 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.8689, allocations: 4 kB / 0.5637 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002765/0.8717, allocations: 1.729 MB / 0.5654 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.8734, allocations: 262 kB / 0.5656 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00833/0.8818, allocations: 6.835 MB / 0.5723 GB, free: 104.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.8834, allocations: 2.291 MB / 0.5745 GB, free: 102.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005949/0.884, allocations: 203.4 kB / 0.5747 GB, free: 101.9 MB / 462.1 MB Notification: Performance of SimCode: time 9.21e-07/0.884, allocations: 1.75 kB / 0.5747 GB, free: 101.9 MB / 462.1 MB Notification: Performance of Templates: time 0.06732/0.9513, allocations: 76.54 MB / 0.6495 GB, free: 25.37 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches