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.001023/0.001023, allocations: 103.7 kB / 16.62 MB, free: 6.762 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.000941/0.000941, allocations: 193.8 kB / 17.55 MB, free: 5.93 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.427/1.427, allocations: 222.9 MB / 241.2 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009641/0.0009641, allocations: 51.55 kB / 300.1 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.08985, allocations: 49.45 MB / 349.6 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01627/0.1062, allocations: 17.92 MB / 367.5 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2016/0.3078, allocations: 4.928 MB / 372.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004611/0.3124, allocations: 72.34 kB / 372.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002959/0.3155, allocations: 0.978 MB / 373.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004271/0.3198, allocations: 1.287 MB / 374.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.3211, allocations: 422.3 kB / 375.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004159/0.3252, allocations: 2.657 MB / 377.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002949/0.3282, allocations: 1.621 MB / 379.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.3303, allocations: 0.8498 MB / 380.3 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002275/0.3326, allocations: 1.358 MB / 381.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004192/0.333, allocations: 174.1 kB / 381.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002388/0.3354, allocations: 1.053 MB / 382.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001269/0.3367, allocations: 1.123 MB / 384 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00129/0.338, allocations: 1.322 MB / 385.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00676/0.3447, allocations: 4.233 MB / 389.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.357e-06/0.3448, allocations: 2.594 kB / 389.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.3448, allocations: 0 / 389.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001681/0.345, allocations: 0 / 389.6 MB, free: 4.121 MB / 302.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.008348/0.3533, allocations: 3.063 MB / 392.6 MB, free: 2.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.3534, allocations: 8.906 kB / 392.6 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006511/0.3599, allocations: 1.731 MB / 394.4 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002833/0.3628, allocations: 1.379 MB / 395.7 MB, free: 216 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.3629, allocations: 144.8 kB / 395.9 MB, free: 168 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006258/0.3635, allocations: 262.3 kB / 396.1 MB, free: 92 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01173/0.3753, allocations: 6.654 MB / 402.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.235e-05/0.3754, allocations: 29.03 kB / 402.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002685/0.3757, allocations: 91.83 kB / 402.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002106/0.3778, allocations: 1.367 MB / 404.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.3892, allocations: 6.033 MB / 410.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03277/0.422, allocations: 25.62 MB / 435.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007179/0.4293, allocations: 2.67 MB / 438.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.4309, allocations: 1.032 MB / 439.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007115/0.4381, allocations: 3.898 MB / 443.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.4382, allocations: 51.06 kB / 443.6 MB, free: 484 kB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 6.683e-06/0.4382, allocations: 0 / 443.6 MB, free: 484 kB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02883/0.467, allocations: 10.29 MB / 453.9 MB, free: 6.035 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001597/0.4686, allocations: 1.675 MB / 455.5 MB, free: 4.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005099/0.4738, allocations: 2.729 MB / 458.3 MB, free: 1.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003408/0.4741, allocations: 41.7 kB / 458.3 MB, free: 1.383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/0.4759, allocations: 2.087 MB / 460.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008157/0.4767, allocations: 0.5049 MB / 460.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00206/0.4788, allocations: 0.9151 MB / 461.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.4789, allocations: 309 kB / 462.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002765/0.4817, allocations: 1.652 MB / 463.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00483/0.4865, allocations: 4.456 MB / 468.2 MB, free: 6.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008124/0.4946, allocations: 6.537 MB / 474.8 MB, free: 14.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.075e-05/0.4948, allocations: 32 kB / 474.8 MB, free: 14.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0207/0.5155, allocations: 7.996 MB / 482.8 MB, free: 6.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.855e-05/0.5156, allocations: 52.17 kB / 482.8 MB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01173/0.5273, allocations: 3.488 MB / 486.3 MB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01216/0.5395, allocations: 2.596 MB / 488.9 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00332/0.5429, allocations: 1.014 MB / 489.9 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/0.5583, allocations: 9.707 MB / 499.7 MB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004385/0.5628, allocations: 329.6 kB / 500 MB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001157/0.564, allocations: 284 kB / 0.4885 GB, free: 4.324 MB / 414.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.003231/0.5672, allocations: 1.426 MB / 0.4899 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/0.5678, allocations: 229 kB / 0.4901 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007135/0.575, allocations: 2.829 MB / 0.4929 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006025/0.581, allocations: 2.513 MB / 0.4954 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.5811, allocations: 15.92 kB / 0.4954 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.5811, allocations: 3.984 kB / 0.4954 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/0.5949, allocations: 6.863 MB / 0.5021 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/0.5949, allocations: 0 / 0.5021 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008618/0.5958, allocations: 175.7 kB / 0.5022 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005478/0.6013, allocations: 1.436 MB / 0.5036 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/0.6016, allocations: 31.97 kB / 0.5037 GB, free: 4.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01662/0.6182, allocations: 7.935 MB / 0.5114 GB, free: 12.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001496/0.6198, allocations: 1.545 MB / 0.5129 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/0.6338, allocations: 4.852 MB / 0.5177 GB, free: 5.879 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009407/0.6348, allocations: 290 kB / 0.5179 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007358/0.6355, allocations: 23.98 kB / 0.518 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002232/0.6378, allocations: 107.8 kB / 0.5181 GB, free: 5.445 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004337/0.6382, allocations: 84.38 kB / 0.5182 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001819/0.6384, allocations: 46.33 kB / 0.5182 GB, free: 5.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004259/0.6427, allocations: 1.685 MB / 0.5198 GB, free: 3.625 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6427, allocations: 8 kB / 0.5199 GB, free: 3.617 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006631/0.6494, allocations: 0.7852 MB / 0.5206 GB, free: 2.832 MB / 446.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.0006637/0.6501, allocations: 169.5 kB / 0.5208 GB, free: 2.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1828/0.8329, allocations: 4.768 MB / 0.5254 GB, free: 152.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.8329, allocations: 1.125 kB / 0.5254 GB, free: 152.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003582/0.8365, allocations: 1.719 MB / 0.5271 GB, free: 152.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.8385, allocations: 268.6 kB / 0.5274 GB, free: 152.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.851, allocations: 7.801 MB / 0.535 GB, free: 149 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002309/0.8534, allocations: 2.298 MB / 0.5372 GB, free: 148 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003699/0.8571, allocations: 1.402 MB / 0.5386 GB, free: 147.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004933/0.8576, allocations: 167.3 kB / 0.5388 GB, free: 147.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.8576, allocations: 1.641 kB / 0.5388 GB, free: 147.8 MB / 446.1 MB Notification: Performance of Templates: time 0.04765/0.9052, allocations: 30.92 MB / 0.569 GB, free: 125.7 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/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