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.001102/0.001102, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2584, allocations: 50.55 MB / 408.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01132/0.2698, allocations: 10.43 MB / 419.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007968/0.2778, allocations: 3.832 MB / 423 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001787/0.2796, allocations: 63.81 kB / 423.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004618/0.2843, allocations: 2.301 MB / 425.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00437/0.2887, allocations: 1.697 MB / 427.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.2902, allocations: 0.6161 MB / 427.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004605/0.2949, allocations: 3.482 MB / 431.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003209/0.2981, allocations: 3.024 MB / 434.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001959/0.3001, allocations: 1.359 MB / 435.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002176/0.3023, allocations: 1.791 MB / 437.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006228/0.3029, allocations: 292 kB / 437.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.3049, allocations: 1.123 MB / 438.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001592/0.3066, allocations: 1.687 MB / 440.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00191/0.3085, allocations: 1.942 MB / 442.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006711/0.3152, allocations: 6.229 MB / 448.6 MB, free: 9.598 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3153, allocations: 4 kB / 448.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3153, allocations: 0 / 448.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001785/0.3155, allocations: 0 / 448.6 MB, free: 9.594 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.008257/0.3237, allocations: 4.317 MB / 452.9 MB, free: 5.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.3238, allocations: 11.97 kB / 453 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001001/0.3248, allocations: 0.6369 MB / 453.6 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006878/0.3317, allocations: 1.925 MB / 455.5 MB, free: 2.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004827/0.3365, allocations: 2.283 MB / 457.8 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.3367, allocations: 217.4 kB / 458 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.3379, allocations: 363.8 kB / 458.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01544/0.3533, allocations: 8.901 MB / 467.3 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.3535, allocations: 39.7 kB / 467.3 MB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003978/0.3539, allocations: 131.9 kB / 467.4 MB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0024/0.3563, allocations: 1.649 MB / 469.1 MB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.3702, allocations: 7.529 MB / 476.6 MB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04383/0.414, allocations: 35.04 MB / 0.4997 GB, free: 8.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008726/0.4228, allocations: 3.475 MB / 0.5031 GB, free: 5.105 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.4248, allocations: 1.448 MB / 0.5045 GB, free: 3.648 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0108/0.4357, allocations: 6.872 MB / 0.5112 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.856e-05/0.4357, allocations: 55.16 kB / 0.5112 GB, free: 12.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=132): time 4.629e-06/0.4358, allocations: 0 / 0.5112 GB, free: 12.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=139): time 0.02882/0.4646, allocations: 11.36 MB / 0.5223 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001451/0.4661, allocations: 1.703 MB / 0.524 GB, free: 14.99 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005897/0.472, allocations: 3.548 MB / 0.5275 GB, free: 11.45 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002434/0.4723, allocations: 41.7 kB / 0.5275 GB, free: 11.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001851/0.4741, allocations: 2.904 MB / 0.5303 GB, free: 8.469 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007346/0.4749, allocations: 0.5854 MB / 0.5309 GB, free: 7.879 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001942/0.4769, allocations: 1.115 MB / 0.532 GB, free: 6.754 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.477, allocations: 301.4 kB / 0.5323 GB, free: 6.457 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002884/0.4798, allocations: 1.924 MB / 0.5342 GB, free: 4.527 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2365/0.7163, allocations: 5.365 MB / 0.5394 GB, free: 119.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008746/0.7251, allocations: 7.852 MB / 0.5471 GB, free: 113.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001597/0.7253, allocations: 35.38 kB / 0.5471 GB, free: 113.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01874/0.7441, allocations: 8.538 MB / 0.5554 GB, free: 110.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.7442, allocations: 65.62 kB / 0.5555 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008992/0.7532, allocations: 3.205 MB / 0.5586 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009066/0.7623, allocations: 1.953 MB / 0.5605 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/0.7661, allocations: 1.244 MB / 0.5617 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006958/0.7731, allocations: 6.068 MB / 0.5677 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/0.7778, allocations: 391 kB / 0.568 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009623/0.7788, allocations: 341.7 kB / 0.5684 GB, free: 100.6 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.003089/0.7819, allocations: 1.851 MB / 0.5702 GB, free: 98.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006302/0.7826, allocations: 318.6 kB / 0.5705 GB, free: 98.69 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007547/0.7833, allocations: 410.2 kB / 0.5709 GB, free: 98.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004143/0.7875, allocations: 2.378 MB / 0.5732 GB, free: 95.89 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/0.7875, allocations: 4 kB / 0.5732 GB, free: 95.89 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-05/0.7876, allocations: 7.984 kB / 0.5732 GB, free: 95.88 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/0.8005, allocations: 7.847 MB / 0.5809 GB, free: 87.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/0.8006, allocations: 8.016 kB / 0.5809 GB, free: 87.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.8016, allocations: 223.7 kB / 0.5811 GB, free: 87.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002707/0.8044, allocations: 1.061 MB / 0.5821 GB, free: 86.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/0.8046, allocations: 35.97 kB / 0.5822 GB, free: 86.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004379/0.8089, allocations: 5.277 MB / 0.5873 GB, free: 81.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007375/0.8097, allocations: 1.564 MB / 0.5888 GB, free: 79.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006612/0.8163, allocations: 5.018 MB / 0.5937 GB, free: 74.52 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009764/0.8174, allocations: 369.7 kB / 0.5941 GB, free: 74.14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004763/0.8179, allocations: 35.98 kB / 0.5941 GB, free: 74.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.8193, allocations: 123.8 kB / 0.5942 GB, free: 73.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.8195, allocations: 86.05 kB / 0.5943 GB, free: 73.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.8197, allocations: 51.97 kB / 0.5944 GB, free: 73.85 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.8225, allocations: 2.183 MB / 0.5965 GB, free: 71.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8225, allocations: 0 / 0.5965 GB, free: 71.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004457/0.827, allocations: 0.9442 MB / 0.5974 GB, free: 70.74 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.00669/0.8337, allocations: 5.649 MB / 0.603 GB, free: 65.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00821/0.8419, allocations: 5.216 MB / 0.608 GB, free: 59.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.842, allocations: 4 kB / 0.608 GB, free: 59.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003335/0.8453, allocations: 2.028 MB / 0.61 GB, free: 57.69 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/0.8478, allocations: 398.5 kB / 0.6104 GB, free: 57.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06135/0.9092, allocations: 42.7 MB / 0.6521 GB, free: 9.328 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003359/0.9126, allocations: 2.901 MB / 0.6549 GB, free: 6.395 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003298/0.9159, allocations: 1.699 MB / 0.6566 GB, free: 4.691 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/0.9178, allocations: 1.601 MB / 0.6582 GB, free: 3.09 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.9178, allocations: 4 kB / 0.6582 GB, free: 3.086 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1153/1.033, allocations: 62.77 MB / 0.7195 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.09/21.12, allocations: 13.84 kB / 0.7195 GB, free: 4.668 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.0.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