Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001571/0.001571, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001166/0.001165, allocations: 95.48 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003955, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3428, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.4898, allocations: 87.25 MB / 461.9 MB, free: 9.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003725/0.4902, allocations: 87.95 kB / 462 MB, free: 9.281 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5396/1.03, allocations: 60.2 MB / 0.5099 GB, free: 93.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.03, allocations: 0 / 0.5099 GB, free: 93.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001534/1.03, allocations: 45.38 kB / 0.51 GB, free: 93.98 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.02712/1.057, allocations: 3.625 MB / 0.5135 GB, free: 92.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/1.057, allocations: 10.44 kB / 0.5135 GB, free: 92.65 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002379/1.06, allocations: 493.6 kB / 0.514 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02035/1.08, allocations: 2.342 MB / 0.5163 GB, free: 92.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01844/1.099, allocations: 4.891 MB / 0.5211 GB, free: 90.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002666/1.099, allocations: 173.3 kB / 0.5212 GB, free: 90.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001618/1.1, allocations: 236.8 kB / 0.5215 GB, free: 90.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02822/1.129, allocations: 8.596 MB / 0.5298 GB, free: 83.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001887/1.129, allocations: 47.53 kB / 0.5299 GB, free: 83.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00118/1.13, allocations: 118.3 kB / 0.53 GB, free: 83.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001763/1.132, allocations: 0.7251 MB / 0.5307 GB, free: 82.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03063/1.163, allocations: 9.675 MB / 0.5402 GB, free: 73.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05225/1.215, allocations: 37.83 MB / 0.5771 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02042/1.235, allocations: 4.044 MB / 0.5811 GB, free: 29.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001897/1.236, allocations: 23.38 kB / 0.5811 GB, free: 29.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/1.236, allocations: 46.55 kB / 0.5811 GB, free: 29.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 4.869e-06/1.236, allocations: 0 / 0.5811 GB, free: 29.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.07968/1.315, allocations: 17.76 MB / 0.5985 GB, free: 11.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002432/1.318, allocations: 3.078 MB / 0.6015 GB, free: 8.359 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006961/1.325, allocations: 2.733 MB / 0.6041 GB, free: 5.613 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005974/1.326, allocations: 41.7 kB / 0.6042 GB, free: 5.566 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00168/1.327, allocations: 2.06 MB / 0.6062 GB, free: 3.516 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001159/1.328, allocations: 0.5763 MB / 0.6068 GB, free: 2.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007613/1.329, allocations: 96 kB / 0.6068 GB, free: 2.852 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003203/1.33, allocations: 0.5055 MB / 0.6073 GB, free: 2.336 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006616/1.336, allocations: 2.395 MB / 0.6097 GB, free: 15.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01069/1.347, allocations: 5.288 MB / 0.6148 GB, free: 9.188 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009798/1.357, allocations: 3.435 MB / 0.6182 GB, free: 5.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000101/1.357, allocations: 32 kB / 0.6182 GB, free: 5.719 MB / 394.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.0378/1.395, allocations: 9.374 MB / 0.6274 GB, free: 12.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.395, allocations: 48.97 kB / 0.6274 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02221/1.417, allocations: 4.672 MB / 0.632 GB, free: 7.566 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01718/1.434, allocations: 2.359 MB / 0.6343 GB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007839/1.442, allocations: 1.166 MB / 0.6354 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/1.457, allocations: 8.281 MB / 0.6435 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008411/1.465, allocations: 0.5654 MB / 0.6441 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001512/1.467, allocations: 304 kB / 0.6444 GB, free: 10.34 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.004644/1.471, allocations: 1.415 MB / 0.6457 GB, free: 8.922 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009157/1.472, allocations: 264.2 kB / 0.646 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/1.474, allocations: 415.4 kB / 0.6464 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0219/1.496, allocations: 4.584 MB / 0.6509 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.886e-05/1.496, allocations: 8 kB / 0.6509 GB, free: 3.625 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-05/1.496, allocations: 3.984 kB / 0.6509 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3015/1.798, allocations: 5.336 MB / 0.6561 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.329e-05/1.798, allocations: 3.938 kB / 0.6561 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003046/1.801, allocations: 277.8 kB / 0.6564 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01599/1.817, allocations: 2.368 MB / 0.6587 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006687/1.818, allocations: 49.53 kB / 0.6587 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/1.833, allocations: 9 MB / 0.6675 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002382/1.835, allocations: 2.913 MB / 0.6704 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02771/1.863, allocations: 8.137 MB / 0.6783 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009746/1.864, allocations: 333.1 kB / 0.6786 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.865, allocations: 42.66 kB / 0.6787 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004391/1.869, allocations: 264.2 kB / 0.6789 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009559/1.87, allocations: 107.6 kB / 0.679 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002604/1.871, allocations: 41.23 kB / 0.679 GB, free: 115.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005313/1.876, allocations: 1.922 MB / 0.6809 GB, free: 115.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.876, allocations: 0 / 0.6809 GB, free: 115.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006306/1.882, allocations: 0.9423 MB / 0.6818 GB, free: 115.5 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.02784/1.91, allocations: 9.032 MB / 0.6907 GB, free: 112.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01818/1.928, allocations: 6.814 MB / 0.6973 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.929, allocations: 0 / 0.6973 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01044/1.939, allocations: 3.434 MB / 0.7007 GB, free: 108.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/1.942, allocations: 286.3 kB / 0.7009 GB, free: 107.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09801/2.04, allocations: 101.1 MB / 0.7997 GB, free: 7.016 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004127/2.044, allocations: 2.36 MB / 0.802 GB, free: 4.637 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003581/2.048, allocations: 1.206 MB / 0.8032 GB, free: 3.43 MB / 426.7 MB Notification: Performance of SimCode: time 1.704e-06/2.048, allocations: 0 / 0.8032 GB, free: 3.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.907/6.955, allocations: 149.3 MB / 0.949 GB, free: 34.93 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat