Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.737/2.737, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 187.5 kB / 0.4902 GB, free: 2.266 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 223.1 MB / 0.7992 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000908/0.0009079, allocations: 95 kB / 0.9396 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003633, allocations: 7.812 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.298, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.026/1.324, allocations: 389.9 MB / 1.61 GB, free: 12.24 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/1.324, allocations: 71.78 kB / 1.61 GB, free: 12.2 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 0.02889/1.353, allocations: 13.34 MB / 1.623 GB, free: 1.711 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.444e-06/1.353, allocations: 0 / 1.623 GB, free: 1.711 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 6.632e-06/1.353, allocations: 0 / 1.623 GB, free: 1.711 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003746/1.354, allocations: 343 kB / 1.623 GB, free: 1.332 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/1.354, allocations: 8.562 kB / 1.623 GB, free: 1.324 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/1.354, allocations: 30.56 kB / 1.624 GB, free: 1.285 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/1.354, allocations: 11.95 kB / 1.624 GB, free: 1.273 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/1.354, allocations: 163.1 kB / 1.624 GB, free: 1.074 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/1.354, allocations: 25.7 kB / 1.624 GB, free: 1.043 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/1.354, allocations: 4 kB / 1.624 GB, free: 1.039 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/1.354, allocations: 41.56 kB / 1.624 GB, free: 0.9961 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/1.354, allocations: 0 / 1.624 GB, free: 0.9961 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/1.354, allocations: 0 / 1.624 GB, free: 0.9961 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/1.354, allocations: 0 / 1.624 GB, free: 0.9961 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.382e-05/1.354, allocations: 22.81 kB / 1.624 GB, free: 0.9766 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004619/1.355, allocations: 344.5 kB / 1.624 GB, free: 0.5781 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 3.931e-05/1.355, allocations: 14.58 kB / 1.624 GB, free: 0.5547 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 7.88e-05/1.355, allocations: 81.17 kB / 1.624 GB, free: 468 kB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/1.355, allocations: 38.12 kB / 1.624 GB, free: 424 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/1.355, allocations: 0 / 1.624 GB, free: 424 kB / 0.9323 GB Notification: Performance of matching and sorting (n=1): time 0.0001598/1.355, allocations: 45.58 kB / 1.624 GB, free: 372 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/1.355, allocations: 51.41 kB / 1.624 GB, free: 308 kB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.462e-05/1.355, allocations: 96.81 kB / 1.624 GB, free: 208 kB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/1.355, allocations: 25.7 kB / 1.624 GB, free: 176 kB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/1.355, allocations: 84.05 kB / 1.625 GB, free: 88 kB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 8.396e-06/1.355, allocations: 3.984 kB / 1.625 GB, free: 84 kB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/1.355, allocations: 0 / 1.625 GB, free: 84 kB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001407/1.356, allocations: 318.7 kB / 1.625 GB, free: 15.77 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.415e-05/1.356, allocations: 4.125 kB / 1.625 GB, free: 15.76 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.38e-05/1.356, allocations: 13.72 kB / 1.625 GB, free: 15.74 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.39e-05/1.356, allocations: 11.8 kB / 1.625 GB, free: 15.73 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/1.356, allocations: 0 / 1.625 GB, free: 15.73 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.867e-05/1.356, allocations: 45.64 kB / 1.625 GB, free: 15.68 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/1.356, allocations: 4 kB / 1.625 GB, free: 15.68 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/1.356, allocations: 3.984 kB / 1.625 GB, free: 15.68 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/1.356, allocations: 4.062 kB / 1.625 GB, free: 15.67 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.33e-05/1.356, allocations: 11.83 kB / 1.625 GB, free: 15.66 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/1.356, allocations: 4 kB / 1.625 GB, free: 15.66 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.548e-05/1.356, allocations: 3.906 kB / 1.625 GB, free: 15.66 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/1.356, allocations: 3.938 kB / 1.625 GB, free: 15.65 MB / 0.948 GB 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 (3): * Single equations (assignments): 3 * 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 7.316e-05/1.356, allocations: 110.7 kB / 1.625 GB, free: 15.54 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/1.356, allocations: 4.219 kB / 1.625 GB, free: 15.53 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/1.356, allocations: 120.9 kB / 1.625 GB, free: 15.41 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.326e-05/1.356, allocations: 188.2 kB / 1.625 GB, free: 15.21 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-05/1.356, allocations: 184.2 kB / 1.625 GB, free: 15.03 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.901e-05/1.356, allocations: 176.3 kB / 1.626 GB, free: 14.85 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/1.357, allocations: 408.8 kB / 1.626 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.933e-05/1.357, allocations: 105 kB / 1.626 GB, free: 14.29 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-05/1.357, allocations: 108.9 kB / 1.626 GB, free: 14.17 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-05/1.357, allocations: 176.3 kB / 1.626 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.723e-05/1.357, allocations: 176.3 kB / 1.627 GB, free: 13.81 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.519e-05/1.357, allocations: 195.4 kB / 1.627 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.807e-05/1.357, allocations: 176.3 kB / 1.627 GB, free: 13.44 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/1.357, allocations: 318.8 kB / 1.627 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.836e-05/1.357, allocations: 178.1 kB / 1.627 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/1.357, allocations: 188.2 kB / 1.628 GB, free: 12.71 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/1.358, allocations: 108.5 kB / 1.628 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.223e-05/1.358, allocations: 184.2 kB / 1.628 GB, free: 12.42 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.463e-05/1.358, allocations: 101 kB / 1.628 GB, free: 12.31 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.681e-05/1.358, allocations: 86.83 kB / 1.628 GB, free: 12.23 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.5e-07/1.358, allocations: 4 kB / 1.628 GB, free: 12.23 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002498/1.358, allocations: 19.89 kB / 1.628 GB, free: 12.21 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.0005315/1.359, allocations: 0.8411 MB / 1.629 GB, free: 11.34 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 6.767e-05/1.359, allocations: 8 kB / 1.629 GB, free: 11.34 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/1.359, allocations: 128 / 1.629 GB, free: 11.34 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 2.184e-06/1.359, allocations: 4 kB / 1.629 GB, free: 11.33 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/1.359, allocations: 0.5297 MB / 1.629 GB, free: 10.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/1.359, allocations: 225.6 kB / 1.63 GB, free: 10.54 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/1.36, allocations: 0.6809 MB / 1.63 GB, free: 9.832 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 4.681e-05/1.36, allocations: 4 kB / 1.63 GB, free: 9.828 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.664e-05/1.36, allocations: 11.44 kB / 1.63 GB, free: 9.816 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/1.36, allocations: 3.938 kB / 1.63 GB, free: 9.812 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0135/1.373, allocations: 1.602 MB / 1.632 GB, free: 8.355 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/1.374, allocations: 189.6 kB / 1.632 GB, free: 8.113 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.597/2.97, allocations: 0 / 1.632 GB, free: 8.113 MB / 0.948 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat