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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007369/0.007369, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001352/0.001352, allocations: 195.2 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002088/0.002088, allocations: 282.8 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9451/0.9451, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 92.14 kB / 0.6809 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.171, allocations: 86.98 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.5361/0.7071, allocations: 148.3 MB / 0.9107 GB, free: 14.79 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.000136/0.7073, allocations: 61.34 kB / 0.9107 GB, free: 14.74 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.7e-05/0.7074, allocations: 0 / 0.9107 GB, free: 14.74 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.7075, allocations: 7.938 kB / 0.9107 GB, free: 14.73 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 7.558e-05/0.7076, allocations: 7.922 kB / 0.9107 GB, free: 14.72 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007372/0.7083, allocations: 215.2 kB / 0.911 GB, free: 14.52 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 8.099e-05/0.7084, allocations: 27.92 kB / 0.911 GB, free: 14.49 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.801e-05/0.7085, allocations: 4 kB / 0.911 GB, free: 14.49 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 4.029e-05/0.7085, allocations: 27.84 kB / 0.911 GB, free: 14.46 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 6.526e-05/0.7086, allocations: 4 kB / 0.911 GB, free: 14.46 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.7086, allocations: 4 kB / 0.911 GB, free: 14.45 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000427/0.709, allocations: 195.4 kB / 0.9112 GB, free: 14.26 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 3.855e-05/0.7091, allocations: 7.938 kB / 0.9112 GB, free: 14.25 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 2.743e-05/0.7091, allocations: 19.91 kB / 0.9112 GB, free: 14.23 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.7094, allocations: 120.4 kB / 0.9113 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.7094, allocations: 0 / 0.9113 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.322e-06/0.7094, allocations: 0 / 0.9113 GB, free: 14.12 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.7094, allocations: 0 / 0.9113 GB, free: 14.12 MB / 0.67 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.0003878/0.7098, allocations: 340 kB / 0.9117 GB, free: 13.74 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.7098, allocations: 12.03 kB / 0.9117 GB, free: 13.73 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.7099, allocations: 30.75 kB / 0.9117 GB, free: 13.69 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.7102, allocations: 24.91 kB / 0.9117 GB, free: 13.67 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.7103, allocations: 172.3 kB / 0.9119 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.354e-05/0.7104, allocations: 33.62 kB / 0.9119 GB, free: 13.42 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.7104, allocations: 4 kB / 0.9119 GB, free: 13.42 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.7105, allocations: 45.69 kB / 0.912 GB, free: 13.37 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.7105, allocations: 3.984 kB / 0.912 GB, free: 13.36 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.7106, allocations: 0 / 0.912 GB, free: 13.36 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.7106, allocations: 0.625 kB / 0.912 GB, free: 13.36 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.337e-05/0.7106, allocations: 23.98 kB / 0.912 GB, free: 13.34 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003846/0.711, allocations: 264.8 kB / 0.9123 GB, free: 13.03 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 5.757e-05/0.7111, allocations: 26.52 kB / 0.9123 GB, free: 13 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.352e-05/0.7111, allocations: 10.91 kB / 0.9123 GB, free: 12.98 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001804/0.7113, allocations: 97.16 kB / 0.9124 GB, free: 12.87 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.7114, allocations: 38.5 kB / 0.9124 GB, free: 12.82 MB / 0.67 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.7114, allocations: 0 / 0.9124 GB, free: 12.82 MB / 0.67 GB Notification: Performance of matching and sorting (n=2): time 0.0002648/0.7116, allocations: 53.59 kB / 0.9125 GB, free: 12.77 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.7117, allocations: 55.34 kB / 0.9125 GB, free: 12.7 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.56e-05/0.7118, allocations: 101.8 kB / 0.9126 GB, free: 12.59 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.7118, allocations: 29.7 kB / 0.9127 GB, free: 12.55 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 5.594e-05/0.7119, allocations: 88.03 kB / 0.9127 GB, free: 12.46 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 8.586e-06/0.7119, allocations: 128 / 0.9127 GB, free: 12.46 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.7119, allocations: 25.62 kB / 0.9128 GB, free: 12.43 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.712, allocations: 310.8 kB / 0.9131 GB, free: 12.12 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.908e-05/0.7121, allocations: 5.188 kB / 0.9131 GB, free: 12.12 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.168e-05/0.7121, allocations: 26.56 kB / 0.9131 GB, free: 12.08 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.559e-05/0.7121, allocations: 38.52 kB / 0.9131 GB, free: 12.04 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.7122, allocations: 0 / 0.9131 GB, free: 12.04 MB / 0.67 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.84e-05/0.7122, allocations: 53.62 kB / 0.9132 GB, free: 11.98 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.7123, allocations: 4 kB / 0.9132 GB, free: 11.97 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.7123, allocations: 0 / 0.9132 GB, free: 11.97 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.7123, allocations: 4 kB / 0.9132 GB, free: 11.97 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.385e-05/0.7124, allocations: 7.984 kB / 0.9132 GB, free: 11.96 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.7124, allocations: 3.938 kB / 0.9132 GB, free: 11.96 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.271e-05/0.7124, allocations: 8.031 kB / 0.9132 GB, free: 11.95 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.7124, allocations: 5.125 kB / 0.9132 GB, free: 11.95 MB / 0.67 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.879e-05/0.7125, allocations: 114.5 kB / 0.9133 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.621e-05/0.7126, allocations: 0 / 0.9133 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.434e-05/0.7126, allocations: 3.125 kB / 0.9133 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.7126, allocations: 0 / 0.9133 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.7126, allocations: 7.938 kB / 0.9133 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.7126, allocations: 0 / 0.9133 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000363/0.713, allocations: 367.5 kB / 0.9137 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.713, allocations: 0 / 0.9137 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.895e-05/0.713, allocations: 4 kB / 0.9137 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.713, allocations: 5.312 kB / 0.9137 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.7131, allocations: 0 / 0.9137 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.7131, allocations: 7.938 kB / 0.9137 GB, free: 11.38 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.7131, allocations: 0 / 0.9137 GB, free: 11.38 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.7132, allocations: 70.05 kB / 0.9138 GB, free: 11.29 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.7132, allocations: 92.92 kB / 0.9138 GB, free: 11.18 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.7133, allocations: 0 / 0.9138 GB, free: 11.18 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.612e-05/0.7134, allocations: 11.98 kB / 0.9139 GB, free: 11.17 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.327e-05/0.7134, allocations: 0 / 0.9139 GB, free: 11.17 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.7134, allocations: 0 / 0.9139 GB, free: 11.17 MB / 0.67 GB Notification: Performance of sorting global known variables: time 4.17e-05/0.7134, allocations: 79.56 kB / 0.9139 GB, free: 11.09 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7134, allocations: 0 / 0.9139 GB, free: 11.09 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001964/0.7136, allocations: 12.03 kB / 0.9139 GB, free: 11.08 MB / 0.67 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004865/0.7141, allocations: 0.6167 MB / 0.9146 GB, free: 10.43 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0001095/0.7143, allocations: 23.95 kB / 0.9146 GB, free: 10.41 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.7143, allocations: 4 kB / 0.9146 GB, free: 10.41 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 1.018e-05/0.7143, allocations: 4 kB / 0.9146 GB, free: 10.4 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.7146, allocations: 0 / 0.9146 GB, free: 10.4 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004927/0.7151, allocations: 164.4 kB / 0.9147 GB, free: 10.2 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.7154, allocations: 0.6768 MB / 0.9154 GB, free: 9.496 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 5.259e-05/0.7155, allocations: 7.984 kB / 0.9154 GB, free: 9.488 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.7155, allocations: 7.438 kB / 0.9154 GB, free: 9.48 MB / 0.67 GB Notification: Performance of SimCode: time 6.31e-07/0.7155, allocations: 0 / 0.9154 GB, free: 9.48 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.7333, allocations: 1.473 MB / 0.9169 GB, free: 8.141 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.971/7.705, allocations: 13.81 kB / 0.9169 GB, free: 8.129 MB / 0.67 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/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)