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.001713/0.001713, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009454/0.0009451, allocations: 102.5 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.371e-05/2.373e-05, allocations: 4 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1404, allocations: 51.48 MB / 395.3 MB, free: 4.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 17.49/17.63, allocations: 6.137 GB / 6.523 GB, free: 98.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/17.63, allocations: 76.47 kB / 6.523 GB, free: 97.99 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7006/18.33, allocations: 189 MB / 6.708 GB, free: 60.46 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.853e-06/18.33, allocations: 0 / 6.708 GB, free: 60.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/18.33, allocations: 0 / 6.708 GB, free: 60.46 MB / 442.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.004342/18.34, allocations: 1.107 MB / 6.709 GB, free: 59.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/18.34, allocations: 13.72 kB / 6.709 GB, free: 59.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.196e-05/18.34, allocations: 4.672 kB / 6.709 GB, free: 59.72 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/18.34, allocations: 190.3 kB / 6.709 GB, free: 59.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/18.34, allocations: 0 / 6.709 GB, free: 59.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/18.34, allocations: 2.562 kB / 6.709 GB, free: 59.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.792e-05/18.34, allocations: 36.69 kB / 6.709 GB, free: 59.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/18.34, allocations: 63.14 kB / 6.709 GB, free: 59.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/18.34, allocations: 0 / 6.709 GB, free: 59.45 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/18.34, allocations: 3.812 kB / 6.709 GB, free: 59.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/18.34, allocations: 0 / 6.709 GB, free: 59.45 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/18.34, allocations: 170.2 kB / 6.709 GB, free: 59.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/18.34, allocations: 91.03 kB / 6.71 GB, free: 59.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.152e-05/18.34, allocations: 27.38 kB / 6.71 GB, free: 59.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.435e-05/18.34, allocations: 13.09 kB / 6.71 GB, free: 59.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/18.34, allocations: 33.19 kB / 6.71 GB, free: 59.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/18.34, allocations: 3.938 kB / 6.71 GB, free: 59.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007737/18.34, allocations: 167 kB / 6.71 GB, free: 59.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.391e-05/18.34, allocations: 79.88 kB / 6.71 GB, free: 59.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.323e-05/18.34, allocations: 121.1 kB / 6.71 GB, free: 58.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/18.34, allocations: 25.7 kB / 6.71 GB, free: 58.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.826e-05/18.34, allocations: 87.52 kB / 6.71 GB, free: 58.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/18.34, allocations: 15.44 kB / 6.71 GB, free: 58.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-06/18.34, allocations: 0 / 6.71 GB, free: 58.78 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.568e-05/18.34, allocations: 318.5 kB / 6.71 GB, free: 58.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.026e-05/18.34, allocations: 14.91 kB / 6.71 GB, free: 58.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.119e-05/18.34, allocations: 28.27 kB / 6.71 GB, free: 58.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005384/18.34, allocations: 111.2 kB / 6.711 GB, free: 58.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/18.34, allocations: 3.953 kB / 6.711 GB, free: 58.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0005526/18.34, allocations: 160.2 kB / 6.711 GB, free: 58.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/18.34, allocations: 10.14 kB / 6.711 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/18.34, allocations: 0 / 6.711 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/18.34, allocations: 0 / 6.711 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.974e-05/18.34, allocations: 11.84 kB / 6.711 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/18.34, allocations: 7.906 kB / 6.711 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.533e-05/18.34, allocations: 6.844 kB / 6.711 GB, free: 58.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/18.34, allocations: 3.969 kB / 6.711 GB, free: 58.37 MB / 442.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 () * 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 4.752e-05/18.34, allocations: 101 kB / 6.711 GB, free: 58.27 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005546/18.34, allocations: 174.8 kB / 6.711 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.46e-05/18.34, allocations: 6.641 kB / 6.711 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006102/18.34, allocations: 182.8 kB / 6.711 GB, free: 58.16 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/18.34, allocations: 3.062 kB / 6.711 GB, free: 58.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/18.34, allocations: 4 kB / 6.711 GB, free: 58.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/18.34, allocations: 3.594 kB / 6.711 GB, free: 58.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.45e-05/18.34, allocations: 159.2 kB / 6.711 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/18.34, allocations: 1.625 kB / 6.711 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/18.34, allocations: 10.12 kB / 6.711 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/18.34, allocations: 3.844 kB / 6.711 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/18.34, allocations: 3.812 kB / 6.711 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/18.34, allocations: 0 / 6.711 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/18.34, allocations: 1.438 kB / 6.711 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005653/18.34, allocations: 209.4 kB / 6.712 GB, free: 57.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-05/18.34, allocations: 98.3 kB / 6.712 GB, free: 57.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/18.34, allocations: 384 / 6.712 GB, free: 57.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.682e-05/18.34, allocations: 3.438 kB / 6.712 GB, free: 57.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/18.34, allocations: 12.36 kB / 6.712 GB, free: 57.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/18.34, allocations: 6.734 kB / 6.712 GB, free: 57.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.69e-05/18.34, allocations: 109.7 kB / 6.712 GB, free: 57.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/18.34, allocations: 0 / 6.712 GB, free: 57.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003899/18.35, allocations: 0.9935 MB / 6.713 GB, free: 57.44 MB / 442.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 () * 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.0104/18.36, allocations: 2.225 MB / 6.715 GB, free: 56.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0002104/18.36, allocations: 34.02 kB / 6.715 GB, free: 56.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/18.36, allocations: 0 / 6.715 GB, free: 56.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 6.048e-05/18.36, allocations: 26.45 kB / 6.715 GB, free: 56.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/18.36, allocations: 18.22 kB / 6.715 GB, free: 56.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004192/18.36, allocations: 0.5425 MB / 6.716 GB, free: 56.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/18.36, allocations: 0.6874 MB / 6.716 GB, free: 55.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001059/18.36, allocations: 10.23 kB / 6.716 GB, free: 55.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.701e-05/18.36, allocations: 25.8 kB / 6.716 GB, free: 55.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.954e-06/18.36, allocations: 4 kB / 6.716 GB, free: 55.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06663/18.43, allocations: 27.07 MB / 6.743 GB, free: 43.95 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/18.43, allocations: 175.2 kB / 6.743 GB, free: 43.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.729/21.16, allocations: 0 / 6.743 GB, free: 43.75 MB / 442.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