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.001229/0.001229, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.00131/0.00131, allocations: 194.9 kB / 18 MB, free: 5.172 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 48.08 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.289, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01157/0.3006, allocations: 10.47 MB / 410.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007449/0.3081, allocations: 3.816 MB / 414.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001623/0.3098, allocations: 63.81 kB / 414.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004301/0.3141, allocations: 2.309 MB / 416.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.3186, allocations: 1.732 MB / 418.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001502/0.3201, allocations: 0.6122 MB / 419.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00532/0.3254, allocations: 3.461 MB / 422.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004679/0.3301, allocations: 3.016 MB / 425.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.3327, allocations: 1.367 MB / 427.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002939/0.3356, allocations: 1.795 MB / 428.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009775/0.3366, allocations: 292 kB / 429.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002659/0.3393, allocations: 1.151 MB / 430.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002193/0.3415, allocations: 1.703 MB / 432 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002921/0.3445, allocations: 1.961 MB / 434 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007857/0.3523, allocations: 6.276 MB / 440.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.3524, allocations: 0 / 440.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3524, allocations: 0 / 440.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002234/0.3526, allocations: 7.984 kB / 440.3 MB, free: 0.6133 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.00917/0.3618, allocations: 4.348 MB / 444.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.3619, allocations: 12.03 kB / 444.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00101/0.3629, allocations: 0.6369 MB / 445.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006455/0.3694, allocations: 1.87 MB / 447.1 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005199/0.3746, allocations: 2.389 MB / 449.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.3748, allocations: 209.4 kB / 449.7 MB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/0.3759, allocations: 363.8 kB / 450.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/0.3914, allocations: 8.881 MB / 459 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001089/0.3916, allocations: 31.69 kB / 459 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004181/0.392, allocations: 143.9 kB / 459.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002427/0.3944, allocations: 1.633 MB / 460.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.4085, allocations: 7.506 MB / 468.3 MB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04355/0.4521, allocations: 35.04 MB / 0.4915 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008358/0.4605, allocations: 3.452 MB / 0.4949 GB, free: 12.13 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002057/0.4626, allocations: 1.436 MB / 0.4963 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01027/0.4728, allocations: 6.797 MB / 0.5029 GB, free: 3.566 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.4729, allocations: 43.22 kB / 0.503 GB, free: 3.516 MB / 430.1 MB Notification: Performance of pre-optimization done (n=132): time 3.577e-06/0.4729, allocations: 4 kB / 0.503 GB, free: 3.512 MB / 430.1 MB Notification: Performance of matching and sorting (n=139): time 0.02594/0.4989, allocations: 11.32 MB / 0.514 GB, free: 8.051 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00136/0.5003, allocations: 1.695 MB / 0.5157 GB, free: 6.176 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004599/0.5049, allocations: 3.549 MB / 0.5191 GB, free: 2.629 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002528/0.5052, allocations: 41.7 kB / 0.5192 GB, free: 2.582 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001998/0.5072, allocations: 2.905 MB / 0.522 GB, free: 15.65 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007673/0.5079, allocations: 0.5932 MB / 0.5226 GB, free: 15.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001435/0.5094, allocations: 1.115 MB / 0.5237 GB, free: 13.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5095, allocations: 301.1 kB / 0.524 GB, free: 13.63 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002575/0.5121, allocations: 1.916 MB / 0.5258 GB, free: 11.71 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004757/0.5169, allocations: 5.349 MB / 0.5311 GB, free: 4.625 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2277/0.7445, allocations: 7.826 MB / 0.5387 GB, free: 122.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/0.7447, allocations: 38.12 kB / 0.5387 GB, free: 122.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01655/0.7613, allocations: 8.453 MB / 0.547 GB, free: 120 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.839e-05/0.7614, allocations: 60.91 kB / 0.5471 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008465/0.7698, allocations: 3.12 MB / 0.5501 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008612/0.7785, allocations: 1.869 MB / 0.5519 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003418/0.7819, allocations: 1.241 MB / 0.5531 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006699/0.7886, allocations: 6.044 MB / 0.559 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004169/0.7928, allocations: 375.1 kB / 0.5594 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005862/0.7934, allocations: 348.2 kB / 0.5597 GB, free: 112.2 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.002226/0.7957, allocations: 1.857 MB / 0.5615 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.7961, allocations: 316.8 kB / 0.5619 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00436/0.8005, allocations: 2.763 MB / 0.5645 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00362/0.8041, allocations: 2.359 MB / 0.5669 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.8041, allocations: 0 / 0.5669 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.8042, allocations: 11.97 kB / 0.5669 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/0.8152, allocations: 7.837 MB / 0.5745 GB, free: 97.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/0.8152, allocations: 5.859 kB / 0.5745 GB, free: 97.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009801/0.8162, allocations: 219.6 kB / 0.5747 GB, free: 97.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002658/0.8189, allocations: 1.065 MB / 0.5758 GB, free: 95.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/0.8191, allocations: 35.97 kB / 0.5758 GB, free: 95.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004183/0.8232, allocations: 5.286 MB / 0.581 GB, free: 90.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000697/0.824, allocations: 1.557 MB / 0.5825 GB, free: 88.69 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006278/0.8303, allocations: 4.98 MB / 0.5874 GB, free: 83.81 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009517/0.8312, allocations: 381.4 kB / 0.5877 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003394/0.8316, allocations: 27.98 kB / 0.5877 GB, free: 83.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/0.8329, allocations: 127.8 kB / 0.5879 GB, free: 83.28 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.8331, allocations: 88.47 kB / 0.5879 GB, free: 83.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.754e-05/0.8332, allocations: 39.98 kB / 0.588 GB, free: 83.15 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002635/0.8359, allocations: 2.187 MB / 0.5901 GB, free: 80.98 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8359, allocations: 0 / 0.5901 GB, free: 80.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004434/0.8403, allocations: 0.9622 MB / 0.5911 GB, free: 80.02 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.00655/0.8469, allocations: 5.633 MB / 0.5966 GB, free: 74.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00755/0.8545, allocations: 5.192 MB / 0.6016 GB, free: 69.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/0.8545, allocations: 4.188 kB / 0.6016 GB, free: 69.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003129/0.8576, allocations: 2.027 MB / 0.6036 GB, free: 67.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.86, allocations: 397.4 kB / 0.604 GB, free: 66.63 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05343/0.9134, allocations: 42.52 MB / 0.6455 GB, free: 18.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00222/0.9157, allocations: 2.912 MB / 0.6484 GB, free: 15.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003031/0.9187, allocations: 1.695 MB / 0.65 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/0.9203, allocations: 1.608 MB / 0.6516 GB, free: 12.59 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.9203, allocations: 0 / 0.6516 GB, free: 12.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/1.033, allocations: 62.91 MB / 0.713 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.08/21.11, allocations: 10.59 kB / 0.713 GB, free: 14.11 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