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.001228/0.001227, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001072, allocations: 68 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08134/0.08242, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.009985/0.09244, allocations: 10.42 MB / 368 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1369/0.2294, allocations: 3.843 MB / 371.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/0.2306, allocations: 60.41 kB / 371.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003434/0.2341, allocations: 2.297 MB / 374.2 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002777/0.2369, allocations: 1.658 MB / 375.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009494/0.2378, allocations: 0.6101 MB / 376.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00312/0.2409, allocations: 3.488 MB / 380 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002587/0.2435, allocations: 3.02 MB / 383 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.2449, allocations: 1.36 MB / 384.3 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.2464, allocations: 1.789 MB / 386.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004306/0.2469, allocations: 290.6 kB / 386.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0016/0.2485, allocations: 1.124 MB / 387.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009875/0.2495, allocations: 1.662 MB / 389.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001176/0.2507, allocations: 1.948 MB / 391.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003603/0.2543, allocations: 5.985 MB / 397.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2543, allocations: 0 / 397.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2543, allocations: 0 / 397.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.543e-05/0.2544, allocations: 0 / 397.1 MB, free: 15.99 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.005833/0.2602, allocations: 4.211 MB / 401.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2602, allocations: 15.97 kB / 401.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006259/0.2609, allocations: 0.6322 MB / 402 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006219/0.2671, allocations: 1.91 MB / 403.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003115/0.2702, allocations: 2.213 MB / 406.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.2704, allocations: 218.2 kB / 406.3 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006886/0.2711, allocations: 378.1 kB / 406.7 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01122/0.2823, allocations: 8.893 MB / 415.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.207e-05/0.2824, allocations: 35.62 kB / 415.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003177/0.2827, allocations: 139.6 kB / 415.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002151/0.2849, allocations: 1.641 MB / 417.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.2967, allocations: 7.525 MB / 424.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03572/0.3325, allocations: 35.15 MB / 460.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008478/0.341, allocations: 3.477 MB / 463.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001825/0.3428, allocations: 1.44 MB / 465 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009006/0.3519, allocations: 6.855 MB / 471.9 MB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.314e-05/0.3519, allocations: 47.16 kB / 471.9 MB, free: 4.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=132): time 7.494e-06/0.352, allocations: 3.984 kB / 471.9 MB, free: 4.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.02686/0.3788, allocations: 11.17 MB / 483.1 MB, free: 9.238 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001247/0.3801, allocations: 1.706 MB / 484.8 MB, free: 7.355 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/0.385, allocations: 3.528 MB / 488.3 MB, free: 3.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.3853, allocations: 45.7 kB / 488.3 MB, free: 3.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00184/0.3871, allocations: 2.795 MB / 491.1 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006279/0.3877, allocations: 0.5657 MB / 491.7 MB, free: 436 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0016/0.3894, allocations: 1.102 MB / 492.8 MB, free: 15.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.974e-05/0.3895, allocations: 301.1 kB / 493.1 MB, free: 15.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/0.3922, allocations: 1.927 MB / 495 MB, free: 13.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005002/0.3973, allocations: 5.361 MB / 0.4887 GB, free: 5.988 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008389/0.4057, allocations: 7.848 MB / 0.4963 GB, free: 12.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.868e-05/0.4058, allocations: 36 kB / 0.4964 GB, free: 12.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01869/0.4245, allocations: 8.524 MB / 0.5047 GB, free: 3.852 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.4246, allocations: 60 kB / 0.5047 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009509/0.4341, allocations: 3.21 MB / 0.5079 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009132/0.4433, allocations: 1.946 MB / 0.5098 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003844/0.4472, allocations: 1.252 MB / 0.511 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008/0.4552, allocations: 6.069 MB / 0.5169 GB, free: 7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/0.4593, allocations: 386.9 kB / 0.5173 GB, free: 6.625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009098/0.4603, allocations: 344 kB / 0.5176 GB, free: 6.289 MB / 446.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.003354/0.4636, allocations: 1.857 MB / 0.5194 GB, free: 4.422 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006537/0.4643, allocations: 304.1 kB / 0.5197 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009486/0.4653, allocations: 402.2 kB / 0.5201 GB, free: 3.723 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004715/0.47, allocations: 2.386 MB / 0.5224 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.47, allocations: 0 / 0.5224 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.47, allocations: 7.984 kB / 0.5225 GB, free: 1.305 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1505/0.6205, allocations: 7.861 MB / 0.5301 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.6206, allocations: 2.156 kB / 0.5301 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.6216, allocations: 227.4 kB / 0.5303 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002903/0.6245, allocations: 1.06 MB / 0.5314 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.6246, allocations: 34.67 kB / 0.5314 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004704/0.6293, allocations: 5.271 MB / 0.5366 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000676/0.63, allocations: 1.572 MB / 0.5381 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006553/0.6366, allocations: 4.983 MB / 0.543 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005469/0.6372, allocations: 361.4 kB / 0.5433 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003015/0.6375, allocations: 33.28 kB / 0.5433 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.6387, allocations: 124.9 kB / 0.5435 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.6389, allocations: 87.61 kB / 0.5435 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-05/0.639, allocations: 44.38 kB / 0.5436 GB, free: 132.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002532/0.6415, allocations: 2.185 MB / 0.5457 GB, free: 131.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6415, allocations: 7.766 kB / 0.5457 GB, free: 131.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003371/0.6449, allocations: 0.9459 MB / 0.5467 GB, free: 131.4 MB / 446.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.006154/0.6511, allocations: 5.633 MB / 0.5522 GB, free: 129 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007502/0.6586, allocations: 5.681 MB / 0.5577 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.6586, allocations: 2 kB / 0.5577 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003158/0.6618, allocations: 2.017 MB / 0.5597 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/0.664, allocations: 397.4 kB / 0.56 GB, free: 126 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04787/0.7119, allocations: 46.94 MB / 0.6059 GB, free: 73.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001938/0.7139, allocations: 2.897 MB / 0.6087 GB, free: 70.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002973/0.7169, allocations: 1.691 MB / 0.6104 GB, free: 68.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/0.7182, allocations: 1.604 MB / 0.6119 GB, free: 66.82 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7182, allocations: 3.5 kB / 0.6119 GB, free: 66.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.572/6.291, allocations: 66.09 MB / 0.6765 GB, free: 1.023 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/23.46, allocations: 18.39 kB / 0.6765 GB, free: 1.012 MB / 446.1 MB (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