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.001054/0.001054, allocations: 114.9 kB / 17.74 MB, free: 5.328 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.001042/0.001042, allocations: 184.5 kB / 18.67 MB, free: 4.406 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.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 47.94 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2769, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01113/0.2881, allocations: 10.46 MB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008454/0.2966, allocations: 3.824 MB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002007/0.2986, allocations: 63.81 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004556/0.3032, allocations: 2.305 MB / 418.1 MB, free: 8.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003991/0.3073, allocations: 1.696 MB / 419.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.3086, allocations: 0.6161 MB / 420.4 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004528/0.3132, allocations: 3.451 MB / 423.8 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003605/0.3168, allocations: 3.021 MB / 426.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.3188, allocations: 1.374 MB / 428.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002599/0.3215, allocations: 1.791 MB / 430 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008228/0.3223, allocations: 288 kB / 430.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.3247, allocations: 1.151 MB / 431.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001716/0.3264, allocations: 1.703 MB / 433.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001871/0.3283, allocations: 1.957 MB / 435.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006174/0.3345, allocations: 6.242 MB / 441.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3345, allocations: 0 / 441.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3345, allocations: 0 / 441.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001564/0.3347, allocations: 4 kB / 441.4 MB, free: 0.7578 MB / 350.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.008037/0.3427, allocations: 4.226 MB / 445.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.3428, allocations: 16.02 kB / 445.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005869/0.3487, allocations: 1.825 MB / 447.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003793/0.3525, allocations: 2.068 MB / 449.5 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.3527, allocations: 209.4 kB / 449.7 MB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008582/0.3536, allocations: 371.6 kB / 450.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01454/0.3681, allocations: 8.858 MB / 458.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001881/0.3683, allocations: 43.59 kB / 459 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009449/0.3693, allocations: 131.9 kB / 459.1 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003803/0.3731, allocations: 1.649 MB / 460.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02146/0.3946, allocations: 7.486 MB / 468.2 MB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05398/0.4487, allocations: 35.02 MB / 0.4914 GB, free: 1.043 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007835/0.4565, allocations: 3.452 MB / 0.4948 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001868/0.4584, allocations: 1.444 MB / 0.4962 GB, free: 11.99 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008905/0.4674, allocations: 6.796 MB / 0.5029 GB, free: 4.875 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.4674, allocations: 55.2 kB / 0.5029 GB, free: 4.812 MB / 430.1 MB Notification: Performance of pre-optimization done (n=132): time 5.159e-06/0.4674, allocations: 0 / 0.5029 GB, free: 4.812 MB / 430.1 MB Notification: Performance of matching and sorting (n=139): time 0.02443/0.4919, allocations: 11.11 MB / 0.5138 GB, free: 9.535 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00137/0.4933, allocations: 1.706 MB / 0.5154 GB, free: 7.648 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004553/0.4979, allocations: 3.528 MB / 0.5189 GB, free: 4.121 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003341/0.4982, allocations: 49.69 kB / 0.5189 GB, free: 4.066 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/0.4999, allocations: 2.786 MB / 0.5216 GB, free: 1.242 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006418/0.5006, allocations: 0.5789 MB / 0.5222 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001265/0.5019, allocations: 1.103 MB / 0.5233 GB, free: 15.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.296e-05/0.502, allocations: 301.1 kB / 0.5236 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/0.5045, allocations: 1.92 MB / 0.5254 GB, free: 13.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004491/0.509, allocations: 5.365 MB / 0.5307 GB, free: 6.223 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2373/0.7464, allocations: 7.826 MB / 0.5383 GB, free: 123.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001414/0.7466, allocations: 35.19 kB / 0.5384 GB, free: 123.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01862/0.7652, allocations: 8.755 MB / 0.5469 GB, free: 121.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.136e-05/0.7653, allocations: 65.91 kB / 0.547 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008905/0.7742, allocations: 3.435 MB / 0.5503 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009065/0.7833, allocations: 2.231 MB / 0.5525 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003495/0.7868, allocations: 1.249 MB / 0.5537 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007796/0.7947, allocations: 7.41 MB / 0.561 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004379/0.7991, allocations: 380.5 kB / 0.5613 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006117/0.7997, allocations: 346.8 kB / 0.5617 GB, free: 111.5 MB / 462.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 (676): * Single equations (assignments): 667 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002343/0.8021, allocations: 1.858 MB / 0.5635 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004681/0.8025, allocations: 299.8 kB / 0.5638 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004376/0.8069, allocations: 2.76 MB / 0.5665 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003526/0.8105, allocations: 2.359 MB / 0.5688 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.8105, allocations: 0.875 kB / 0.5688 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.8105, allocations: 11.97 kB / 0.5688 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01064/0.8211, allocations: 7.831 MB / 0.5764 GB, free: 96.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.8212, allocations: 4 kB / 0.5764 GB, free: 96.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009354/0.8221, allocations: 227.6 kB / 0.5766 GB, free: 96.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002538/0.8247, allocations: 1.053 MB / 0.5777 GB, free: 95.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.8248, allocations: 43.09 kB / 0.5777 GB, free: 95.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004121/0.8289, allocations: 5.268 MB / 0.5828 GB, free: 89.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006699/0.8296, allocations: 1.568 MB / 0.5844 GB, free: 87.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006059/0.8357, allocations: 4.96 MB / 0.5892 GB, free: 83.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007485/0.8364, allocations: 372.9 kB / 0.5896 GB, free: 82.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/0.8368, allocations: 27.98 kB / 0.5896 GB, free: 82.74 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.838, allocations: 123.8 kB / 0.5897 GB, free: 82.62 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.8382, allocations: 84.47 kB / 0.5898 GB, free: 82.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.755e-05/0.8383, allocations: 51.48 kB / 0.5899 GB, free: 82.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002389/0.8407, allocations: 2.179 MB / 0.592 GB, free: 80.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8407, allocations: 0 / 0.592 GB, free: 80.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003678/0.8444, allocations: 0.9723 MB / 0.5929 GB, free: 79.35 MB / 462.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 (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003528/0.8448, allocations: 171.5 kB / 0.5931 GB, free: 79.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006992/0.8518, allocations: 5.241 MB / 0.5982 GB, free: 73.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.8518, allocations: 8.062 kB / 0.5982 GB, free: 73.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002911/0.8547, allocations: 2.024 MB / 0.6002 GB, free: 71.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/0.8568, allocations: 400.5 kB / 0.6006 GB, free: 71.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.8682, allocations: 8.809 MB / 0.6092 GB, free: 62.56 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002104/0.8704, allocations: 2.898 MB / 0.612 GB, free: 59.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007571/0.8711, allocations: 259.4 kB / 0.6123 GB, free: 59.38 MB / 462.1 MB Notification: Performance of SimCode: time 2.124e-06/0.8711, allocations: 0 / 0.6123 GB, free: 59.38 MB / 462.1 MB Notification: Performance of Templates: time 0.3305/1.202, allocations: 118.7 MB / 0.7282 GB, free: 179.1 MB / 0.5137 GB 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches