Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 181.6 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205.4 MB / 223.1 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008939/0.0008939, allocations: 96.08 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002682, allocations: 7.984 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2424, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3474, allocations: 87.25 MB / 463.2 MB, free: 9.398 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.3477, allocations: 95.94 kB / 463.3 MB, free: 9.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2976/0.6452, allocations: 60.19 MB / 0.5112 GB, free: 94.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.6453, allocations: 0 / 0.5112 GB, free: 94.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.693e-05/0.6454, allocations: 41.56 kB / 0.5112 GB, free: 94.33 MB / 378.7 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.01304/0.6584, allocations: 3.62 MB / 0.5148 GB, free: 92.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.6585, allocations: 9.938 kB / 0.5148 GB, free: 92.99 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001117/0.6596, allocations: 492.7 kB / 0.5152 GB, free: 92.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009767/0.6694, allocations: 2.346 MB / 0.5175 GB, free: 92.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.6806, allocations: 4.892 MB / 0.5223 GB, free: 91.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.6809, allocations: 175.8 kB / 0.5225 GB, free: 91.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001295/0.6822, allocations: 231 kB / 0.5227 GB, free: 91.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.6953, allocations: 8.595 MB / 0.5311 GB, free: 83.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.2e-05/0.6954, allocations: 47.53 kB / 0.5311 GB, free: 83.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003412/0.6958, allocations: 122.1 kB / 0.5312 GB, free: 83.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007737/0.6966, allocations: 0.7299 MB / 0.532 GB, free: 82.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.7123, allocations: 9.662 MB / 0.5414 GB, free: 73.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02868/0.741, allocations: 37.84 MB / 0.5783 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009855/0.7509, allocations: 4.05 MB / 0.5823 GB, free: 30.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.32e-05/0.751, allocations: 12 kB / 0.5823 GB, free: 30.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.751, allocations: 50.5 kB / 0.5824 GB, free: 29.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 3.527e-06/0.751, allocations: 0 / 0.5824 GB, free: 29.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.03812/0.7892, allocations: 17.76 MB / 0.5997 GB, free: 11.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001432/0.7906, allocations: 3.081 MB / 0.6027 GB, free: 8.488 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003387/0.794, allocations: 2.729 MB / 0.6054 GB, free: 5.746 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004153/0.7945, allocations: 44.2 kB / 0.6054 GB, free: 5.699 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008401/0.7953, allocations: 2.086 MB / 0.6075 GB, free: 3.621 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005243/0.7958, allocations: 0.5663 MB / 0.608 GB, free: 3.059 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.7961, allocations: 92 kB / 0.6081 GB, free: 2.969 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.7963, allocations: 0.5046 MB / 0.6086 GB, free: 2.457 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002914/0.7992, allocations: 2.395 MB / 0.6109 GB, free: 56 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005492/0.8047, allocations: 5.293 MB / 0.6161 GB, free: 9.305 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004966/0.8097, allocations: 3.446 MB / 0.6195 GB, free: 5.863 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.114e-05/0.8097, allocations: 28 kB / 0.6195 GB, free: 5.836 MB / 394.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.0195/0.8292, allocations: 9.446 MB / 0.6287 GB, free: 12.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.655e-05/0.8293, allocations: 52 kB / 0.6288 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01082/0.8402, allocations: 4.677 MB / 0.6333 GB, free: 7.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008508/0.8487, allocations: 2.359 MB / 0.6356 GB, free: 5.211 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004078/0.8528, allocations: 1.158 MB / 0.6368 GB, free: 4.051 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008193/0.8611, allocations: 8.277 MB / 0.6448 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004931/0.866, allocations: 0.577 MB / 0.6454 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007035/0.8667, allocations: 304 kB / 0.6457 GB, free: 10.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * 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 (578): * Single equations (assignments): 563 * 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.002472/0.8692, allocations: 1.407 MB / 0.6471 GB, free: 8.957 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005147/0.8697, allocations: 260.7 kB / 0.6473 GB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008476/0.8706, allocations: 411.4 kB / 0.6477 GB, free: 8.293 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01047/0.8811, allocations: 4.587 MB / 0.6522 GB, free: 3.672 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.188e-05/0.8811, allocations: 8 kB / 0.6522 GB, free: 3.664 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-05/0.8812, allocations: 3.984 kB / 0.6522 GB, free: 3.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1668/1.048, allocations: 5.342 MB / 0.6574 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/1.048, allocations: 3.906 kB / 0.6574 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.05, allocations: 279.9 kB / 0.6577 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007904/1.058, allocations: 2.37 MB / 0.66 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003202/1.058, allocations: 46.36 kB / 0.6601 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007608/1.065, allocations: 8.995 MB / 0.6688 GB, free: 119.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001318/1.067, allocations: 2.916 MB / 0.6717 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01314/1.08, allocations: 8.14 MB / 0.6796 GB, free: 116.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007311/1.081, allocations: 336.5 kB / 0.68 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003808/1.081, allocations: 35.77 kB / 0.68 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/1.083, allocations: 270.5 kB / 0.6802 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003044/1.083, allocations: 101.6 kB / 0.6803 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.083, allocations: 44.36 kB / 0.6804 GB, free: 116.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002643/1.086, allocations: 1.924 MB / 0.6823 GB, free: 116 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.086, allocations: 0 / 0.6823 GB, free: 116 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003486/1.09, allocations: 0.9394 MB / 0.6832 GB, free: 115.9 MB / 426.7 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.01339/1.103, allocations: 9.029 MB / 0.692 GB, free: 112.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009829/1.113, allocations: 6.807 MB / 0.6986 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.113, allocations: 0 / 0.6986 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004934/1.118, allocations: 3.426 MB / 0.702 GB, free: 108.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/1.119, allocations: 274.2 kB / 0.7023 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06088/1.18, allocations: 100.8 MB / 0.8007 GB, free: 7.441 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001658/1.182, allocations: 2.355 MB / 0.803 GB, free: 5.066 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003503/1.186, allocations: 1.638 MB / 0.8046 GB, free: 3.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/1.187, allocations: 1.159 MB / 0.8058 GB, free: 2.27 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/1.187, allocations: 0 / 0.8058 GB, free: 2.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2453/1.432, allocations: 66.69 MB / 0.8709 GB, free: 117.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/1.432, allocations: 230.1 kB / 0.8711 GB, free: 117.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.301/4.734, allocations: 4 kB / 0.8711 GB, free: 117.5 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat