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.001059/0.001059, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 191.3 kB / 16.53 MB, free: 6.391 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.25/1.25, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002023/0.002023, allocations: 278.5 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8974/0.8974, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 95.58 kB / 0.5953 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1313, allocations: 86.99 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.3638/0.4951, allocations: 148.3 MB / 0.8251 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001106/0.4953, allocations: 55.89 kB / 0.8251 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.004e-05/0.4953, allocations: 0.6875 kB / 0.8251 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.608e-05/0.4954, allocations: 2.828 kB / 0.8251 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.191e-05/0.4955, allocations: 19.39 kB / 0.8251 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/0.4961, allocations: 215.2 kB / 0.8253 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.298e-05/0.4962, allocations: 36.17 kB / 0.8254 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.235e-05/0.4962, allocations: 1.594 kB / 0.8254 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.444e-05/0.4963, allocations: 14.88 kB / 0.8254 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.401e-05/0.4963, allocations: 8.406 kB / 0.8254 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.4963, allocations: 5.719 kB / 0.8254 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003812/0.4967, allocations: 205.5 kB / 0.8256 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.4968, allocations: 8.938 kB / 0.8256 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.4968, allocations: 9.969 kB / 0.8256 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.497, allocations: 106.5 kB / 0.8257 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4971, allocations: 3.625 kB / 0.8257 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.062e-06/0.4971, allocations: 0.6875 kB / 0.8257 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.4971, allocations: 0 / 0.8257 GB, free: 1.281 MB / 0.5606 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.0003592/0.4974, allocations: 346.2 kB / 0.8261 GB, free: 16.92 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.4975, allocations: 9.406 kB / 0.8261 GB, free: 16.92 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.166e-05/0.4975, allocations: 35.75 kB / 0.8261 GB, free: 16.88 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002803/0.4978, allocations: 25.83 kB / 0.8261 GB, free: 16.88 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.339e-05/0.4979, allocations: 169.3 kB / 0.8263 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.4979, allocations: 30.92 kB / 0.8263 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-06/0.498, allocations: 1.281 kB / 0.8263 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.4981, allocations: 48.3 kB / 0.8264 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.4981, allocations: 4.594 kB / 0.8264 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.4981, allocations: 1.25 kB / 0.8264 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.4981, allocations: 5.094 kB / 0.8264 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.755e-05/0.4982, allocations: 25.81 kB / 0.8264 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002608/0.4985, allocations: 257.2 kB / 0.8266 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.556e-05/0.4985, allocations: 22.52 kB / 0.8267 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.526e-05/0.4985, allocations: 9.484 kB / 0.8267 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001299/0.4987, allocations: 97.98 kB / 0.8268 GB, free: 16.21 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.4987, allocations: 31.75 kB / 0.8268 GB, free: 16.17 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.4987, allocations: 0 / 0.8268 GB, free: 16.17 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0002026/0.4989, allocations: 53.05 kB / 0.8268 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.4989, allocations: 51.41 kB / 0.8269 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.476e-05/0.499, allocations: 116.8 kB / 0.827 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.499, allocations: 25.7 kB / 0.827 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.216e-05/0.4991, allocations: 85.14 kB / 0.8271 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.992e-06/0.4991, allocations: 8.438 kB / 0.8271 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.371e-05/0.4991, allocations: 15.72 kB / 0.8271 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.072e-05/0.4992, allocations: 315.1 kB / 0.8274 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.435e-05/0.4992, allocations: 3.469 kB / 0.8274 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.994e-05/0.4992, allocations: 28.42 kB / 0.8275 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.369e-05/0.4992, allocations: 33.69 kB / 0.8275 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.4993, allocations: 0 / 0.8275 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.077e-05/0.4993, allocations: 55.84 kB / 0.8275 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.4993, allocations: 4.906 kB / 0.8276 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.4994, allocations: 3.703 kB / 0.8276 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.4994, allocations: 4.094 kB / 0.8276 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.946e-05/0.4994, allocations: 6.781 kB / 0.8276 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4994, allocations: 5.938 kB / 0.8276 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.648e-05/0.4995, allocations: 1.062 kB / 0.8276 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.4995, allocations: 2.125 kB / 0.8276 GB, free: 15.41 MB / 0.5762 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 5.606e-05/0.4995, allocations: 119.1 kB / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.4996, allocations: 5.031 kB / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.652e-05/0.4996, allocations: 12.02 kB / 0.8277 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.4996, allocations: 5.094 kB / 0.8277 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4996, allocations: 5.812 kB / 0.8277 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.4996, allocations: 3.938 kB / 0.8277 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/0.4998, allocations: 358.7 kB / 0.8281 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4998, allocations: 2.812 kB / 0.8281 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.502e-05/0.4999, allocations: 3.5 kB / 0.8281 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4999, allocations: 3.938 kB / 0.8281 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-06/0.4999, allocations: 1.188 kB / 0.8281 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4999, allocations: 5.312 kB / 0.8281 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4999, allocations: 0 / 0.8281 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.663e-05/0.5, allocations: 66.48 kB / 0.8281 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.726e-05/0.5, allocations: 88.19 kB / 0.8282 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.5, allocations: 1.25 kB / 0.8282 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.684e-05/0.5001, allocations: 12.38 kB / 0.8282 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-06/0.5001, allocations: 5.156 kB / 0.8282 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.5001, allocations: 2.969 kB / 0.8282 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.206e-05/0.5002, allocations: 80.69 kB / 0.8283 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5002, allocations: 1.062 kB / 0.8283 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001829/0.5003, allocations: 5.719 kB / 0.8283 GB, free: 14.62 MB / 0.5762 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.0002659/0.5006, allocations: 0.6114 MB / 0.8289 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 6.55e-05/0.5007, allocations: 19.91 kB / 0.8289 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5007, allocations: 1.125 kB / 0.8289 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 9.789e-06/0.5007, allocations: 3.875 kB / 0.829 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.5009, allocations: 8.125 kB / 0.829 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002846/0.5012, allocations: 157.3 kB / 0.8291 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.5014, allocations: 0.6785 MB / 0.8298 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.058e-05/0.5014, allocations: 7.219 kB / 0.8298 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.196e-05/0.5015, allocations: 10.41 kB / 0.8298 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/0.5015, allocations: 5.062 kB / 0.8298 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2074/0.7088, allocations: 1.441 MB / 0.8312 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.576/10.29, allocations: 6.5 kB / 0.8312 GB, free: 12.79 MB / 0.5762 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)