Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.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.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate",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.001272/0.001272, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001348/0.001348, allocations: 195.3 kB / 16.14 MB, free: 6.715 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.267/1.267, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002002/0.002002, allocations: 280 kB / 290.2 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8932/0.8932, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 93.08 kB / 0.5946 GB, free: 28.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1541, allocations: 86.98 MB / 0.6795 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.4324/0.5866, allocations: 165.3 MB / 0.8409 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006267/0.5929, allocations: 6.556 MB / 0.8474 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006239/0.5935, allocations: 10.81 kB / 0.8474 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005826/0.5941, allocations: 129 kB / 0.8475 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002065/0.5962, allocations: 0.7948 MB / 0.8483 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008616/0.5971, allocations: 297.7 kB / 0.8485 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009678/0.5981, allocations: 1.011 MB / 0.8495 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.5985, allocations: 235 kB / 0.8498 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001118/0.5996, allocations: 0.516 MB / 0.8503 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003707/0.6, allocations: 279 kB / 0.8505 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.836e-05/0.6, allocations: 16 kB / 0.8505 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007449/0.6008, allocations: 395.6 kB / 0.8509 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.6009, allocations: 101.1 kB / 0.851 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.6011, allocations: 153.2 kB / 0.8512 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0006013/0.6017, allocations: 485.1 kB / 0.8516 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.6017, allocations: 0 / 0.8516 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.323e-06/0.6017, allocations: 0 / 0.8516 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.6017, allocations: 0 / 0.8516 GB, free: 11.88 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.000865/0.6026, allocations: 0.6193 MB / 0.8522 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.6026, allocations: 7.719 kB / 0.8522 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.569e-05/0.6027, allocations: 64.88 kB / 0.8523 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.603, allocations: 62.45 kB / 0.8524 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003833/0.6034, allocations: 306.2 kB / 0.8526 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.6034, allocations: 22.97 kB / 0.8527 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.6035, allocations: 24.09 kB / 0.8527 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004905/0.604, allocations: 327.1 kB / 0.853 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.604, allocations: 3.406 kB / 0.853 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.368e-05/0.604, allocations: 8 kB / 0.853 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.604, allocations: 7.188 kB / 0.853 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003885/0.6044, allocations: 197.2 kB / 0.8532 GB, free: 10.6 MB / 0.5762 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.6059, allocations: 1.538 MB / 0.8547 GB, free: 9.156 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.6062, allocations: 124.3 kB / 0.8548 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.6065, allocations: 93.36 kB / 0.8549 GB, free: 9.031 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000643/0.6071, allocations: 301.8 kB / 0.8552 GB, free: 8.727 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.6072, allocations: 34.56 kB / 0.8552 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.6072, allocations: 0 / 0.8552 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of matching and sorting (n=13): time 0.000698/0.6079, allocations: 271.1 kB / 0.8555 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.6079, allocations: 51.41 kB / 0.8555 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.6082, allocations: 315.4 kB / 0.8558 GB, free: 8.277 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.6082, allocations: 29.7 kB / 0.8559 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.6084, allocations: 185.4 kB / 0.8561 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.6084, allocations: 40.52 kB / 0.8561 GB, free: 8.039 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.584e-05/0.6085, allocations: 40.3 kB / 0.8561 GB, free: 8.008 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.6086, allocations: 340.8 kB / 0.8565 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.6088, allocations: 60.2 kB / 0.8565 GB, free: 7.645 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.6091, allocations: 114.3 kB / 0.8566 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004153/0.6095, allocations: 169.7 kB / 0.8568 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.6095, allocations: 3.938 kB / 0.8568 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004569/0.61, allocations: 223.5 kB / 0.857 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.61, allocations: 7.375 kB / 0.857 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.61, allocations: 0 / 0.857 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.61, allocations: 2.719 kB / 0.857 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.6102, allocations: 37.11 kB / 0.857 GB, free: 7.301 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.6102, allocations: 2.094 kB / 0.857 GB, free: 7.301 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.6104, allocations: 38.69 kB / 0.8571 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.6105, allocations: 9.781 kB / 0.8571 GB, free: 7.273 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (17): * Single equations (assignments): 17 * 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 0.0001405/0.6106, allocations: 154.3 kB / 0.8572 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.983e-05/0.6107, allocations: 27.75 kB / 0.8573 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004191/0.6111, allocations: 210.1 kB / 0.8575 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.6111, allocations: 0 / 0.8575 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.6111, allocations: 2.719 kB / 0.8575 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.6111, allocations: 4 kB / 0.8575 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009345/0.6121, allocations: 0.6862 MB / 0.8581 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.6121, allocations: 0 / 0.8581 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.6122, allocations: 30.11 kB / 0.8582 GB, free: 6.398 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.6122, allocations: 3 kB / 0.8582 GB, free: 6.398 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.6122, allocations: 2.375 kB / 0.8582 GB, free: 6.398 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.6122, allocations: 10.41 kB / 0.8582 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6122, allocations: 2.281 kB / 0.8582 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000391/0.6126, allocations: 341.7 kB / 0.8585 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.6128, allocations: 123.6 kB / 0.8586 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.6128, allocations: 6.672 kB / 0.8586 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.613, allocations: 21.77 kB / 0.8587 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.613, allocations: 13.17 kB / 0.8587 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.613, allocations: 4.406 kB / 0.8587 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001793/0.6132, allocations: 227.2 kB / 0.8589 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6132, allocations: 0 / 0.8589 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003668/0.6136, allocations: 78.02 kB / 0.859 GB, free: 5.801 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (13): * Single equations (assignments): 13 * 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.0009551/0.6146, allocations: 0.9181 MB / 0.8599 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003652/0.6149, allocations: 153.5 kB / 0.86 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.615, allocations: 320 / 0.86 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.6151, allocations: 89.25 kB / 0.8601 GB, free: 4.855 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008209/0.616, allocations: 143.8 kB / 0.8602 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/0.6191, allocations: 2.91 MB / 0.8631 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.6194, allocations: 0.7812 MB / 0.8638 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002064/0.6196, allocations: 60.27 kB / 0.8639 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.6198, allocations: 90.34 kB / 0.864 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/0.6198, allocations: 0 / 0.864 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.6381, allocations: 7.695 MB / 0.8715 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.6384, allocations: 257.7 kB / 0.8717 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.518, allocations: 0 / 0.8717 GB, free: 13.73 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1)