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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009639/0.000964, allocations: 101.6 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008855/0.0008856, allocations: 39.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2569, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01239/0.2693, allocations: 17.91 MB / 417.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008202/0.2776, allocations: 5.043 MB / 422.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004073/0.2817, allocations: 71.81 kB / 422.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.2839, allocations: 0.9972 MB / 423.5 MB, free: 9.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002524/0.2864, allocations: 1.281 MB / 424.8 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007513/0.2872, allocations: 411.4 kB / 425.2 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003192/0.2904, allocations: 3.622 MB / 428.8 MB, free: 3.957 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002888/0.2933, allocations: 1.516 MB / 430.3 MB, free: 2.426 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001808/0.2951, allocations: 0.7354 MB / 431 MB, free: 1.688 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.2977, allocations: 1.308 MB / 432.4 MB, free: 384 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008009/0.2985, allocations: 115.9 kB / 432.5 MB, free: 268 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003143/0.3017, allocations: 1.03 MB / 433.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002032/0.3038, allocations: 1.083 MB / 434.6 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00279/0.3066, allocations: 1.258 MB / 435.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007129/0.3137, allocations: 4.16 MB / 440 MB, free: 8.707 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3138, allocations: 0 / 440 MB, free: 8.707 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3138, allocations: 4 kB / 440 MB, free: 8.703 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002039/0.314, allocations: 4 kB / 440 MB, free: 8.699 MB / 314.7 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.01167/0.3257, allocations: 3.047 MB / 443.1 MB, free: 5.594 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.705e-05/0.3258, allocations: 8.031 kB / 443.1 MB, free: 5.586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01072/0.3365, allocations: 1.732 MB / 444.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004783/0.3413, allocations: 1.394 MB / 446.2 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.3416, allocations: 131.3 kB / 446.3 MB, free: 2.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001526/0.3431, allocations: 259.6 kB / 446.6 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.3621, allocations: 6.66 MB / 453.2 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001734/0.3624, allocations: 31.66 kB / 453.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001179/0.3636, allocations: 83.89 kB / 453.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003967/0.3676, allocations: 1.367 MB / 454.7 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/0.3832, allocations: 6.029 MB / 460.7 MB, free: 3.379 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03295/0.4162, allocations: 25.63 MB / 486.4 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007167/0.4234, allocations: 2.662 MB / 489 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.425, allocations: 1.036 MB / 490.1 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007045/0.432, allocations: 3.9 MB / 494 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.4321, allocations: 43.12 kB / 494 MB, free: 0.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=112): time 5.941e-06/0.4321, allocations: 0 / 494 MB, free: 0.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=125): time 0.02655/0.4587, allocations: 10.3 MB / 0.4925 GB, free: 6.461 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001277/0.46, allocations: 1.576 MB / 0.494 GB, free: 4.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003552/0.4636, allocations: 2.729 MB / 0.4967 GB, free: 1.961 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002238/0.4638, allocations: 41.7 kB / 0.4967 GB, free: 1.914 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2141/0.6779, allocations: 2.081 MB / 0.4988 GB, free: 98.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008598/0.6789, allocations: 0.5052 MB / 0.4993 GB, free: 98.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001839/0.6807, allocations: 0.9225 MB / 0.5002 GB, free: 98.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.327e-05/0.6808, allocations: 301.8 kB / 0.5004 GB, free: 97.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002309/0.6831, allocations: 1.649 MB / 0.5021 GB, free: 97.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003478/0.6866, allocations: 4.453 MB / 0.5064 GB, free: 92.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00569/0.6923, allocations: 6.543 MB / 0.5128 GB, free: 87.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-05/0.6924, allocations: 34.25 kB / 0.5128 GB, free: 87.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01821/0.7106, allocations: 8.004 MB / 0.5206 GB, free: 83.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.795e-05/0.7107, allocations: 48 kB / 0.5207 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01099/0.7217, allocations: 3.492 MB / 0.5241 GB, free: 79.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01183/0.7336, allocations: 2.586 MB / 0.5266 GB, free: 77.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002826/0.7365, allocations: 1.002 MB / 0.5276 GB, free: 76.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.7478, allocations: 8.877 MB / 0.5363 GB, free: 66.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003867/0.7518, allocations: 326.8 kB / 0.5366 GB, free: 66.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007483/0.7525, allocations: 284 kB / 0.5369 GB, free: 66.32 MB / 378.7 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.00208/0.7546, allocations: 1.427 MB / 0.5382 GB, free: 64.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004338/0.7551, allocations: 229 kB / 0.5385 GB, free: 64.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006089/0.7612, allocations: 2.838 MB / 0.5412 GB, free: 61.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005549/0.7668, allocations: 2.517 MB / 0.5437 GB, free: 59.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.297e-05/0.7668, allocations: 7.938 kB / 0.5437 GB, free: 59.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.7669, allocations: 4.641 kB / 0.5437 GB, free: 59.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/0.7808, allocations: 6.862 MB / 0.5504 GB, free: 52.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/0.7809, allocations: 0 / 0.5504 GB, free: 52.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007738/0.7816, allocations: 177.5 kB / 0.5506 GB, free: 52.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004544/0.7862, allocations: 1.447 MB / 0.552 GB, free: 50.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.7864, allocations: 27.97 kB / 0.552 GB, free: 50.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007932/0.7943, allocations: 7.32 MB / 0.5592 GB, free: 43.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000748/0.7951, allocations: 1.45 MB / 0.5606 GB, free: 41.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06374/0.8588, allocations: 33.79 MB / 0.5936 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.8594, allocations: 294 kB / 0.5939 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004372/0.8599, allocations: 30.7 kB / 0.5939 GB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.8612, allocations: 107.8 kB / 0.594 GB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002872/0.8615, allocations: 84.36 kB / 0.5941 GB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-05/0.8616, allocations: 43.81 kB / 0.5941 GB, free: 6.801 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001915/0.8635, allocations: 1.693 MB / 0.5958 GB, free: 5.098 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8635, allocations: 3.938 kB / 0.5958 GB, free: 5.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003758/0.8673, allocations: 1.064 MB / 0.5968 GB, free: 4.035 MB / 378.7 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.0003143/0.8676, allocations: 168.3 kB / 0.597 GB, free: 3.867 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006166/0.8738, allocations: 4.416 MB / 0.6013 GB, free: 15.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.8738, allocations: 3.938 kB / 0.6013 GB, free: 15.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/0.877, allocations: 1.721 MB / 0.603 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.8787, allocations: 247.3 kB / 0.6032 GB, free: 13.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/0.8927, allocations: 9.492 MB / 0.6125 GB, free: 3.809 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002311/0.895, allocations: 2.337 MB / 0.6148 GB, free: 1.441 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003326/0.8983, allocations: 1.435 MB / 0.6162 GB, free: 0 / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000447/0.8988, allocations: 171.4 kB / 0.6163 GB, free: 15.83 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8988, allocations: 0 / 0.6163 GB, free: 15.83 MB / 410.7 MB Notification: Performance of Templates: time 0.06192/0.9607, allocations: 38.4 MB / 0.6538 GB, free: 9.535 MB / 442.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches