Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008601/0.0008601, allocations: 175.2 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.131/1.131, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007239/0.000724, allocations: 88.89 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002755, allocations: 16 kB / 327.6 MB, free: 15.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1768, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.02063/0.1974, allocations: 34.77 MB / 410 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.2094, allocations: 8.05 MB / 418 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004581/0.214, allocations: 163.6 kB / 418.2 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003323/0.2174, allocations: 1.765 MB / 419.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00967/0.2271, allocations: 5.389 MB / 425.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.2288, allocations: 0.5383 MB / 425.9 MB, free: 13.86 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004184/0.233, allocations: 3.996 MB / 429.9 MB, free: 9.855 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004764/0.2378, allocations: 3.943 MB / 433.8 MB, free: 5.832 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001645/0.2395, allocations: 1.113 MB / 434.9 MB, free: 4.715 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002031/0.2415, allocations: 1.659 MB / 436.6 MB, free: 3.051 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005103/0.242, allocations: 124 kB / 436.7 MB, free: 2.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001827/0.2439, allocations: 1.01 MB / 437.7 MB, free: 1.918 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.2453, allocations: 1.484 MB / 439.2 MB, free: 440 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001943/0.2473, allocations: 1.66 MB / 440.9 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004047/0.2513, allocations: 4.789 MB / 445.6 MB, free: 9.949 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2513, allocations: 0 / 445.6 MB, free: 9.949 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2514, allocations: 0 / 445.6 MB, free: 9.949 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.326e-05/0.2514, allocations: 0 / 445.6 MB, free: 9.949 MB / 330.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.005367/0.2568, allocations: 3.489 MB / 449.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2569, allocations: 12.03 kB / 449.1 MB, free: 6.383 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006568/0.2575, allocations: 0.6408 MB / 449.8 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005668/0.2632, allocations: 1.887 MB / 451.7 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/0.2667, allocations: 2.501 MB / 454.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.2668, allocations: 209.4 kB / 454.4 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006632/0.2675, allocations: 371.6 kB / 454.7 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.2788, allocations: 8.858 MB / 463.6 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.932e-05/0.2789, allocations: 43.59 kB / 463.6 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003015/0.2792, allocations: 135.8 kB / 463.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002128/0.2813, allocations: 1.637 MB / 465.4 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01148/0.2928, allocations: 7.474 MB / 472.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1776/0.4704, allocations: 35.15 MB / 0.4961 GB, free: 86.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007382/0.4778, allocations: 3.44 MB / 0.4995 GB, free: 86.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.4794, allocations: 1.441 MB / 0.5009 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007479/0.4869, allocations: 6.778 MB / 0.5075 GB, free: 82.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.4869, allocations: 47.62 kB / 0.5076 GB, free: 82.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.326e-06/0.487, allocations: 3.938 kB / 0.5076 GB, free: 82.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.02081/0.5078, allocations: 11.18 MB / 0.5185 GB, free: 76.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008529/0.5087, allocations: 1.622 MB / 0.5201 GB, free: 75.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003343/0.512, allocations: 3.547 MB / 0.5235 GB, free: 72.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.49e-05/0.5121, allocations: 41.7 kB / 0.5236 GB, free: 71.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.5131, allocations: 2.791 MB / 0.5263 GB, free: 69.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/0.5135, allocations: 0.5663 MB / 0.5268 GB, free: 68.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/0.5137, allocations: 105.1 kB / 0.5269 GB, free: 68.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.5139, allocations: 0.5373 MB / 0.5275 GB, free: 67.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/0.5158, allocations: 1.892 MB / 0.5293 GB, free: 66.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003176/0.519, allocations: 5.334 MB / 0.5345 GB, free: 59.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005342/0.5243, allocations: 7.803 MB / 0.5421 GB, free: 49.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.634e-05/0.5244, allocations: 40 kB / 0.5422 GB, free: 49.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01421/0.5386, allocations: 8.393 MB / 0.5504 GB, free: 41.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.546e-05/0.5387, allocations: 60 kB / 0.5504 GB, free: 41.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008052/0.5467, allocations: 3.118 MB / 0.5535 GB, free: 38.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008088/0.5548, allocations: 1.856 MB / 0.5553 GB, free: 36.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002976/0.5578, allocations: 1.248 MB / 0.5565 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006065/0.5639, allocations: 5.73 MB / 0.5621 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/0.5672, allocations: 384.2 kB / 0.5625 GB, free: 28.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000312/0.5675, allocations: 340 kB / 0.5628 GB, free: 28.34 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 (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.001904/0.5694, allocations: 1.857 MB / 0.5646 GB, free: 26.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003238/0.5698, allocations: 304 kB / 0.5649 GB, free: 26.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004285/0.5741, allocations: 2.776 MB / 0.5676 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003595/0.5777, allocations: 2.361 MB / 0.5699 GB, free: 21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.5777, allocations: 0 / 0.5699 GB, free: 21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.5777, allocations: 7.984 kB / 0.5699 GB, free: 20.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009741/0.5874, allocations: 7.84 MB / 0.5776 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.5875, allocations: 4 kB / 0.5776 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008892/0.5884, allocations: 223.6 kB / 0.5778 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002614/0.591, allocations: 1.057 MB / 0.5788 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.712e-05/0.5911, allocations: 31.98 kB / 0.5789 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003932/0.595, allocations: 4.96 MB / 0.5837 GB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006087/0.5957, allocations: 1.485 MB / 0.5852 GB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005852/0.6015, allocations: 4.95 MB / 0.59 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006464/0.6022, allocations: 376.9 kB / 0.5904 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.6025, allocations: 30.62 kB / 0.5904 GB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.6037, allocations: 127.8 kB / 0.5905 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.604, allocations: 81.38 kB / 0.5906 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.6041, allocations: 43.98 kB / 0.5906 GB, free: 15.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002637/0.6068, allocations: 2.191 MB / 0.5928 GB, free: 13.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6068, allocations: 4 kB / 0.5928 GB, free: 13.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003453/0.6102, allocations: 0.9498 MB / 0.5937 GB, free: 12.1 MB / 394.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.007117/0.6174, allocations: 5.6 MB / 0.5992 GB, free: 6.449 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007725/0.6251, allocations: 5.193 MB / 0.6042 GB, free: 1.211 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6251, allocations: 0 / 0.6042 GB, free: 1.211 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003346/0.6285, allocations: 2.003 MB / 0.6062 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002488/0.631, allocations: 379.9 kB / 0.6066 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0453/0.6763, allocations: 31.63 MB / 0.6374 GB, free: 11.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/0.6789, allocations: 2.913 MB / 0.6403 GB, free: 9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001889/0.6808, allocations: 1.655 MB / 0.6419 GB, free: 7.344 MB / 442.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6808, allocations: 0 / 0.6419 GB, free: 7.344 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.1/7.781, allocations: 129.9 MB / 0.7688 GB, free: 81.48 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches