Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_3_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_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 117.4 kB / 17.28 MB, free: 6.219 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.001682/0.001682, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 205.1 MB / 224.1 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 48.41 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08368/0.08478, allocations: 46.63 MB / 326.9 MB, free: 4.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.03373/0.1185, allocations: 38.41 MB / 365.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.1357, allocations: 8.434 MB / 373.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006701/0.1425, allocations: 167.6 kB / 373.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004343/0.1469, allocations: 2.22 MB / 376.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00369/0.1506, allocations: 1.569 MB / 377.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.1518, allocations: 0.5656 MB / 378.3 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1527/0.3045, allocations: 3.501 MB / 381.8 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00342/0.3079, allocations: 3.206 MB / 385 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002145/0.3101, allocations: 1.395 MB / 386.4 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002573/0.3127, allocations: 2.005 MB / 388.4 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006256/0.3133, allocations: 295.4 kB / 388.6 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.3153, allocations: 1.142 MB / 389.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.3166, allocations: 1.706 MB / 391.5 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001551/0.3182, allocations: 1.991 MB / 393.5 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005107/0.3233, allocations: 6.092 MB / 399.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3233, allocations: 3.375 kB / 399.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3234, allocations: 0 / 399.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000129/0.3235, allocations: 0 / 399.6 MB, free: 7.637 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.007048/0.3305, allocations: 4.257 MB / 403.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.3306, allocations: 10.12 kB / 403.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007234/0.3313, allocations: 0.6404 MB / 404.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005645/0.337, allocations: 1.842 MB / 406.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003791/0.3408, allocations: 2.487 MB / 408.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.3409, allocations: 230.2 kB / 409 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006875/0.3416, allocations: 365.3 kB / 409.4 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0131/0.3547, allocations: 8.868 MB / 418.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.971e-05/0.3548, allocations: 44.8 kB / 418.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003471/0.3552, allocations: 135.9 kB / 418.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00236/0.3576, allocations: 1.635 MB / 420.1 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01547/0.373, allocations: 7.508 MB / 427.6 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04878/0.4219, allocations: 35.16 MB / 462.7 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008249/0.4302, allocations: 3.443 MB / 466.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/0.4322, allocations: 1.441 MB / 467.6 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009145/0.4414, allocations: 6.78 MB / 474.4 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.4415, allocations: 57.77 kB / 474.5 MB, free: 2.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=132): time 4.949e-06/0.4415, allocations: 0 / 474.5 MB, free: 2.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.02768/0.4692, allocations: 11.17 MB / 485.6 MB, free: 7.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001295/0.4705, allocations: 1.705 MB / 487.3 MB, free: 5.344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004937/0.4755, allocations: 3.568 MB / 490.9 MB, free: 1.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004139/0.4759, allocations: 49.73 kB / 491 MB, free: 1.723 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/0.4778, allocations: 2.791 MB / 493.8 MB, free: 14.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008004/0.4786, allocations: 0.5633 MB / 494.3 MB, free: 14.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001393/0.48, allocations: 1.101 MB / 495.4 MB, free: 13.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.329e-05/0.4801, allocations: 301.1 kB / 495.7 MB, free: 12.97 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002553/0.4827, allocations: 1.912 MB / 497.6 MB, free: 11.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00454/0.4872, allocations: 5.357 MB / 0.4912 GB, free: 4.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008497/0.4957, allocations: 7.836 MB / 0.4988 GB, free: 10.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-05/0.4958, allocations: 36 kB / 0.4989 GB, free: 10.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02076/0.5166, allocations: 8.44 MB / 0.5071 GB, free: 3.219 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.5168, allocations: 56 kB / 0.5072 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009993/0.5268, allocations: 3.123 MB / 0.5102 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009206/0.5361, allocations: 1.86 MB / 0.512 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004067/0.5402, allocations: 1.252 MB / 0.5133 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008504/0.5487, allocations: 6.054 MB / 0.5192 GB, free: 6.602 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004738/0.5535, allocations: 378.5 kB / 0.5195 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/0.5546, allocations: 343.7 kB / 0.5199 GB, free: 5.902 MB / 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 (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.004396/0.5591, allocations: 1.854 MB / 0.5217 GB, free: 4.035 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000872/0.5599, allocations: 307.9 kB / 0.522 GB, free: 3.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006488/0.5664, allocations: 2.757 MB / 0.5247 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004685/0.5712, allocations: 2.363 MB / 0.527 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/0.5712, allocations: 4 kB / 0.527 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.73e-05/0.5712, allocations: 7.969 kB / 0.527 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01939/0.5906, allocations: 7.858 MB / 0.5347 GB, free: 6.613 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/0.5907, allocations: 0 / 0.5347 GB, free: 6.613 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.5919, allocations: 223.6 kB / 0.5349 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0032/0.5951, allocations: 1.057 MB / 0.5359 GB, free: 5.324 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002611/0.5954, allocations: 38.62 kB / 0.5359 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1729/0.7684, allocations: 5.273 MB / 0.5411 GB, free: 174.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009894/0.7694, allocations: 1.563 MB / 0.5426 GB, free: 172.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008454/0.7779, allocations: 4.967 MB / 0.5475 GB, free: 172.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.7792, allocations: 363 kB / 0.5478 GB, free: 172.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003701/0.7796, allocations: 29.38 kB / 0.5478 GB, free: 172.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.781, allocations: 123.8 kB / 0.548 GB, free: 172.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/0.7813, allocations: 89.61 kB / 0.548 GB, free: 172.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.7815, allocations: 40.16 kB / 0.5481 GB, free: 172.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004121/0.7856, allocations: 2.208 MB / 0.5502 GB, free: 171.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7856, allocations: 0 / 0.5502 GB, free: 171.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005708/0.7913, allocations: 0.9547 MB / 0.5512 GB, free: 171.7 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.008773/0.8001, allocations: 5.613 MB / 0.5566 GB, free: 169.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008545/0.8087, allocations: 5.666 MB / 0.5622 GB, free: 167.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.8087, allocations: 0 / 0.5622 GB, free: 167.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003114/0.8119, allocations: 2.014 MB / 0.5641 GB, free: 166.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/0.8144, allocations: 399.2 kB / 0.5645 GB, free: 166.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08052/0.895, allocations: 48.54 MB / 0.6119 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004335/0.8994, allocations: 2.909 MB / 0.6148 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00429/0.9037, allocations: 1.703 MB / 0.6164 GB, free: 114.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002833/0.9065, allocations: 1.608 MB / 0.618 GB, free: 112.4 MB / 462.1 MB Notification: Performance of SimCode: time 3.016e-06/0.9066, allocations: 11.94 kB / 0.618 GB, free: 112.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/1.01, allocations: 66.51 MB / 0.683 GB, free: 45.81 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/1.01, allocations: 259.1 kB / 0.6832 GB, free: 45.54 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.452/4.462, allocations: 0 / 0.6832 GB, free: 45.54 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches