Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8902/0.8902, allocations: 143.4 MB / 158.3 MB, free: 5.793 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001126, allocations: 183.7 kB / 191.5 MB, free: 5.77 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 223.2 MB / 447.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009693/0.0009689, allocations: 92.27 kB / 0.5187 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002136/0.002136, allocations: 268.3 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004396/0.0004396, allocations: 11.81 kB / 0.6929 GB, free: 59.54 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1634, allocations: 82.8 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.618/3.782, allocations: 1.672 GB / 2.445 GB, free: 131.2 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/3.782, allocations: 73.05 kB / 2.445 GB, free: 131.2 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.06554/3.848, allocations: 37.41 MB / 2.482 GB, free: 93.32 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.874e-06/3.848, allocations: 0 / 2.482 GB, free: 93.32 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.051e-06/3.848, allocations: 0 / 2.482 GB, free: 93.32 MB / 0.7136 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.0002938/3.848, allocations: 351.3 kB / 2.482 GB, free: 92.93 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/3.848, allocations: 12.03 kB / 2.482 GB, free: 92.91 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/3.848, allocations: 30.56 kB / 2.482 GB, free: 92.88 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002552/3.848, allocations: 28.7 kB / 2.482 GB, free: 92.85 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.441e-05/3.848, allocations: 167.1 kB / 2.482 GB, free: 92.64 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.716e-05/3.848, allocations: 25.7 kB / 2.483 GB, free: 92.61 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-06/3.848, allocations: 4 kB / 2.483 GB, free: 92.61 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/3.849, allocations: 53.67 kB / 2.483 GB, free: 92.55 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/3.849, allocations: 3.938 kB / 2.483 GB, free: 92.55 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/3.849, allocations: 0 / 2.483 GB, free: 92.55 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/3.849, allocations: 3.938 kB / 2.483 GB, free: 92.54 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.841e-05/3.849, allocations: 23.94 kB / 2.483 GB, free: 92.52 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002819/3.849, allocations: 252.9 kB / 2.483 GB, free: 92.22 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.412e-05/3.849, allocations: 26.56 kB / 2.483 GB, free: 92.19 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/3.849, allocations: 93.17 kB / 2.483 GB, free: 92.08 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/3.849, allocations: 38.55 kB / 2.483 GB, free: 92.03 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/3.849, allocations: 0 / 2.483 GB, free: 92.03 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.0002123/3.849, allocations: 53.58 kB / 2.483 GB, free: 91.97 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/3.849, allocations: 55.34 kB / 2.483 GB, free: 91.91 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.623e-05/3.85, allocations: 97.12 kB / 2.483 GB, free: 91.8 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/3.85, allocations: 25.7 kB / 2.483 GB, free: 91.77 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.156e-05/3.85, allocations: 96.02 kB / 2.483 GB, free: 91.68 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.203e-06/3.85, allocations: 7.844 kB / 2.483 GB, free: 91.67 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/3.85, allocations: 0 / 2.483 GB, free: 91.67 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 4.146e-05/3.85, allocations: 314.8 kB / 2.484 GB, free: 91.35 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.309e-05/3.85, allocations: 4 kB / 2.484 GB, free: 91.35 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.086e-05/3.85, allocations: 30.56 kB / 2.484 GB, free: 91.31 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.074e-05/3.85, allocations: 11.94 kB / 2.484 GB, free: 91.3 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/3.85, allocations: 0 / 2.484 GB, free: 91.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.252e-05/3.85, allocations: 53.62 kB / 2.484 GB, free: 91.24 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/3.85, allocations: 4 kB / 2.484 GB, free: 91.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/3.85, allocations: 0 / 2.484 GB, free: 91.23 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/3.85, allocations: 4 kB / 2.484 GB, free: 91.23 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.639e-05/3.85, allocations: 4.094 kB / 2.484 GB, free: 91.23 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/3.85, allocations: 7.953 kB / 2.484 GB, free: 91.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.642e-05/3.85, allocations: 4 kB / 2.484 GB, free: 91.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/3.85, allocations: 0 / 2.484 GB, free: 91.21 MB / 0.7136 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 4.574e-05/3.85, allocations: 114.4 kB / 2.484 GB, free: 91.09 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/3.85, allocations: 3.906 kB / 2.484 GB, free: 91.09 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.093e-05/3.85, allocations: 11.12 kB / 2.484 GB, free: 91.08 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/3.85, allocations: 0 / 2.484 GB, free: 91.08 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/3.85, allocations: 0 / 2.484 GB, free: 91.08 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/3.85, allocations: 3.953 kB / 2.484 GB, free: 91.07 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/3.85, allocations: 363.6 kB / 2.484 GB, free: 90.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/3.85, allocations: 4 kB / 2.484 GB, free: 90.65 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.346e-05/3.85, allocations: 4 kB / 2.484 GB, free: 90.65 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/3.85, allocations: 0 / 2.484 GB, free: 90.65 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/3.85, allocations: 7.953 kB / 2.484 GB, free: 90.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/3.85, allocations: 0 / 2.484 GB, free: 90.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/3.85, allocations: 3.938 kB / 2.484 GB, free: 90.64 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.165e-05/3.85, allocations: 83.98 kB / 2.484 GB, free: 90.53 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.574e-05/3.85, allocations: 81.11 kB / 2.484 GB, free: 90.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/3.85, allocations: 11.94 kB / 2.484 GB, free: 90.42 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.469e-05/3.851, allocations: 4 kB / 2.484 GB, free: 90.41 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.638e-05/3.851, allocations: 11.95 kB / 2.484 GB, free: 90.4 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/3.851, allocations: 4 kB / 2.484 GB, free: 90.4 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.291e-05/3.851, allocations: 79.28 kB / 2.484 GB, free: 90.32 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.41e-07/3.851, allocations: 0 / 2.484 GB, free: 90.32 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003002/3.851, allocations: 39.98 kB / 2.485 GB, free: 90.28 MB / 0.7136 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.0006306/3.852, allocations: 1.142 MB / 2.486 GB, free: 89.11 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.52e-05/3.852, allocations: 23.92 kB / 2.486 GB, free: 89.09 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/3.852, allocations: 0 / 2.486 GB, free: 89.09 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.137e-06/3.852, allocations: 4 kB / 2.486 GB, free: 89.08 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/3.852, allocations: 8.156 kB / 2.486 GB, free: 89.08 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003253/3.852, allocations: 163.9 kB / 2.486 GB, free: 88.88 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.867e-05/3.852, allocations: 0.6809 MB / 2.486 GB, free: 88.17 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.651e-05/3.852, allocations: 4 kB / 2.486 GB, free: 88.16 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/3.852, allocations: 15.44 kB / 2.487 GB, free: 88.15 MB / 0.7136 GB Notification: Performance of SimCode: time 2.8e-07/3.852, allocations: 0 / 2.487 GB, free: 88.15 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/3.878, allocations: 10.26 MB / 2.497 GB, free: 78.04 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/3.878, allocations: 191.3 kB / 2.497 GB, free: 77.8 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/5.833, allocations: 0 / 2.497 GB, free: 77.8 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)