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.001777/0.001777, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.002064/0.002064, allocations: 192 kB / 18.51 MB, free: 4.508 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.994/1.994, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002697/0.002697, allocations: 55.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.152, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.02236/0.1744, allocations: 10.45 MB / 337.8 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.1861, allocations: 3.825 MB / 341.7 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002414/0.1886, allocations: 59.81 kB / 341.7 MB, free: 5.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006981/0.1956, allocations: 2.313 MB / 344 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007649/0.2034, allocations: 1.685 MB / 345.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002791/0.2062, allocations: 0.6122 MB / 346.3 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008078/0.2143, allocations: 3.463 MB / 349.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007747/0.2221, allocations: 3.029 MB / 352.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004364/0.2265, allocations: 1.371 MB / 354.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004768/0.2314, allocations: 1.795 MB / 356 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001533/0.2329, allocations: 292 kB / 356.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004831/0.2378, allocations: 1.131 MB / 357.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003786/0.2416, allocations: 1.679 MB / 359.1 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006485/0.2482, allocations: 1.969 MB / 361.1 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.2633, allocations: 6.047 MB / 367.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.826e-05/0.2635, allocations: 0 / 367.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.178e-05/0.2635, allocations: 4 kB / 367.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004151/0.264, allocations: 3.938 kB / 367.1 MB, free: 12.45 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.02043/0.2844, allocations: 4.253 MB / 371.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.72e-05/0.2845, allocations: 8.031 kB / 371.4 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00266/0.2872, allocations: 0.6408 MB / 372 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01499/0.3022, allocations: 1.844 MB / 373.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009658/0.312, allocations: 2.501 MB / 376.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004307/0.3125, allocations: 213.4 kB / 376.6 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002698/0.3152, allocations: 371.6 kB / 376.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2536/0.5689, allocations: 8.863 MB / 385.8 MB, free: 46.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001421/0.5691, allocations: 38.52 kB / 385.8 MB, free: 46.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005038/0.5696, allocations: 136.4 kB / 386 MB, free: 46.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003063/0.5726, allocations: 1.638 MB / 387.6 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01652/0.5892, allocations: 7.501 MB / 395.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04249/0.6317, allocations: 35.15 MB / 430.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008782/0.6406, allocations: 3.458 MB / 433.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001878/0.6425, allocations: 1.444 MB / 435.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/0.6531, allocations: 6.772 MB / 441.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.557e-05/0.6532, allocations: 43.22 kB / 442 MB, free: 13.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=132): time 6.232e-06/0.6532, allocations: 4 kB / 442 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.03402/0.6873, allocations: 11.18 MB / 453.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001677/0.689, allocations: 1.706 MB / 454.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007829/0.6968, allocations: 3.568 MB / 458.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004437/0.6973, allocations: 41.7 kB / 458.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002618/0.7, allocations: 2.786 MB / 461.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/0.7011, allocations: 0.5672 MB / 461.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00313/0.7043, allocations: 1.103 MB / 462.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.7044, allocations: 313.2 kB / 463.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00359/0.708, allocations: 1.917 MB / 465.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006339/0.7144, allocations: 5.353 MB / 470.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/0.7247, allocations: 7.828 MB / 478.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001754/0.725, allocations: 36 kB / 478.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02283/0.7478, allocations: 8.437 MB / 486.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001781/0.7481, allocations: 57 kB / 486.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01117/0.7592, allocations: 3.129 MB / 490 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01076/0.7701, allocations: 1.868 MB / 491.9 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004891/0.775, allocations: 1.244 MB / 493.1 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009925/0.785, allocations: 6.05 MB / 499.1 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005395/0.7904, allocations: 383.4 kB / 499.5 MB, free: 120 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001337/0.7918, allocations: 336 kB / 499.8 MB, free: 15.79 MB / 398.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.004822/0.7967, allocations: 1.861 MB / 0.4899 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009871/0.7977, allocations: 308 kB / 0.4902 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007028/0.8047, allocations: 2.766 MB / 0.4929 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00525/0.81, allocations: 2.355 MB / 0.4952 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/0.81, allocations: 4 kB / 0.4952 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-05/0.8101, allocations: 11.97 kB / 0.4953 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/0.8288, allocations: 7.856 MB / 0.5029 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.025e-05/0.8289, allocations: 0 / 0.5029 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.8302, allocations: 223.7 kB / 0.5031 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003455/0.8336, allocations: 1.065 MB / 0.5042 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002718/0.8339, allocations: 35.97 kB / 0.5042 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006446/0.8404, allocations: 5.287 MB / 0.5094 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001178/0.8416, allocations: 1.553 MB / 0.5109 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009178/0.8508, allocations: 4.957 MB / 0.5157 GB, free: 2.848 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.8521, allocations: 365 kB / 0.5161 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008333/0.853, allocations: 31.98 kB / 0.5161 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002035/0.855, allocations: 119.8 kB / 0.5162 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003631/0.8554, allocations: 96.41 kB / 0.5163 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.8556, allocations: 43.97 kB / 0.5164 GB, free: 2.184 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005012/0.8606, allocations: 2.203 MB / 0.5185 GB, free: 15.99 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.8607, allocations: 0 / 0.5185 GB, free: 15.99 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006194/0.8669, allocations: 0.9582 MB / 0.5195 GB, free: 15.04 MB / 430.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.01142/0.8783, allocations: 5.606 MB / 0.5249 GB, free: 9.383 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01224/0.8907, allocations: 5.666 MB / 0.5305 GB, free: 3.688 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/0.8907, allocations: 0 / 0.5305 GB, free: 3.688 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004546/0.8953, allocations: 2.02 MB / 0.5324 GB, free: 1.594 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003938/0.8992, allocations: 404 kB / 0.5328 GB, free: 1.203 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3635/1.263, allocations: 46.95 MB / 0.5787 GB, free: 114.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005919/1.269, allocations: 2.906 MB / 0.5815 GB, free: 111.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.008204/1.277, allocations: 1.705 MB / 0.5832 GB, free: 110 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005069/1.282, allocations: 1.616 MB / 0.5848 GB, free: 108.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.763e-06/1.282, allocations: 0 / 0.5848 GB, free: 108.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1958/1.478, allocations: 66.44 MB / 0.6496 GB, free: 41.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.62/23.1, allocations: 16.3 kB / 0.6497 GB, free: 41.83 MB / 430.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches