Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",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.00155/0.001551, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.823/1.823, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00121/0.001211, allocations: 87.61 kB / 262.4 MB, free: 1.625 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.964e-05/1.959e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3919/0.495, allocations: 92.04 MB / 455.2 MB, free: 3.574 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.4953, allocations: 86.45 kB / 455.3 MB, free: 3.531 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1535/0.6488, allocations: 57.78 MB / 0.5011 GB, free: 15.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6489, allocations: 0 / 0.5011 GB, free: 15.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001108/0.649, allocations: 48 kB / 0.5011 GB, free: 15.19 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.008938/0.658, allocations: 2.638 MB / 0.5037 GB, free: 12.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.6581, allocations: 12.03 kB / 0.5037 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008881/0.6669, allocations: 1.927 MB / 0.5056 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.6774, allocations: 3.409 MB / 0.5089 GB, free: 7.086 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.6776, allocations: 80 kB / 0.509 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001133/0.6787, allocations: 143.8 kB / 0.5091 GB, free: 6.867 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007368/0.6861, allocations: 4.1 MB / 0.5131 GB, free: 2.762 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.6988, allocations: 6.21 MB / 0.5192 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.699, allocations: 35.69 kB / 0.5192 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004254/0.6994, allocations: 20 kB / 0.5192 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001087/0.7005, allocations: 0.7267 MB / 0.5199 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3092/1.01, allocations: 30.57 MB / 0.5498 GB, free: 87.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003017/1.013, allocations: 2.174 MB / 0.5519 GB, free: 86.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/1.014, allocations: 1.138 MB / 0.553 GB, free: 86.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009294/1.015, allocations: 333.4 kB / 0.5533 GB, free: 86.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/1.015, allocations: 43.55 kB / 0.5534 GB, free: 86.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 5.781e-06/1.015, allocations: 0 / 0.5534 GB, free: 86.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=114): time 0.02134/1.037, allocations: 9.717 MB / 0.5629 GB, free: 84.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/1.037, allocations: 141.3 kB / 0.563 GB, free: 84.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003093/1.04, allocations: 2.08 MB / 0.565 GB, free: 84.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002195/1.04, allocations: 25.7 kB / 0.5651 GB, free: 84.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/1.041, allocations: 2.083 MB / 0.5671 GB, free: 83.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004592/1.042, allocations: 456 kB / 0.5675 GB, free: 82.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/1.042, allocations: 0 / 0.5675 GB, free: 82.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002902/1.042, allocations: 0.5399 MB / 0.5681 GB, free: 82.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/1.044, allocations: 1.383 MB / 0.5694 GB, free: 82.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003423/1.048, allocations: 4.067 MB / 0.5734 GB, free: 78.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003893/1.051, allocations: 2.467 MB / 0.5758 GB, free: 78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-05/1.052, allocations: 28.75 kB / 0.5758 GB, free: 78 MB / 410.7 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.01054/1.062, allocations: 5.659 MB / 0.5814 GB, free: 76.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.682e-05/1.062, allocations: 47 kB / 0.5814 GB, free: 76.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/1.062, allocations: 96.31 kB / 0.5815 GB, free: 76.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/1.065, allocations: 0.8396 MB / 0.5823 GB, free: 76.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003222/1.068, allocations: 0.9921 MB / 0.5833 GB, free: 76.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004923/1.073, allocations: 4.242 MB / 0.5874 GB, free: 74.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004007/1.077, allocations: 200.7 kB / 0.5876 GB, free: 74.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008674/1.078, allocations: 276.8 kB / 0.5879 GB, free: 74.03 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 441 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (523): * Single equations (assignments): 519 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006965/1.078, allocations: 347.5 kB / 0.5882 GB, free: 73.73 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005165/1.084, allocations: 2.635 MB / 0.5908 GB, free: 73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004883/1.084, allocations: 209.8 kB / 0.591 GB, free: 72.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004679/1.089, allocations: 2.241 MB / 0.5932 GB, free: 72.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.13e-05/1.089, allocations: 15.12 kB / 0.5932 GB, free: 72.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/1.089, allocations: 3.844 kB / 0.5932 GB, free: 72.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/1.089, allocations: 3.375 kB / 0.5932 GB, free: 72.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009649/1.099, allocations: 5.145 MB / 0.5982 GB, free: 70.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/1.099, allocations: 5.422 kB / 0.5982 GB, free: 70.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/1.099, allocations: 162.4 kB / 0.5984 GB, free: 70.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/1.101, allocations: 0.6782 MB / 0.599 GB, free: 70.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/1.101, allocations: 7.875 kB / 0.599 GB, free: 70.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/1.106, allocations: 3.702 MB / 0.6027 GB, free: 68.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/1.106, allocations: 8.062 kB / 0.6027 GB, free: 68.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006236/1.112, allocations: 4.366 MB / 0.6069 GB, free: 64.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/1.113, allocations: 445.1 kB / 0.6074 GB, free: 64.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/1.113, allocations: 4 kB / 0.6074 GB, free: 64.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/1.114, allocations: 77.2 kB / 0.6074 GB, free: 64.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/1.115, allocations: 59.05 kB / 0.6075 GB, free: 64.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.06e-05/1.115, allocations: 39.84 kB / 0.6075 GB, free: 64.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002002/1.117, allocations: 1.367 MB / 0.6089 GB, free: 62.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.117, allocations: 0 / 0.6089 GB, free: 62.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003921/1.121, allocations: 0.5959 MB / 0.6094 GB, free: 62.31 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006633/1.127, allocations: 5.52 MB / 0.6148 GB, free: 57.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004961/1.132, allocations: 3.319 MB / 0.6181 GB, free: 54.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.132, allocations: 0 / 0.6181 GB, free: 54.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/1.133, allocations: 1.044 MB / 0.6191 GB, free: 53.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/1.135, allocations: 202.5 kB / 0.6193 GB, free: 53.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/1.146, allocations: 5.364 MB / 0.6245 GB, free: 48.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001807/1.148, allocations: 2.297 MB / 0.6268 GB, free: 46.88 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003091/1.151, allocations: 1.408 MB / 0.6281 GB, free: 46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/1.152, allocations: 1.098 MB / 0.6292 GB, free: 44.99 MB / 410.7 MB Notification: Performance of SimCode: time 8.82e-07/1.152, allocations: 0 / 0.6292 GB, free: 44.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07791/1.23, allocations: 45.94 MB / 0.6741 GB, free: 56 kB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/1.23, allocations: 177 kB / 0.6742 GB, free: 15.85 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.459/4.689, allocations: 32 / 0.6742 GB, free: 15.85 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat