Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008142/0.0008142, allocations: 87.03 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.517/2.517, allocations: 390.4 MB / 0.6655 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005636/0.0005639, allocations: 8 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7688/0.7694, allocations: 142.3 MB / 0.9538 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1585/0.9279, allocations: 134.5 MB / 1.085 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0001465/0.9281, allocations: 51.88 kB / 1.085 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.777e-05/0.9282, allocations: 0 / 1.085 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.9283, allocations: 4 kB / 1.085 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.971e-05/0.9284, allocations: 11.92 kB / 1.085 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007307/0.9291, allocations: 151.4 kB / 1.085 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001056/0.9293, allocations: 47.83 kB / 1.085 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.587e-05/0.9293, allocations: 7.984 kB / 1.085 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.046e-05/0.9294, allocations: 8 kB / 1.085 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.273e-05/0.9294, allocations: 19.91 kB / 1.085 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.9295, allocations: 0 / 1.085 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003967/0.9299, allocations: 99.73 kB / 1.086 GB, free: 8.906 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.684e-05/0.9299, allocations: 15.92 kB / 1.086 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.762e-05/0.93, allocations: 29.64 kB / 1.086 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.9302, allocations: 58.19 kB / 1.086 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.9302, allocations: 0 / 1.086 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.876e-06/0.9302, allocations: 0 / 1.086 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.9302, allocations: 0 / 1.086 GB, free: 8.801 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004123/0.9306, allocations: 335.3 kB / 1.086 GB, free: 8.426 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.9307, allocations: 12.03 kB / 1.086 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.327e-05/0.9307, allocations: 30.56 kB / 1.086 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/0.9311, allocations: 27.97 kB / 1.086 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.9312, allocations: 163.1 kB / 1.086 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.837e-05/0.9313, allocations: 25.7 kB / 1.086 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.9313, allocations: 7.984 kB / 1.086 GB, free: 8.109 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001416/0.9314, allocations: 57.56 kB / 1.086 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.9314, allocations: 0 / 1.086 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.9315, allocations: 0 / 1.086 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.9315, allocations: 0 / 1.086 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.752e-05/0.9315, allocations: 27.98 kB / 1.086 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003813/0.9319, allocations: 253 kB / 1.087 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.596e-05/0.932, allocations: 26.47 kB / 1.087 GB, free: 7.688 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.789e-05/0.932, allocations: 12.8 kB / 1.087 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001631/0.9322, allocations: 97.16 kB / 1.087 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.9322, allocations: 30.56 kB / 1.087 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.9322, allocations: 0 / 1.087 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0002677/0.9325, allocations: 53.59 kB / 1.087 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.9326, allocations: 51.41 kB / 1.087 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.234e-05/0.9326, allocations: 101.8 kB / 1.087 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.9327, allocations: 29.7 kB / 1.087 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.374e-05/0.9327, allocations: 96.05 kB / 1.087 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.072e-06/0.9327, allocations: 0 / 1.087 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-06/0.9328, allocations: 4 kB / 1.087 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.9329, allocations: 318.8 kB / 1.087 GB, free: 6.832 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.64e-05/0.9329, allocations: 3.938 kB / 1.087 GB, free: 6.828 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.02e-05/0.9329, allocations: 22.58 kB / 1.087 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.796e-05/0.933, allocations: 15.98 kB / 1.087 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.933, allocations: 0 / 1.087 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.746e-05/0.9331, allocations: 57.5 kB / 1.087 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.9331, allocations: 7.984 kB / 1.087 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.9331, allocations: 0 / 1.087 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.9331, allocations: 4 kB / 1.087 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.845e-05/0.9332, allocations: 4 kB / 1.087 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.9332, allocations: 0 / 1.087 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.908e-05/0.9332, allocations: 4.094 kB / 1.087 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-06/0.9333, allocations: 4 kB / 1.087 GB, free: 6.695 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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 8.178e-05/0.9333, allocations: 117.8 kB / 1.088 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.9334, allocations: 3.953 kB / 1.088 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.825e-05/0.9334, allocations: 7.125 kB / 1.088 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.9334, allocations: 7.984 kB / 1.088 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.9334, allocations: 0 / 1.088 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.9334, allocations: 0 / 1.088 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.9338, allocations: 355.9 kB / 1.088 GB, free: 6.141 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.9338, allocations: 3.938 kB / 1.088 GB, free: 6.137 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.767e-05/0.9338, allocations: 7.984 kB / 1.088 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.9338, allocations: 0 / 1.088 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.9338, allocations: 0 / 1.088 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.9338, allocations: 8 kB / 1.088 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.9338, allocations: 7.969 kB / 1.088 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.934, allocations: 77.92 kB / 1.088 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.934, allocations: 85.09 kB / 1.088 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.934, allocations: 0 / 1.088 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.521e-05/0.9341, allocations: 4 kB / 1.088 GB, free: 5.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.72e-05/0.9341, allocations: 3.938 kB / 1.088 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.9342, allocations: 3.938 kB / 1.088 GB, free: 5.902 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.915e-05/0.9342, allocations: 83.27 kB / 1.088 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9342, allocations: 7.969 kB / 1.088 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002027/0.9344, allocations: 12 kB / 1.088 GB, free: 5.801 MB / 0.8419 GB 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 (2): * Single equations (assignments): 2 * 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.0004095/0.9348, allocations: 0.6016 MB / 1.089 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 8.862e-05/0.9349, allocations: 19.97 kB / 1.089 GB, free: 5.145 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.935, allocations: 4 kB / 1.089 GB, free: 5.141 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.004e-05/0.935, allocations: 4 kB / 1.089 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.9352, allocations: 6 kB / 1.089 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.9356, allocations: 167.3 kB / 1.089 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.936, allocations: 0.677 MB / 1.09 GB, free: 4.223 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.616e-05/0.936, allocations: 4 kB / 1.09 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.9361, allocations: 11.44 kB / 1.09 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of SimCode: time 3.71e-07/0.9361, allocations: 0 / 1.09 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01193/0.948, allocations: 1.242 MB / 1.091 GB, free: 3.098 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.9482, allocations: 183.6 kB / 1.091 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.754, allocations: 1.375 kB / 1.091 GB, free: 2.863 MB / 0.8419 GB (rm -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_AirTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_AirTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat