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.001641/0.001641, allocations: 114 kB / 17.06 MB, free: 6.016 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.001791/0.001791, allocations: 191 kB / 18 MB, free: 5.098 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2637, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01115/0.2749, allocations: 10.46 MB / 410.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007477/0.2824, allocations: 3.82 MB / 414.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.2841, allocations: 63.81 kB / 414.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004644/0.2888, allocations: 2.305 MB / 416.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004464/0.2933, allocations: 1.73 MB / 418.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.2948, allocations: 0.6083 MB / 419.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004764/0.2996, allocations: 3.461 MB / 422.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003875/0.3035, allocations: 3.024 MB / 425.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002156/0.3057, allocations: 1.371 MB / 427.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00267/0.3084, allocations: 1.795 MB / 428.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009847/0.3094, allocations: 292 kB / 429.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002756/0.3121, allocations: 1.151 MB / 430.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002139/0.3143, allocations: 1.699 MB / 432 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003238/0.3176, allocations: 1.965 MB / 434 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007945/0.3255, allocations: 6.268 MB / 440.2 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.3256, allocations: 4 kB / 440.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3256, allocations: 4 kB / 440.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002284/0.3258, allocations: 0 / 440.3 MB, free: 0.6094 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.01031/0.3361, allocations: 4.356 MB / 444.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3362, allocations: 8.031 kB / 444.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001585/0.3378, allocations: 0.6408 MB / 445.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00737/0.3452, allocations: 1.87 MB / 447.1 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00581/0.3511, allocations: 2.385 MB / 449.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/0.3513, allocations: 209.4 kB / 449.7 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001581/0.3529, allocations: 363.7 kB / 450.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01599/0.3689, allocations: 8.881 MB / 459 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001268/0.3691, allocations: 39.69 kB / 459 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006141/0.3697, allocations: 139.9 kB / 459.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002454/0.3722, allocations: 1.637 MB / 460.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01407/0.3863, allocations: 7.502 MB / 468.3 MB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04539/0.4317, allocations: 35.04 MB / 0.4915 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00846/0.4402, allocations: 3.444 MB / 0.4949 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/0.4422, allocations: 1.44 MB / 0.4963 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009648/0.4519, allocations: 6.79 MB / 0.5029 GB, free: 3.562 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.452, allocations: 55.16 kB / 0.503 GB, free: 3.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=132): time 4.268e-06/0.452, allocations: 0 / 0.503 GB, free: 3.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=139): time 0.02754/0.4795, allocations: 11.3 MB / 0.514 GB, free: 8.055 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001434/0.481, allocations: 1.715 MB / 0.5157 GB, free: 6.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005725/0.4868, allocations: 3.549 MB / 0.5191 GB, free: 2.613 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00031/0.4871, allocations: 41.7 kB / 0.5192 GB, free: 2.566 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001994/0.4891, allocations: 2.912 MB / 0.522 GB, free: 15.63 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007747/0.4899, allocations: 0.5932 MB / 0.5226 GB, free: 15.03 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001876/0.4918, allocations: 1.111 MB / 0.5237 GB, free: 13.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.429e-05/0.4919, allocations: 309.2 kB / 0.524 GB, free: 13.61 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002812/0.4947, allocations: 1.912 MB / 0.5259 GB, free: 11.69 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005092/0.4998, allocations: 5.349 MB / 0.5311 GB, free: 4.605 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2055/0.7053, allocations: 7.827 MB / 0.5387 GB, free: 122.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001308/0.7055, allocations: 35.34 kB / 0.5388 GB, free: 122.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01779/0.7233, allocations: 8.448 MB / 0.547 GB, free: 119.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.946e-05/0.7234, allocations: 62.34 kB / 0.5471 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008582/0.732, allocations: 3.12 MB / 0.5501 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008611/0.7407, allocations: 1.863 MB / 0.5519 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003453/0.7441, allocations: 1.242 MB / 0.5531 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006811/0.751, allocations: 6.048 MB / 0.559 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004089/0.7551, allocations: 384.7 kB / 0.5594 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005835/0.7557, allocations: 340 kB / 0.5597 GB, free: 112.1 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.002217/0.7579, allocations: 1.846 MB / 0.5615 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004488/0.7584, allocations: 321.7 kB / 0.5619 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004626/0.763, allocations: 2.764 MB / 0.5645 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003747/0.7667, allocations: 2.359 MB / 0.5669 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.7668, allocations: 4 kB / 0.5669 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.7668, allocations: 7.984 kB / 0.5669 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/0.7775, allocations: 7.839 MB / 0.5745 GB, free: 97.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/0.7776, allocations: 0 / 0.5745 GB, free: 97.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000934/0.7785, allocations: 232.9 kB / 0.5747 GB, free: 96.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002675/0.7812, allocations: 1.054 MB / 0.5758 GB, free: 95.86 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.7813, allocations: 35.98 kB / 0.5758 GB, free: 95.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004373/0.7857, allocations: 5.271 MB / 0.581 GB, free: 90.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007752/0.7865, allocations: 1.567 MB / 0.5825 GB, free: 88.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006698/0.7932, allocations: 4.996 MB / 0.5874 GB, free: 83.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007357/0.794, allocations: 375.3 kB / 0.5877 GB, free: 83.33 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007497/0.7947, allocations: 32 kB / 0.5878 GB, free: 83.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.7963, allocations: 119.8 kB / 0.5879 GB, free: 83.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002459/0.7966, allocations: 84.52 kB / 0.5879 GB, free: 83.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.7967, allocations: 39.98 kB / 0.588 GB, free: 83.06 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003014/0.7997, allocations: 2.195 MB / 0.5901 GB, free: 80.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7997, allocations: 0 / 0.5901 GB, free: 80.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003966/0.8037, allocations: 0.9577 MB / 0.5911 GB, free: 79.93 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.006395/0.8101, allocations: 5.639 MB / 0.5966 GB, free: 74.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006948/0.8171, allocations: 5.188 MB / 0.6016 GB, free: 69.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.8171, allocations: 0 / 0.6016 GB, free: 69.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003058/0.8202, allocations: 2.027 MB / 0.6036 GB, free: 66.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/0.8224, allocations: 404 kB / 0.604 GB, free: 66.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06072/0.8831, allocations: 42.52 MB / 0.6455 GB, free: 18.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003273/0.8864, allocations: 2.904 MB / 0.6484 GB, free: 15.81 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003554/0.89, allocations: 1.699 MB / 0.65 GB, free: 14.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001836/0.8918, allocations: 1.604 MB / 0.6516 GB, free: 12.5 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/0.8919, allocations: 0 / 0.6516 GB, free: 12.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1053/0.9971, allocations: 62.92 MB / 0.713 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.05/21.04, allocations: 4 kB / 0.713 GB, free: 14.02 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