Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001689/0.001688, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.2 MB / 245 MB, free: 5.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 106.5 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002196/0.0002197, allocations: 8 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2234, allocations: 51.49 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.97/13.19, allocations: 6.138 GB / 6.538 GB, free: 109.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001786/13.19, allocations: 77.86 kB / 6.538 GB, free: 109.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6163/13.81, allocations: 192.4 MB / 6.726 GB, free: 81.18 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.72e-07/13.81, allocations: 0 / 6.726 GB, free: 81.18 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.263e-06/13.81, allocations: 3.812 kB / 6.726 GB, free: 81.18 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.004666/13.81, allocations: 1.113 MB / 6.727 GB, free: 80.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/13.81, allocations: 12.58 kB / 6.727 GB, free: 80.52 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/13.81, allocations: 40.25 kB / 6.727 GB, free: 80.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.706e-05/13.81, allocations: 11.8 kB / 6.727 GB, free: 80.47 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/13.81, allocations: 197 kB / 6.727 GB, free: 80.28 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/13.81, allocations: 2.344 kB / 6.727 GB, free: 80.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/13.81, allocations: 7.656 kB / 6.727 GB, free: 80.28 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/13.81, allocations: 67.25 kB / 6.727 GB, free: 80.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/13.81, allocations: 3.875 kB / 6.727 GB, free: 80.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/13.81, allocations: 3.062 kB / 6.727 GB, free: 80.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/13.81, allocations: 4 kB / 6.727 GB, free: 80.23 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/13.81, allocations: 37.45 kB / 6.727 GB, free: 80.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/13.81, allocations: 188.6 kB / 6.728 GB, free: 80.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/13.81, allocations: 101.8 kB / 6.728 GB, free: 79.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.224e-05/13.81, allocations: 14.16 kB / 6.728 GB, free: 79.98 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/13.81, allocations: 30.56 kB / 6.728 GB, free: 79.94 MB / 458.7 MB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/13.81, allocations: 0 / 6.728 GB, free: 79.94 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002824/13.81, allocations: 105.6 kB / 6.728 GB, free: 79.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/13.81, allocations: 81.61 kB / 6.728 GB, free: 79.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.492e-05/13.81, allocations: 126.4 kB / 6.728 GB, free: 79.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/13.81, allocations: 29.7 kB / 6.728 GB, free: 79.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.894e-05/13.81, allocations: 87.73 kB / 6.728 GB, free: 79.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.393e-05/13.81, allocations: 22.56 kB / 6.728 GB, free: 79.58 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/13.81, allocations: 3.188 kB / 6.728 GB, free: 79.58 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.554e-05/13.81, allocations: 314.8 kB / 6.728 GB, free: 79.27 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.67e-05/13.81, allocations: 18.22 kB / 6.728 GB, free: 79.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.539e-05/13.81, allocations: 39.39 kB / 6.728 GB, free: 79.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.601e-05/13.81, allocations: 21.22 kB / 6.728 GB, free: 79.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/13.81, allocations: 0 / 6.728 GB, free: 79.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001644/13.81, allocations: 79.12 kB / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/13.81, allocations: 9.281 kB / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/13.81, allocations: 0 / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/13.81, allocations: 3.375 kB / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.563e-05/13.81, allocations: 15.03 kB / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/13.81, allocations: 3.75 kB / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.273e-05/13.81, allocations: 3.781 kB / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/13.81, allocations: 7.844 kB / 6.729 GB, free: 79.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/13.81, allocations: 117.4 kB / 6.729 GB, free: 79.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.892e-05/13.81, allocations: 7.75 kB / 6.729 GB, free: 79.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/13.81, allocations: 109.3 kB / 6.729 GB, free: 79.05 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/13.81, allocations: 0 / 6.729 GB, free: 79.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/13.81, allocations: 0 / 6.729 GB, free: 79.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/13.81, allocations: 0 / 6.729 GB, free: 79.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/13.81, allocations: 186.8 kB / 6.729 GB, free: 78.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/13.81, allocations: 4 kB / 6.729 GB, free: 78.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.967e-05/13.81, allocations: 13.62 kB / 6.729 GB, free: 78.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/13.81, allocations: 0 / 6.729 GB, free: 78.85 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/13.81, allocations: 4.344 kB / 6.729 GB, free: 78.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/13.81, allocations: 1.125 kB / 6.729 GB, free: 78.85 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/13.81, allocations: 0 / 6.729 GB, free: 78.85 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/13.81, allocations: 139.4 kB / 6.729 GB, free: 78.76 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.278e-05/13.81, allocations: 102.5 kB / 6.729 GB, free: 78.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/13.81, allocations: 0 / 6.729 GB, free: 78.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-05/13.81, allocations: 7.781 kB / 6.729 GB, free: 78.65 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/13.81, allocations: 10.25 kB / 6.729 GB, free: 78.65 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/13.81, allocations: 3.75 kB / 6.729 GB, free: 78.65 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.21e-05/13.81, allocations: 105.3 kB / 6.729 GB, free: 78.58 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/13.81, allocations: 0 / 6.729 GB, free: 78.58 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00466/13.82, allocations: 1.012 MB / 6.73 GB, free: 78.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00854/13.83, allocations: 2.105 MB / 6.732 GB, free: 77.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001809/13.83, allocations: 44.81 kB / 6.732 GB, free: 77.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/13.83, allocations: 3.812 kB / 6.732 GB, free: 77.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.873e-05/13.83, allocations: 25.92 kB / 6.732 GB, free: 77.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/13.83, allocations: 17.45 kB / 6.733 GB, free: 77.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/13.83, allocations: 1.159 MB / 6.734 GB, free: 76.85 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/13.83, allocations: 0.689 MB / 6.734 GB, free: 76.16 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.144e-05/13.83, allocations: 13.52 kB / 6.734 GB, free: 76.16 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.77e-05/13.83, allocations: 20.28 kB / 6.734 GB, free: 76.15 MB / 458.7 MB Notification: Performance of SimCode: time 7.92e-07/13.83, allocations: 0 / 6.734 GB, free: 76.15 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04826/13.88, allocations: 29.19 MB / 6.763 GB, free: 74.45 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001885/13.88, allocations: 211.8 kB / 6.763 GB, free: 74.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/16.38, allocations: 0 / 6.763 GB, free: 74.21 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat