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.001506/0.001506, allocations: 118.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001583, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3101, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01161/0.3217, allocations: 10.43 MB / 419.2 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008373/0.3301, allocations: 3.836 MB / 423 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.3315, allocations: 67.81 kB / 423.1 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004793/0.3363, allocations: 2.289 MB / 425.4 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004637/0.341, allocations: 1.665 MB / 427 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.3423, allocations: 0.6161 MB / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005544/0.3479, allocations: 3.478 MB / 431.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004431/0.3523, allocations: 3.022 MB / 434.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.3553, allocations: 1.359 MB / 435.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003349/0.3587, allocations: 1.795 MB / 437.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001026/0.3597, allocations: 292 kB / 437.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002714/0.3624, allocations: 1.123 MB / 438.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002698/0.3652, allocations: 1.679 MB / 440.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003987/0.3692, allocations: 1.942 MB / 442.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00899/0.3782, allocations: 6.201 MB / 448.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3782, allocations: 0 / 448.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3782, allocations: 0 / 448.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002786/0.3785, allocations: 4 kB / 448.5 MB, free: 9.527 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.01367/0.3922, allocations: 4.211 MB / 452.8 MB, free: 5.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.3922, allocations: 15.97 kB / 452.8 MB, free: 5.234 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001761/0.394, allocations: 0.6369 MB / 453.4 MB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007256/0.4013, allocations: 1.903 MB / 455.3 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004871/0.4062, allocations: 2.267 MB / 457.6 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.4063, allocations: 213.4 kB / 457.8 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009463/0.4073, allocations: 367.8 kB / 458.1 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01496/0.4223, allocations: 8.901 MB / 467.1 MB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.8e-05/0.4224, allocations: 35.73 kB / 467.1 MB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004412/0.4228, allocations: 135.9 kB / 467.2 MB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002559/0.4254, allocations: 1.645 MB / 468.9 MB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.4391, allocations: 7.533 MB / 476.4 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04672/0.4859, allocations: 34.96 MB / 0.4994 GB, free: 8.875 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009198/0.4951, allocations: 3.489 MB / 0.5028 GB, free: 5.238 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002236/0.4974, allocations: 1.44 MB / 0.5042 GB, free: 3.789 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.509, allocations: 6.859 MB / 0.5109 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.5091, allocations: 47.16 kB / 0.5109 GB, free: 12.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=132): time 4.679e-06/0.5091, allocations: 8 kB / 0.5109 GB, free: 12.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=139): time 0.02736/0.5364, allocations: 11.16 MB / 0.5218 GB, free: 1.211 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001244/0.5377, allocations: 1.706 MB / 0.5235 GB, free: 15.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006064/0.5438, allocations: 3.535 MB / 0.527 GB, free: 11.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001714/0.544, allocations: 41.7 kB / 0.527 GB, free: 11.74 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001959/0.546, allocations: 2.786 MB / 0.5297 GB, free: 8.914 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009073/0.5469, allocations: 0.5711 MB / 0.5303 GB, free: 8.336 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001646/0.5486, allocations: 1.099 MB / 0.5313 GB, free: 7.227 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.541e-05/0.5487, allocations: 305.1 kB / 0.5316 GB, free: 6.926 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003059/0.5517, allocations: 1.92 MB / 0.5335 GB, free: 5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2129/0.7647, allocations: 5.364 MB / 0.5387 GB, free: 119.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008101/0.7728, allocations: 7.853 MB / 0.5464 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002627/0.7731, allocations: 36.19 kB / 0.5465 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01626/0.7894, allocations: 8.519 MB / 0.5548 GB, free: 110.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003067/0.7897, allocations: 61.81 kB / 0.5548 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008752/0.7985, allocations: 3.209 MB / 0.558 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008604/0.8072, allocations: 1.946 MB / 0.5599 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003482/0.8107, allocations: 1.258 MB / 0.5611 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0068/0.8175, allocations: 6.068 MB / 0.567 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004911/0.8225, allocations: 386.8 kB / 0.5674 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004473/0.8229, allocations: 340.9 kB / 0.5677 GB, free: 100.8 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.002643/0.8256, allocations: 1.853 MB / 0.5695 GB, free: 98.93 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003874/0.826, allocations: 298 kB / 0.5698 GB, free: 98.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005827/0.8266, allocations: 406.6 kB / 0.5702 GB, free: 98.39 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004024/0.8306, allocations: 2.382 MB / 0.5725 GB, free: 96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.8306, allocations: 4 kB / 0.5725 GB, free: 95.99 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.8306, allocations: 7.969 kB / 0.5725 GB, free: 95.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.8421, allocations: 7.86 MB / 0.5802 GB, free: 88.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.8422, allocations: 3.25 kB / 0.5802 GB, free: 88.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009466/0.8431, allocations: 227.8 kB / 0.5804 GB, free: 87.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00277/0.8459, allocations: 1.057 MB / 0.5815 GB, free: 86.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.846, allocations: 35.98 kB / 0.5815 GB, free: 86.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004365/0.8504, allocations: 5.275 MB / 0.5866 GB, free: 81.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006529/0.851, allocations: 1.566 MB / 0.5882 GB, free: 79.53 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006514/0.8576, allocations: 4.993 MB / 0.593 GB, free: 74.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007372/0.8583, allocations: 365.8 kB / 0.5934 GB, free: 74.25 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.8586, allocations: 31.98 kB / 0.5934 GB, free: 74.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.8598, allocations: 127.8 kB / 0.5936 GB, free: 74.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.86, allocations: 84.41 kB / 0.5936 GB, free: 74.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.346e-05/0.8601, allocations: 43.97 kB / 0.5937 GB, free: 73.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002209/0.8623, allocations: 2.183 MB / 0.5958 GB, free: 71.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8623, allocations: 0.9844 kB / 0.5958 GB, free: 71.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003832/0.8662, allocations: 0.9435 MB / 0.5967 GB, free: 70.86 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.006118/0.8723, allocations: 5.645 MB / 0.6022 GB, free: 65.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007225/0.8795, allocations: 5.2 MB / 0.6073 GB, free: 59.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.8796, allocations: 0 / 0.6073 GB, free: 59.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00324/0.8828, allocations: 2.029 MB / 0.6093 GB, free: 57.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/0.8853, allocations: 404.2 kB / 0.6097 GB, free: 57.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05086/0.9362, allocations: 42.55 MB / 0.6512 GB, free: 9.609 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002418/0.9386, allocations: 2.901 MB / 0.6541 GB, free: 6.676 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003085/0.9417, allocations: 1.687 MB / 0.6557 GB, free: 4.984 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/0.9431, allocations: 1.601 MB / 0.6573 GB, free: 3.383 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.9431, allocations: 0 / 0.6573 GB, free: 3.383 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.004/2.947, allocations: 63.74 MB / 0.7195 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.33/25.28, allocations: 6.75 kB / 0.7195 GB, free: 4.008 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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