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.7448/0.7448, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 176.3 kB / 187.3 MB, free: 11.89 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.461/1.461, allocations: 221.3 MB / 441.4 MB, free: 4.617 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.0009044/0.0009043, allocations: 99.72 kB / 0.5124 GB, free: 24.15 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001851/0.001851, allocations: 282 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.292e-05/4.295e-05, allocations: 4 kB / 0.6835 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4588/0.4588, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.146/4.605, allocations: 1.671 GB / 2.436 GB, free: 71.61 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/4.606, allocations: 67.72 kB / 2.436 GB, free: 71.57 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.06849/4.674, allocations: 37.36 MB / 2.472 GB, free: 39.96 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.653e-06/4.674, allocations: 0 / 2.472 GB, free: 39.96 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.586e-06/4.674, allocations: 0 / 2.472 GB, free: 39.96 MB / 0.698 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.0003522/4.675, allocations: 343.6 kB / 2.473 GB, free: 39.58 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/4.675, allocations: 12.03 kB / 2.473 GB, free: 39.57 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.046e-05/4.675, allocations: 38.5 kB / 2.473 GB, free: 39.52 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002785/4.675, allocations: 23.92 kB / 2.473 GB, free: 39.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/4.675, allocations: 171 kB / 2.473 GB, free: 39.29 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.311e-05/4.675, allocations: 29.69 kB / 2.473 GB, free: 39.26 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/4.675, allocations: 4 kB / 2.473 GB, free: 39.25 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/4.675, allocations: 41.69 kB / 2.473 GB, free: 39.21 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/4.675, allocations: 0 / 2.473 GB, free: 39.21 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/4.675, allocations: 0 / 2.473 GB, free: 39.21 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/4.675, allocations: 8 kB / 2.473 GB, free: 39.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.782e-05/4.675, allocations: 23.94 kB / 2.473 GB, free: 39.18 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003507/4.676, allocations: 252.9 kB / 2.473 GB, free: 38.88 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.472e-05/4.676, allocations: 26.52 kB / 2.473 GB, free: 38.84 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.085e-05/4.676, allocations: 8.859 kB / 2.473 GB, free: 38.83 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/4.676, allocations: 97.16 kB / 2.473 GB, free: 38.72 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.658e-05/4.676, allocations: 30.56 kB / 2.473 GB, free: 38.68 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/4.676, allocations: 0 / 2.473 GB, free: 38.68 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0002238/4.676, allocations: 49.64 kB / 2.473 GB, free: 38.62 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/4.676, allocations: 55.41 kB / 2.474 GB, free: 38.56 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.795e-05/4.676, allocations: 92.94 kB / 2.474 GB, free: 38.46 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/4.676, allocations: 29.73 kB / 2.474 GB, free: 38.43 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.796e-05/4.676, allocations: 96.02 kB / 2.474 GB, free: 38.33 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.456e-06/4.677, allocations: 7.906 kB / 2.474 GB, free: 38.32 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/4.677, allocations: 0 / 2.474 GB, free: 38.32 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.581e-05/4.677, allocations: 310.8 kB / 2.474 GB, free: 38.01 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.682e-05/4.677, allocations: 8 kB / 2.474 GB, free: 38 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.481e-05/4.677, allocations: 30.67 kB / 2.474 GB, free: 37.96 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.18e-05/4.677, allocations: 8 kB / 2.474 GB, free: 37.95 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/4.677, allocations: 4 kB / 2.474 GB, free: 37.95 MB / 0.698 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.56e-05/4.677, allocations: 53.62 kB / 2.474 GB, free: 37.89 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/4.677, allocations: 4 kB / 2.474 GB, free: 37.89 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/4.677, allocations: 0 / 2.474 GB, free: 37.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/4.677, allocations: 0 / 2.474 GB, free: 37.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.88e-05/4.677, allocations: 11.95 kB / 2.474 GB, free: 37.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/4.677, allocations: 0 / 2.474 GB, free: 37.88 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.133e-05/4.677, allocations: 19.97 kB / 2.474 GB, free: 37.86 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/4.677, allocations: 0 / 2.474 GB, free: 37.86 MB / 0.698 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 () * 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.813e-05/4.677, allocations: 101 kB / 2.474 GB, free: 37.75 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/4.677, allocations: 4 kB / 2.474 GB, free: 37.75 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.593e-05/4.677, allocations: 11.11 kB / 2.474 GB, free: 37.73 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/4.677, allocations: 0 / 2.474 GB, free: 37.73 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/4.677, allocations: 3.953 kB / 2.474 GB, free: 37.73 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/4.677, allocations: 0 / 2.474 GB, free: 37.73 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/4.677, allocations: 371.4 kB / 2.475 GB, free: 37.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/4.677, allocations: 0 / 2.475 GB, free: 37.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-05/4.677, allocations: 4 kB / 2.475 GB, free: 37.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/4.677, allocations: 0 / 2.475 GB, free: 37.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/4.677, allocations: 7.953 kB / 2.475 GB, free: 37.29 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/4.677, allocations: 0 / 2.475 GB, free: 37.29 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/4.677, allocations: 0 / 2.475 GB, free: 37.29 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.784e-05/4.677, allocations: 91.7 kB / 2.475 GB, free: 37.18 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.507e-05/4.678, allocations: 81.06 kB / 2.475 GB, free: 37.08 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/4.678, allocations: 4 kB / 2.475 GB, free: 37.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.063e-05/4.678, allocations: 4 kB / 2.475 GB, free: 37.07 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.806e-05/4.678, allocations: 0 / 2.475 GB, free: 37.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/4.678, allocations: 0 / 2.475 GB, free: 37.07 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.068e-05/4.678, allocations: 87.3 kB / 2.475 GB, free: 36.98 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/4.678, allocations: 0 / 2.475 GB, free: 36.98 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003128/4.678, allocations: 39.98 kB / 2.475 GB, free: 36.95 MB / 0.698 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 () * 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.0008561/4.679, allocations: 1.134 MB / 2.476 GB, free: 35.79 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 9.16e-05/4.679, allocations: 19.94 kB / 2.476 GB, free: 35.77 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/4.679, allocations: 3.938 kB / 2.476 GB, free: 35.76 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.077e-05/4.679, allocations: 4 kB / 2.476 GB, free: 35.76 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/4.679, allocations: 7.938 kB / 2.476 GB, free: 35.75 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002928/4.679, allocations: 107.7 kB / 2.476 GB, free: 35.61 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/4.68, allocations: 0.677 MB / 2.477 GB, free: 34.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.014e-05/4.68, allocations: 4 kB / 2.477 GB, free: 34.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/4.68, allocations: 15.44 kB / 2.477 GB, free: 34.89 MB / 0.698 GB Notification: Performance of SimCode: time 3.5e-07/4.68, allocations: 0 / 2.477 GB, free: 34.89 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02793/4.708, allocations: 11.98 MB / 2.489 GB, free: 23.05 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/4.708, allocations: 166.7 kB / 2.489 GB, free: 22.83 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.996/6.704, allocations: 0 / 2.489 GB, free: 22.83 MB / 0.698 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)