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.001425/0.001425, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001744/0.001744, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.363/1.363, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 51.05 kB / 300.6 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1174, allocations: 49.45 MB / 350.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009613/0.127, allocations: 7.437 MB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00656/0.1336, allocations: 3.244 MB / 360.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.1348, allocations: 31.94 kB / 360.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002366/0.1372, allocations: 1.027 MB / 361.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003561/0.1408, allocations: 1.37 MB / 363.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.142, allocations: 455.2 kB / 363.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003443/0.1454, allocations: 2.633 MB / 366.2 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002368/0.1478, allocations: 1.532 MB / 367.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001596/0.1494, allocations: 0.8408 MB / 368.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00191/0.1513, allocations: 1.215 MB / 369.8 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006315/0.152, allocations: 172 kB / 370 MB, free: 404 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1895/0.3415, allocations: 1.028 MB / 371 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00183/0.3433, allocations: 1.106 MB / 372.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001679/0.345, allocations: 1.303 MB / 373.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006559/0.3516, allocations: 4.195 MB / 377.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3516, allocations: 1.625 kB / 377.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3516, allocations: 0.625 kB / 377.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001379/0.3518, allocations: 0 / 377.6 MB, free: 11.14 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.01007/0.3619, allocations: 3.053 MB / 380.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.3619, allocations: 7.625 kB / 380.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00697/0.3689, allocations: 1.733 MB / 382.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/0.3724, allocations: 1.386 MB / 383.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.3726, allocations: 136.2 kB / 383.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00064/0.3732, allocations: 264 kB / 384.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009895/0.3831, allocations: 6.652 MB / 390.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.923e-05/0.3832, allocations: 28.73 kB / 390.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002516/0.3834, allocations: 92.66 kB / 391 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001998/0.3854, allocations: 1.365 MB / 392.3 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009636/0.3951, allocations: 6.029 MB / 398.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02935/0.4245, allocations: 25.63 MB / 424 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00706/0.4316, allocations: 2.669 MB / 426.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.4329, allocations: 1.038 MB / 427.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005573/0.4385, allocations: 3.887 MB / 431.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.4385, allocations: 50.95 kB / 431.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=112): time 3.486e-06/0.4386, allocations: 0 / 431.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of matching and sorting (n=125): time 0.02797/0.4665, allocations: 10.29 MB / 441.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001368/0.4679, allocations: 1.678 MB / 443.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005025/0.473, allocations: 2.721 MB / 446.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001709/0.4732, allocations: 41.64 kB / 446.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001665/0.4749, allocations: 2.083 MB / 448.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000641/0.4755, allocations: 0.5069 MB / 449 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001658/0.4772, allocations: 0.9235 MB / 449.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4773, allocations: 305.1 kB / 450.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/0.48, allocations: 1.651 MB / 451.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004753/0.4847, allocations: 4.454 MB / 456.3 MB, free: 6.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0072/0.4919, allocations: 6.551 MB / 462.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.969e-05/0.4921, allocations: 28 kB / 462.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02014/0.5122, allocations: 7.995 MB / 470.9 MB, free: 6.812 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001305/0.5124, allocations: 48 kB / 470.9 MB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01185/0.5242, allocations: 3.493 MB / 474.4 MB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01252/0.5368, allocations: 2.589 MB / 477 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003782/0.5406, allocations: 1.01 MB / 478 MB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/0.5557, allocations: 9.697 MB / 487.7 MB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004398/0.5602, allocations: 331.5 kB / 488 MB, free: 5.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/0.5614, allocations: 286.4 kB / 488.3 MB, free: 5.086 MB / 398.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.00426/0.5657, allocations: 1.419 MB / 489.7 MB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008411/0.5666, allocations: 233 kB / 489.9 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007866/0.5745, allocations: 2.838 MB / 492.8 MB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006232/0.5807, allocations: 2.513 MB / 495.3 MB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-05/0.5808, allocations: 7.938 kB / 495.3 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.734e-05/0.5808, allocations: 7.984 kB / 495.3 MB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01737/0.5982, allocations: 6.876 MB / 0.4904 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.037e-05/0.5982, allocations: 8.125 kB / 0.4904 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009423/0.5992, allocations: 171.7 kB / 0.4906 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005009/0.6042, allocations: 1.438 MB / 0.492 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002427/0.6045, allocations: 27.97 kB / 0.492 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/0.6159, allocations: 7.919 MB / 0.4998 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00125/0.6172, allocations: 1.541 MB / 0.5013 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009522/0.6267, allocations: 4.86 MB / 0.506 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008248/0.6276, allocations: 290 kB / 0.5063 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006396/0.6282, allocations: 28.12 kB / 0.5063 GB, free: 6.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.6298, allocations: 112.3 kB / 0.5064 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003127/0.6302, allocations: 80.44 kB / 0.5065 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.6303, allocations: 39.92 kB / 0.5065 GB, free: 6.086 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003547/0.6339, allocations: 1.693 MB / 0.5082 GB, free: 4.383 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6339, allocations: 0 / 0.5082 GB, free: 4.383 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004499/0.6384, allocations: 0.7918 MB / 0.509 GB, free: 3.594 MB / 430.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.0004888/0.6389, allocations: 165.6 kB / 0.5091 GB, free: 3.426 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008594/0.6475, allocations: 4.766 MB / 0.5138 GB, free: 14.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.6475, allocations: 7.938 kB / 0.5138 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003288/0.6508, allocations: 1.728 MB / 0.5155 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.653, allocations: 272.4 kB / 0.5157 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.6655, allocations: 6.602 MB / 0.5222 GB, free: 5.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003457/0.669, allocations: 2.293 MB / 0.5244 GB, free: 3.605 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003914/0.6729, allocations: 1.404 MB / 0.5258 GB, free: 2.195 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006001/0.6735, allocations: 167.4 kB / 0.5259 GB, free: 2.031 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6735, allocations: 0 / 0.5259 GB, free: 2.031 MB / 446.1 MB Notification: Performance of Templates: time 0.2323/0.9058, allocations: 30.71 MB / 0.5559 GB, free: 139 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