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.0008532/0.0008532, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.0008977/0.0008977, allocations: 182 kB / 17.2 MB, free: 5.906 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.341/1.341, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002348, allocations: 7.719 kB / 300.7 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08883/0.08908, allocations: 50.43 MB / 351.1 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01375/0.1029, allocations: 15.26 MB / 366.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009604/0.1125, allocations: 4.804 MB / 371.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00253/0.1151, allocations: 67.81 kB / 371.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001872/0.117, allocations: 0.7077 MB / 372 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006308/0.1233, allocations: 2.42 MB / 374.4 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.1243, allocations: 367.3 kB / 374.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002645/0.127, allocations: 1.492 MB / 376.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002444/0.1295, allocations: 1.846 MB / 378.1 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008547/0.1303, allocations: 0.6385 MB / 378.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.1314, allocations: 0.8722 MB / 379.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002022/0.1316, allocations: 84 kB / 379.7 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001497/0.1331, allocations: 0.8503 MB / 380.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008023/0.1339, allocations: 0.9429 MB / 381.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004186/0.1343, allocations: 0.5118 MB / 382 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003026/0.1374, allocations: 3.285 MB / 385.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.1374, allocations: 0 / 385.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1374, allocations: 0 / 385.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.311e-05/0.1375, allocations: 0 / 385.3 MB, free: 9.359 MB / 318.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.004958/0.1424, allocations: 2.587 MB / 387.9 MB, free: 6.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.1425, allocations: 12.03 kB / 387.9 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007464/0.15, allocations: 2.083 MB / 390 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003191/0.1532, allocations: 1.46 MB / 391.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.1533, allocations: 135.3 kB / 391.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006362/0.154, allocations: 263.6 kB / 391.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/0.1641, allocations: 6.688 MB / 398.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.206e-05/0.1642, allocations: 23.81 kB / 398.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002481/0.1645, allocations: 83.91 kB / 398.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002033/0.1665, allocations: 1.367 MB / 400 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01218/0.1787, allocations: 6.076 MB / 406 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2254/0.4041, allocations: 25.66 MB / 431.7 MB, free: 46.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006936/0.4111, allocations: 2.67 MB / 434.4 MB, free: 46.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006357/0.4175, allocations: 3.909 MB / 438.3 MB, free: 44.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.4176, allocations: 56.02 kB / 438.3 MB, free: 44.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.647e-06/0.4176, allocations: 2.297 kB / 438.3 MB, free: 44.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02559/0.4432, allocations: 10.57 MB / 448.9 MB, free: 41.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001056/0.4443, allocations: 1.597 MB / 450.5 MB, free: 40.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003441/0.4477, allocations: 2.837 MB / 453.3 MB, free: 39.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002854/0.448, allocations: 43.95 kB / 453.4 MB, free: 39.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/0.4491, allocations: 2.084 MB / 455.5 MB, free: 38.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004949/0.4496, allocations: 0.5043 MB / 456 MB, free: 37.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.4498, allocations: 87.36 kB / 456.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.45, allocations: 0.4957 MB / 456.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002039/0.4521, allocations: 1.649 MB / 458.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002836/0.4549, allocations: 4.435 MB / 462.6 MB, free: 32.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/0.4577, allocations: 2.647 MB / 465.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.672e-05/0.4578, allocations: 31.95 kB / 465.3 MB, free: 29.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01681/0.4746, allocations: 7.998 MB / 473.3 MB, free: 21.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.575e-05/0.4747, allocations: 48 kB / 473.4 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01054/0.4852, allocations: 3.501 MB / 476.9 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0113/0.4966, allocations: 2.598 MB / 479.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002912/0.4995, allocations: 0.9981 MB / 480.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/0.5111, allocations: 9.319 MB / 489.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003242/0.5144, allocations: 331.3 kB / 490.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003687/0.5148, allocations: 283.9 kB / 490.4 MB, free: 4.297 MB / 350.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 (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001679/0.5165, allocations: 1.419 MB / 491.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003001/0.5168, allocations: 236.3 kB / 492 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005776/0.5226, allocations: 2.841 MB / 494.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005922/0.5285, allocations: 2.513 MB / 497.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.5286, allocations: 11.75 kB / 497.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/0.5286, allocations: 3.984 kB / 497.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.5421, allocations: 6.868 MB / 0.4925 GB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.133e-05/0.5421, allocations: 4 kB / 0.4925 GB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008242/0.543, allocations: 179.7 kB / 0.4926 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004912/0.5479, allocations: 1.436 MB / 0.494 GB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001333/0.548, allocations: 36.41 kB / 0.4941 GB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/0.5581, allocations: 7.522 MB / 0.5014 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001106/0.5593, allocations: 1.467 MB / 0.5028 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008893/0.5682, allocations: 4.974 MB / 0.5077 GB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007317/0.5689, allocations: 297.9 kB / 0.508 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002622/0.5692, allocations: 35.92 kB / 0.508 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.5703, allocations: 107.8 kB / 0.5081 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.5706, allocations: 80.38 kB / 0.5082 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.587e-05/0.5707, allocations: 35.98 kB / 0.5082 GB, free: 5.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002469/0.5731, allocations: 1.775 MB / 0.51 GB, free: 3.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5732, allocations: 0 / 0.51 GB, free: 3.844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003336/0.5765, allocations: 0.8032 MB / 0.5107 GB, free: 3.047 MB / 382.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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004123/0.5769, allocations: 189.8 kB / 0.5109 GB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006938/0.5839, allocations: 4.389 MB / 0.5152 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5839, allocations: 0 / 0.5152 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003042/0.5869, allocations: 1.726 MB / 0.5169 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.588, allocations: 253.2 kB / 0.5171 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009531/0.5976, allocations: 7.648 MB / 0.5246 GB, free: 4.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002065/0.5997, allocations: 2.348 MB / 0.5269 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003079/0.6028, allocations: 1.411 MB / 0.5283 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.6032, allocations: 167.4 kB / 0.5284 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.6032, allocations: 0 / 0.5284 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of Templates: time 0.04683/0.65, allocations: 29.31 MB / 0.5571 GB, free: 3.547 MB / 430.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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches