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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008763/0.0008765, allocations: 98.06 kB / 16.3 MB, free: 5.582 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.0008616/0.0008616, allocations: 178.6 kB / 17.19 MB, free: 5.516 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.282/1.282, allocations: 223.2 MB / 241.1 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002383, allocations: 15.92 kB / 300.7 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09525, allocations: 50.41 MB / 351.1 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.2042/0.2995, allocations: 32.85 MB / 384 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0179/0.3174, allocations: 8.365 MB / 392.4 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006265/0.3237, allocations: 164.4 kB / 392.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004623/0.3284, allocations: 1.601 MB / 394.1 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01404/0.3425, allocations: 4.798 MB / 398.9 MB, free: 388 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002241/0.3447, allocations: 0.5003 MB / 399.4 MB, free: 48 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003813/0.3485, allocations: 1.959 MB / 401.4 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004689/0.3532, allocations: 3.691 MB / 405.1 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001354/0.3546, allocations: 0.9157 MB / 406 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.356, allocations: 1.155 MB / 407.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000286/0.3563, allocations: 123.6 kB / 407.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.3578, allocations: 0.8678 MB / 408.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.3589, allocations: 1.371 MB / 409.5 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006335/0.3596, allocations: 0.7376 MB / 410.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004778/0.3644, allocations: 4.771 MB / 415 MB, free: 4.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3644, allocations: 0 / 415 MB, free: 4.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.3644, allocations: 3.938 kB / 415 MB, free: 4.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001702/0.3646, allocations: 3.938 kB / 415 MB, free: 4.23 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.007632/0.3722, allocations: 3.537 MB / 418.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3723, allocations: 8.031 kB / 418.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007653/0.3799, allocations: 2.179 MB / 420.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005203/0.3852, allocations: 2.088 MB / 422.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.3854, allocations: 213.4 kB / 423 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001203/0.3866, allocations: 367.7 kB / 423.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.4023, allocations: 8.944 MB / 432.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.4024, allocations: 35.69 kB / 432.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003987/0.4028, allocations: 135.9 kB / 432.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002479/0.4053, allocations: 1.638 MB / 434.1 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01445/0.4198, allocations: 7.586 MB / 441.7 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04389/0.4637, allocations: 35.24 MB / 477 MB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008792/0.4726, allocations: 3.462 MB / 480.4 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01055/0.4832, allocations: 6.847 MB / 487.3 MB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.4832, allocations: 51.16 kB / 487.3 MB, free: 9.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=132): time 3.838e-06/0.4833, allocations: 0 / 487.3 MB, free: 9.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=139): time 0.02812/0.5114, allocations: 11.39 MB / 498.7 MB, free: 14.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001517/0.5129, allocations: 1.631 MB / 0.4886 GB, free: 12.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004828/0.5178, allocations: 3.649 MB / 0.4922 GB, free: 8.555 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003367/0.5182, allocations: 41.7 kB / 0.4922 GB, free: 8.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001829/0.52, allocations: 2.786 MB / 0.4949 GB, free: 5.684 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006867/0.5207, allocations: 0.5711 MB / 0.4955 GB, free: 5.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.5209, allocations: 104 kB / 0.4956 GB, free: 5.004 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003163/0.5212, allocations: 0.5452 MB / 0.4961 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002732/0.524, allocations: 1.927 MB / 0.498 GB, free: 2.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00511/0.5291, allocations: 5.345 MB / 0.5032 GB, free: 11.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004653/0.5338, allocations: 3.131 MB / 0.5063 GB, free: 8.309 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.414e-05/0.5339, allocations: 36 kB / 0.5063 GB, free: 8.273 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02014/0.554, allocations: 8.764 MB / 0.5149 GB, free: 15.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.362e-05/0.5541, allocations: 56 kB / 0.5149 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0106/0.5647, allocations: 3.48 MB / 0.5183 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01092/0.5757, allocations: 2.242 MB / 0.5205 GB, free: 9.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/0.5798, allocations: 1.251 MB / 0.5217 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0098/0.5896, allocations: 7.235 MB / 0.5288 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004046/0.5937, allocations: 375.3 kB / 0.5292 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005506/0.5943, allocations: 344 kB / 0.5295 GB, free: 224 kB / 446.1 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 (672): * Single equations (assignments): 663 * 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.1968/0.7911, allocations: 1.845 MB / 0.5313 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009688/0.792, allocations: 300.5 kB / 0.5316 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007664/0.7997, allocations: 2.771 MB / 0.5343 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005262/0.805, allocations: 2.354 MB / 0.5366 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.342e-05/0.8051, allocations: 4.062 kB / 0.5366 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-05/0.8051, allocations: 7.359 kB / 0.5366 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02004/0.8251, allocations: 7.852 MB / 0.5443 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.989e-05/0.8252, allocations: 2.938 kB / 0.5443 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.8267, allocations: 223.5 kB / 0.5445 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00397/0.8307, allocations: 1.058 MB / 0.5455 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002116/0.8309, allocations: 35.08 kB / 0.5456 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006528/0.8375, allocations: 5.049 MB / 0.5505 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001047/0.8385, allocations: 1.494 MB / 0.5519 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/0.8488, allocations: 5.085 MB / 0.5569 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.8499, allocations: 373.6 kB / 0.5573 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007132/0.8506, allocations: 36.53 kB / 0.5573 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002064/0.8527, allocations: 131.7 kB / 0.5574 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002902/0.853, allocations: 86.98 kB / 0.5575 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/0.8532, allocations: 41.58 kB / 0.5575 GB, free: 112 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003499/0.8567, allocations: 2.265 MB / 0.5598 GB, free: 111.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8567, allocations: 0 / 0.5598 GB, free: 111.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00474/0.8615, allocations: 0.9962 MB / 0.5607 GB, free: 111.8 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.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.0005312/0.862, allocations: 188.8 kB / 0.5609 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007887/0.8699, allocations: 5.22 MB / 0.566 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.8699, allocations: 0 / 0.566 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003274/0.8732, allocations: 2.011 MB / 0.568 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.8751, allocations: 356.1 kB / 0.5683 GB, free: 108.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.8887, allocations: 9.934 MB / 0.578 GB, free: 98.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002491/0.8912, allocations: 2.98 MB / 0.5809 GB, free: 95.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003466/0.8947, allocations: 1.702 MB / 0.5826 GB, free: 93.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004576/0.8952, allocations: 215.4 kB / 0.5828 GB, free: 93.42 MB / 446.1 MB Notification: Performance of SimCode: time 6.22e-07/0.8952, allocations: 0 / 0.5828 GB, free: 93.42 MB / 446.1 MB Notification: Performance of Templates: time 0.04807/0.9432, allocations: 34.41 MB / 0.6164 GB, free: 59.27 MB / 446.1 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/jenkins/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