Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001343/0.001343, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003058/0.003058, allocations: 63.89 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3106, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01272/0.3233, allocations: 10.43 MB / 419.2 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008164/0.3316, allocations: 3.828 MB / 423 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.3334, allocations: 59.81 kB / 423.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004963/0.3385, allocations: 2.309 MB / 425.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004693/0.3432, allocations: 1.653 MB / 427.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.3449, allocations: 0.6122 MB / 427.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00565/0.3506, allocations: 3.487 MB / 431.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004334/0.355, allocations: 3.02 MB / 434.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002954/0.3579, allocations: 1.363 MB / 435.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003554/0.3615, allocations: 1.783 MB / 437.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.3626, allocations: 292 kB / 437.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002857/0.3655, allocations: 1.12 MB / 438.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002502/0.3681, allocations: 1.656 MB / 440.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003445/0.3715, allocations: 1.95 MB / 442.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.3816, allocations: 6.217 MB / 448.5 MB, free: 9.555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.3817, allocations: 0 / 448.5 MB, free: 9.555 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3817, allocations: 0 / 448.5 MB, free: 9.555 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002835/0.382, allocations: 0 / 448.5 MB, free: 9.555 MB / 366.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.01195/0.3939, allocations: 4.329 MB / 452.9 MB, free: 5.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/0.394, allocations: 12.03 kB / 452.9 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001905/0.3959, allocations: 0.6369 MB / 453.5 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007369/0.4033, allocations: 1.925 MB / 455.4 MB, free: 2.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005465/0.4088, allocations: 2.276 MB / 457.7 MB, free: 232 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002511/0.4091, allocations: 209.4 kB / 457.9 MB, free: 20 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001648/0.4108, allocations: 375.7 kB / 458.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02039/0.4312, allocations: 8.901 MB / 467.2 MB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002182/0.4315, allocations: 39.64 kB / 467.2 MB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001266/0.4328, allocations: 135.9 kB / 467.4 MB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002989/0.4358, allocations: 1.645 MB / 469 MB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01672/0.4525, allocations: 7.525 MB / 476.5 MB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05196/0.5045, allocations: 35.04 MB / 0.4996 GB, free: 8.688 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009262/0.5139, allocations: 3.475 MB / 0.503 GB, free: 5.062 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002375/0.5163, allocations: 1.444 MB / 0.5044 GB, free: 3.609 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0131/0.5294, allocations: 6.868 MB / 0.5111 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.001e-05/0.5295, allocations: 47.2 kB / 0.5111 GB, free: 12.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=132): time 5.169e-06/0.5296, allocations: 0 / 0.5111 GB, free: 12.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=139): time 0.0327/0.5623, allocations: 11.36 MB / 0.5222 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001805/0.5641, allocations: 1.71 MB / 0.5239 GB, free: 14.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007009/0.5712, allocations: 3.544 MB / 0.5274 GB, free: 11.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003606/0.5716, allocations: 41.7 kB / 0.5274 GB, free: 11.36 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0027/0.5743, allocations: 2.9 MB / 0.5302 GB, free: 8.434 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009876/0.5753, allocations: 0.5894 MB / 0.5308 GB, free: 7.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002798/0.5781, allocations: 1.107 MB / 0.5319 GB, free: 6.723 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.5783, allocations: 313.1 kB / 0.5322 GB, free: 6.414 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003642/0.582, allocations: 1.916 MB / 0.5341 GB, free: 4.492 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2827/0.8647, allocations: 5.369 MB / 0.5393 GB, free: 119.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01037/0.8752, allocations: 7.847 MB / 0.547 GB, free: 113.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002619/0.8755, allocations: 35.44 kB / 0.547 GB, free: 113.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02026/0.8958, allocations: 8.535 MB / 0.5553 GB, free: 110.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.8959, allocations: 65.59 kB / 0.5554 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008893/0.9048, allocations: 3.21 MB / 0.5585 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008544/0.9134, allocations: 1.943 MB / 0.5604 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003556/0.917, allocations: 1.252 MB / 0.5617 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006615/0.9237, allocations: 6.076 MB / 0.5676 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004244/0.9279, allocations: 388 kB / 0.568 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008576/0.9288, allocations: 340 kB / 0.5683 GB, free: 100.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 (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.002765/0.9316, allocations: 1.852 MB / 0.5701 GB, free: 98.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005521/0.9322, allocations: 316.6 kB / 0.5704 GB, free: 98.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006299/0.9328, allocations: 409.6 kB / 0.5708 GB, free: 98.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003859/0.9367, allocations: 2.379 MB / 0.5731 GB, free: 95.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.9367, allocations: 8 kB / 0.5731 GB, free: 95.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.9367, allocations: 3.984 kB / 0.5731 GB, free: 95.76 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.9482, allocations: 7.85 MB / 0.5808 GB, free: 87.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.9483, allocations: 4 kB / 0.5808 GB, free: 87.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009865/0.9493, allocations: 231.6 kB / 0.581 GB, free: 87.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002629/0.9519, allocations: 1.057 MB / 0.582 GB, free: 86.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001693/0.9521, allocations: 31.98 kB / 0.5821 GB, free: 86.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004322/0.9564, allocations: 5.279 MB / 0.5872 GB, free: 81.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007375/0.9572, allocations: 1.573 MB / 0.5888 GB, free: 79.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006582/0.9638, allocations: 5.002 MB / 0.5937 GB, free: 74.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007865/0.9646, allocations: 381.9 kB / 0.594 GB, free: 74.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004287/0.9651, allocations: 28.86 kB / 0.594 GB, free: 73.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.9664, allocations: 127.8 kB / 0.5942 GB, free: 73.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/0.9667, allocations: 92.47 kB / 0.5943 GB, free: 73.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.9668, allocations: 47.8 kB / 0.5943 GB, free: 73.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002651/0.9694, allocations: 2.179 MB / 0.5964 GB, free: 71.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9694, allocations: 0 / 0.5964 GB, free: 71.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004634/0.9741, allocations: 0.9445 MB / 0.5974 GB, free: 70.62 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.006819/0.9809, allocations: 5.652 MB / 0.6029 GB, free: 64.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007877/0.9888, allocations: 5.214 MB / 0.608 GB, free: 59.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.9889, allocations: 0 / 0.608 GB, free: 59.67 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003195/0.9921, allocations: 2.037 MB / 0.61 GB, free: 57.57 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.9948, allocations: 398.2 kB / 0.6103 GB, free: 57.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06844/1.063, allocations: 42.7 MB / 0.652 GB, free: 9.203 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00338/1.067, allocations: 2.909 MB / 0.6549 GB, free: 6.262 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003387/1.07, allocations: 1.687 MB / 0.6565 GB, free: 4.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002014/1.072, allocations: 1.601 MB / 0.6581 GB, free: 2.969 MB / 462.1 MB Notification: Performance of SimCode: time 1.302e-06/1.072, allocations: 0 / 0.6581 GB, free: 2.969 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1541/1.226, allocations: 62.79 MB / 0.7194 GB, free: 4.547 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.16/23.38, allocations: 11.02 kB / 0.7194 GB, free: 4.539 MB / 0.5137 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches