Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 99.11 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001687/0.001687, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002556/0.0002557, allocations: 8 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 51.5 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01165/0.1212, allocations: 12.51 MB / 370.8 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2058/0.3271, allocations: 3.998 MB / 374.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002412/0.3295, allocations: 54.06 kB / 374.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001898/0.3314, allocations: 0.5938 MB / 375.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006753/0.3382, allocations: 2.201 MB / 377.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.3396, allocations: 434.4 kB / 378.1 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005649/0.3452, allocations: 3.367 MB / 381.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.3463, allocations: 0.5247 MB / 382 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001934/0.3483, allocations: 0.7724 MB / 382.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.3506, allocations: 1.302 MB / 384.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003518/0.3509, allocations: 81.72 kB / 384.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001872/0.3528, allocations: 0.8087 MB / 384.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001045/0.3539, allocations: 1.052 MB / 386 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005267/0.3544, allocations: 0.4932 MB / 386.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003268/0.3577, allocations: 2.999 MB / 389.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3577, allocations: 0 / 389.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.3577, allocations: 0 / 389.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.811e-05/0.3578, allocations: 5.156 kB / 389.5 MB, free: 4.848 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.006322/0.3641, allocations: 2.754 MB / 392.2 MB, free: 3.117 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.3642, allocations: 9.625 kB / 392.3 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007146/0.3649, allocations: 435.5 kB / 392.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008066/0.373, allocations: 2.065 MB / 394.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004621/0.3777, allocations: 1.997 MB / 396.7 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.841e-05/0.3778, allocations: 123.8 kB / 396.9 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000818/0.3786, allocations: 300.2 kB / 397.2 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0141/0.3927, allocations: 8.223 MB / 405.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.138e-05/0.3928, allocations: 35.66 kB / 405.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002726/0.3931, allocations: 81.77 kB / 405.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002066/0.3952, allocations: 1.394 MB / 406.9 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01731/0.4125, allocations: 9.52 MB / 416.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03319/0.4457, allocations: 30.5 MB / 446.9 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01162/0.4574, allocations: 4.422 MB / 451.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00348/0.4609, allocations: 2.102 MB / 453.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.991e-05/0.461, allocations: 23.89 kB / 453.5 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.4611, allocations: 50.55 kB / 453.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.877e-06/0.4611, allocations: 0 / 453.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=136): time 0.04896/0.51, allocations: 18.42 MB / 471.9 MB, free: 6.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002948/0.513, allocations: 3.051 MB / 475 MB, free: 3.375 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006312/0.5194, allocations: 2.986 MB / 478 MB, free: 380 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009033/0.5203, allocations: 44.28 kB / 478 MB, free: 332 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002379/0.5227, allocations: 2.09 MB / 480.1 MB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001803/0.5246, allocations: 0.5639 MB / 480.7 MB, free: 13.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009622/0.5255, allocations: 96.09 kB / 480.8 MB, free: 13.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000495/0.526, allocations: 0.5086 MB / 481.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005174/0.5312, allocations: 2.555 MB / 483.8 MB, free: 10.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007251/0.5385, allocations: 5.509 MB / 489.3 MB, free: 3.566 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006181/0.5447, allocations: 3.616 MB / 492.9 MB, free: 15.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.54e-05/0.5448, allocations: 32 kB / 493 MB, free: 15.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02411/0.569, allocations: 9.815 MB / 0.491 GB, free: 6.074 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.5691, allocations: 48 kB / 0.4911 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01267/0.5818, allocations: 5.101 MB / 0.496 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008532/0.5904, allocations: 2.371 MB / 0.4983 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004881/0.5953, allocations: 1.232 MB / 0.4996 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009602/0.6049, allocations: 8.108 MB / 0.5075 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005596/0.6106, allocations: 0.5653 MB / 0.508 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001614/0.6122, allocations: 308 kB / 0.5083 GB, free: 3.762 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004561/0.6168, allocations: 1.424 MB / 0.5097 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.618, allocations: 256.6 kB / 0.51 GB, free: 2.078 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.6195, allocations: 415.3 kB / 0.5103 GB, free: 1.664 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01221/0.6317, allocations: 5.018 MB / 0.5152 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-05/0.6318, allocations: 4 kB / 0.5153 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.196e-05/0.6318, allocations: 7.984 kB / 0.5153 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.6448, allocations: 5.356 MB / 0.5205 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-05/0.6449, allocations: 0 / 0.5205 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/0.6471, allocations: 371.4 kB / 0.5208 GB, free: 6.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008136/0.6552, allocations: 2.382 MB / 0.5232 GB, free: 4.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007548/0.656, allocations: 51.31 kB / 0.5232 GB, free: 4.363 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2564/0.9124, allocations: 8.832 MB / 0.5318 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001484/0.9139, allocations: 2.897 MB / 0.5347 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01719/0.9311, allocations: 8.758 MB / 0.5432 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009802/0.9322, allocations: 328.5 kB / 0.5435 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005978/0.9328, allocations: 36.52 kB / 0.5436 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002102/0.9349, allocations: 320.3 kB / 0.5439 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004232/0.9353, allocations: 109.2 kB / 0.544 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/0.9355, allocations: 49.58 kB / 0.544 GB, free: 135 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003811/0.9393, allocations: 1.866 MB / 0.5459 GB, free: 134.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.9394, allocations: 1.219 kB / 0.5459 GB, free: 134.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005967/0.9453, allocations: 0.959 MB / 0.5468 GB, free: 134.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01489/0.9603, allocations: 9.403 MB / 0.556 GB, free: 131 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01081/0.9711, allocations: 7.189 MB / 0.563 GB, free: 127.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.9712, allocations: 0 / 0.563 GB, free: 127.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00555/0.9767, allocations: 3.617 MB / 0.5665 GB, free: 124.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.9793, allocations: 299.3 kB / 0.5668 GB, free: 123.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05506/1.034, allocations: 32.34 MB / 0.5984 GB, free: 88.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001851/1.036, allocations: 2.294 MB / 0.6006 GB, free: 86.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003705/1.04, allocations: 1.668 MB / 0.6023 GB, free: 84.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/1.042, allocations: 1.159 MB / 0.6034 GB, free: 83.74 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/1.042, allocations: 0 / 0.6034 GB, free: 83.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08714/1.129, allocations: 68.37 MB / 0.6702 GB, free: 15.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/1.129, allocations: 238 kB / 0.6704 GB, free: 15.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.757/4.886, allocations: 4 kB / 0.6704 GB, free: 15.45 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat