Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.03399/0.03399, allocations: 179.2 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 13.54/13.54, allocations: 223.3 MB / 241 MB, free: 10.08 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.01127/0.01127, allocations: 87.73 kB / 292.2 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002214/0.0002214, allocations: 8 kB / 351.8 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.193, allocations: 50.43 MB / 402.2 MB, free: 32.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.0209/0.214, allocations: 34.75 MB / 437 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01621/0.2302, allocations: 8.049 MB / 445 MB, free: 5.645 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004445/0.2347, allocations: 167.6 kB / 445.2 MB, free: 5.48 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003444/0.2382, allocations: 1.757 MB / 446.9 MB, free: 3.715 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.2489, allocations: 5.365 MB / 452.3 MB, free: 14.33 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.2502, allocations: 0.511 MB / 452.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003686/0.2539, allocations: 3.961 MB / 456.8 MB, free: 9.844 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004068/0.258, allocations: 3.712 MB / 460.5 MB, free: 6.062 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001171/0.2592, allocations: 1.113 MB / 461.6 MB, free: 4.945 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.2608, allocations: 1.659 MB / 463.3 MB, free: 3.281 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.2611, allocations: 120 kB / 463.4 MB, free: 3.164 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001367/0.2624, allocations: 0.8971 MB / 464.3 MB, free: 2.266 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001103/0.2635, allocations: 1.469 MB / 465.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005414/0.2641, allocations: 0.7376 MB / 466.5 MB, free: 48 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003687/0.2678, allocations: 4.767 MB / 471.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2678, allocations: 0 / 471.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2678, allocations: 0 / 471.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.51e-05/0.2679, allocations: 0 / 471.2 MB, free: 11.27 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.00504/0.2729, allocations: 3.517 MB / 474.8 MB, free: 7.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2729, allocations: 12.03 kB / 474.8 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005491/0.2784, allocations: 1.886 MB / 476.7 MB, free: 5.781 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002925/0.2814, allocations: 1.97 MB / 478.6 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.2815, allocations: 217.4 kB / 478.8 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006739/0.2822, allocations: 371.6 kB / 479.2 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.2936, allocations: 8.858 MB / 488.1 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.761e-05/0.2937, allocations: 35.66 kB / 488.1 MB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003002/0.294, allocations: 135.9 kB / 488.2 MB, free: 9.516 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002108/0.2961, allocations: 1.641 MB / 489.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01209/0.3082, allocations: 7.475 MB / 497.3 MB, free: 400 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2016/0.5098, allocations: 35.15 MB / 0.52 GB, free: 74.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006526/0.5164, allocations: 3.437 MB / 0.5234 GB, free: 73.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.5177, allocations: 1.436 MB / 0.5248 GB, free: 72.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006173/0.5239, allocations: 6.798 MB / 0.5314 GB, free: 68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.5239, allocations: 52 kB / 0.5315 GB, free: 67.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.316e-06/0.5239, allocations: 0 / 0.5315 GB, free: 67.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.0195/0.5434, allocations: 11.1 MB / 0.5423 GB, free: 58.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007759/0.5442, allocations: 1.618 MB / 0.5439 GB, free: 56.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003189/0.5474, allocations: 3.508 MB / 0.5473 GB, free: 52.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.5475, allocations: 50.95 kB / 0.5474 GB, free: 52.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009942/0.5485, allocations: 2.791 MB / 0.5501 GB, free: 50.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003112/0.5489, allocations: 0.567 MB / 0.5506 GB, free: 49.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.549, allocations: 108 kB / 0.5507 GB, free: 49.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.5492, allocations: 0.5374 MB / 0.5513 GB, free: 48.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/0.5512, allocations: 1.9 MB / 0.5531 GB, free: 46.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002881/0.5541, allocations: 5.338 MB / 0.5583 GB, free: 39.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/0.5569, allocations: 3.113 MB / 0.5614 GB, free: 36.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.295e-05/0.557, allocations: 36 kB / 0.5614 GB, free: 36.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01443/0.5714, allocations: 8.711 MB / 0.5699 GB, free: 28.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.22e-05/0.5715, allocations: 56 kB / 0.57 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008451/0.5799, allocations: 3.431 MB / 0.5733 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008819/0.5888, allocations: 2.242 MB / 0.5755 GB, free: 22.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003207/0.592, allocations: 1.263 MB / 0.5767 GB, free: 21.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00695/0.599, allocations: 6.8 MB / 0.5834 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003402/0.6024, allocations: 379.3 kB / 0.5837 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003441/0.6028, allocations: 345.1 kB / 0.5841 GB, free: 13.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (676): * Single equations (assignments): 667 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001972/0.6047, allocations: 1.859 MB / 0.5859 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003275/0.6051, allocations: 300.1 kB / 0.5862 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004229/0.6093, allocations: 2.77 MB / 0.5889 GB, free: 8.289 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003554/0.6129, allocations: 2.358 MB / 0.5912 GB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.6129, allocations: 0 / 0.5912 GB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.6129, allocations: 7.984 kB / 0.5912 GB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.6233, allocations: 7.836 MB / 0.5988 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.6233, allocations: 4 kB / 0.5988 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009464/0.6243, allocations: 227.6 kB / 0.5991 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/0.6271, allocations: 1.053 MB / 0.6001 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.503e-05/0.6272, allocations: 36.67 kB / 0.6001 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004829/0.632, allocations: 4.961 MB / 0.605 GB, free: 7.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008916/0.6329, allocations: 1.482 MB / 0.6064 GB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006783/0.6397, allocations: 4.945 MB / 0.6112 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006642/0.6404, allocations: 371.7 kB / 0.6116 GB, free: 436 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/0.6406, allocations: 39.86 kB / 0.6116 GB, free: 396 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.6418, allocations: 119.8 kB / 0.6118 GB, free: 276 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.642, allocations: 85.84 kB / 0.6118 GB, free: 192 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.292e-05/0.6421, allocations: 39.98 kB / 0.6119 GB, free: 152 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002717/0.6448, allocations: 2.163 MB / 0.614 GB, free: 14 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6448, allocations: 4 kB / 0.614 GB, free: 13.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003389/0.6482, allocations: 0.979 MB / 0.6149 GB, free: 13.02 MB / 410.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.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003211/0.6485, allocations: 168.7 kB / 0.6151 GB, free: 12.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00739/0.6559, allocations: 5.177 MB / 0.6202 GB, free: 7.633 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.656, allocations: 0 / 0.6202 GB, free: 7.633 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003309/0.6593, allocations: 2.005 MB / 0.6221 GB, free: 5.559 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.6611, allocations: 380.8 kB / 0.6225 GB, free: 5.184 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.6731, allocations: 10.38 MB / 0.6326 GB, free: 10.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00251/0.6757, allocations: 2.904 MB / 0.6355 GB, free: 7.809 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006815/0.6764, allocations: 255.4 kB / 0.6357 GB, free: 7.559 MB / 426.7 MB Notification: Performance of SimCode: time 8.11e-07/0.6764, allocations: 0 / 0.6357 GB, free: 7.559 MB / 426.7 MB Notification: Performance of Templates: time 0.3422/1.019, allocations: 117 MB / 0.7499 GB, free: 97.69 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches