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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_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.001853/0.001854, allocations: 111.1 kB / 17.06 MB, free: 5.996 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.002099/0.002099, allocations: 193.4 kB / 18 MB, free: 5.074 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.422/1.422, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2721, allocations: 49.43 MB / 400.2 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01357/0.2858, allocations: 10.46 MB / 410.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008321/0.2941, allocations: 3.816 MB / 414.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/0.2957, allocations: 59.81 kB / 414.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004719/0.3004, allocations: 2.317 MB / 416.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005033/0.3055, allocations: 1.687 MB / 418.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001712/0.3072, allocations: 0.6044 MB / 419.2 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005799/0.3131, allocations: 3.469 MB / 422.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005432/0.3185, allocations: 3.02 MB / 425.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.3215, allocations: 1.367 MB / 427 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003309/0.3248, allocations: 1.787 MB / 428.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.3261, allocations: 292 kB / 429.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003556/0.3296, allocations: 1.147 MB / 430.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002683/0.3323, allocations: 1.679 MB / 431.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002605/0.3349, allocations: 1.965 MB / 433.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007623/0.3426, allocations: 6.276 MB / 440.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3426, allocations: 0 / 440.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3426, allocations: 0 / 440.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001266/0.3428, allocations: 0 / 440.2 MB, free: 0.8047 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.008246/0.351, allocations: 4.344 MB / 444.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.3511, allocations: 12.03 kB / 444.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008485/0.3519, allocations: 0.6369 MB / 445.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006681/0.3586, allocations: 1.874 MB / 447 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00516/0.3638, allocations: 2.385 MB / 449.4 MB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.3641, allocations: 209.4 kB / 449.6 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001098/0.3652, allocations: 363.8 kB / 450 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01708/0.3823, allocations: 8.873 MB / 458.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001125/0.3824, allocations: 39.67 kB / 458.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003821/0.3828, allocations: 139.9 kB / 459 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00265/0.3855, allocations: 1.641 MB / 460.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/0.4007, allocations: 7.486 MB / 468.2 MB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04902/0.4498, allocations: 35.06 MB / 0.4914 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009485/0.4593, allocations: 3.452 MB / 0.4948 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002286/0.4616, allocations: 1.436 MB / 0.4962 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01024/0.4719, allocations: 6.797 MB / 0.5028 GB, free: 3.754 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/0.472, allocations: 47.2 kB / 0.5029 GB, free: 3.699 MB / 430.1 MB Notification: Performance of pre-optimization done (n=132): time 4.228e-06/0.472, allocations: 0 / 0.5029 GB, free: 3.699 MB / 430.1 MB Notification: Performance of matching and sorting (n=139): time 0.02815/0.5002, allocations: 11.31 MB / 0.5139 GB, free: 8.242 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00158/0.5018, allocations: 1.703 MB / 0.5156 GB, free: 6.359 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/0.5071, allocations: 3.545 MB / 0.5191 GB, free: 2.816 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003245/0.5075, allocations: 53.72 kB / 0.5191 GB, free: 2.758 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002465/0.5099, allocations: 2.908 MB / 0.522 GB, free: 15.82 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008765/0.5108, allocations: 0.5893 MB / 0.5225 GB, free: 15.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001656/0.5125, allocations: 1.107 MB / 0.5236 GB, free: 14.11 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.5127, allocations: 301.1 kB / 0.5239 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003035/0.5157, allocations: 1.916 MB / 0.5258 GB, free: 11.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006162/0.5219, allocations: 5.353 MB / 0.531 GB, free: 4.805 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2329/0.7548, allocations: 7.829 MB / 0.5386 GB, free: 122.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001367/0.755, allocations: 34.81 kB / 0.5387 GB, free: 122.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.019/0.774, allocations: 8.457 MB / 0.5469 GB, free: 120.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.399e-05/0.7741, allocations: 60.53 kB / 0.547 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00847/0.7826, allocations: 3.125 MB / 0.55 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008592/0.7912, allocations: 1.858 MB / 0.5519 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003658/0.7949, allocations: 1.246 MB / 0.5531 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006774/0.8017, allocations: 6.044 MB / 0.559 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004314/0.8061, allocations: 381.2 kB / 0.5593 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007213/0.8068, allocations: 344.7 kB / 0.5597 GB, free: 112.4 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.002677/0.8095, allocations: 1.847 MB / 0.5615 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005439/0.8101, allocations: 320.3 kB / 0.5618 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004572/0.8146, allocations: 2.767 MB / 0.5645 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00369/0.8184, allocations: 2.355 MB / 0.5668 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.8184, allocations: 4 kB / 0.5668 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.8184, allocations: 7.969 kB / 0.5668 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/0.8297, allocations: 7.836 MB / 0.5744 GB, free: 97.42 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.8297, allocations: 2.219 kB / 0.5744 GB, free: 97.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009411/0.8307, allocations: 239.7 kB / 0.5747 GB, free: 97.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002625/0.8333, allocations: 1.049 MB / 0.5757 GB, free: 96.12 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.8334, allocations: 39.97 kB / 0.5757 GB, free: 96.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004196/0.8376, allocations: 5.275 MB / 0.5809 GB, free: 90.56 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006765/0.8383, allocations: 1.559 MB / 0.5824 GB, free: 88.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005993/0.8443, allocations: 4.987 MB / 0.5873 GB, free: 83.97 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007697/0.8451, allocations: 379.9 kB / 0.5876 GB, free: 83.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003223/0.8455, allocations: 27.98 kB / 0.5877 GB, free: 83.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.8467, allocations: 127.8 kB / 0.5878 GB, free: 83.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.8469, allocations: 91.8 kB / 0.5879 GB, free: 83.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.847, allocations: 46.23 kB / 0.5879 GB, free: 83.31 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00248/0.8495, allocations: 2.187 MB / 0.5901 GB, free: 81.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8495, allocations: 0 / 0.5901 GB, free: 81.13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003757/0.8533, allocations: 0.955 MB / 0.591 GB, free: 80.18 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.006262/0.8596, allocations: 5.629 MB / 0.5965 GB, free: 74.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007331/0.8669, allocations: 5.196 MB / 0.6016 GB, free: 69.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.867, allocations: 8.062 kB / 0.6016 GB, free: 69.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003041/0.87, allocations: 2.022 MB / 0.6035 GB, free: 67.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.8723, allocations: 393.2 kB / 0.6039 GB, free: 66.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06138/0.9337, allocations: 42.53 MB / 0.6455 GB, free: 18.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003239/0.937, allocations: 2.904 MB / 0.6483 GB, free: 16.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003243/0.9403, allocations: 1.695 MB / 0.6499 GB, free: 14.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001802/0.9421, allocations: 1.604 MB / 0.6515 GB, free: 12.75 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.9421, allocations: 0 / 0.6515 GB, free: 12.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1224/1.064, allocations: 62.91 MB / 0.713 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.82/21.88, allocations: 10.81 kB / 0.713 GB, free: 14.27 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > 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.csv","/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