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.00499/0.00499, allocations: 96.7 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.001401/0.001401, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.367/1.367, 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.002363/0.002363, allocations: 283.1 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 1.023/1.023, allocations: 178.6 MB / 0.5074 GB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002604/0.002604, allocations: 102.3 kB / 0.6943 GB, free: 3.598 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4386/0.4412, allocations: 89.13 MB / 0.7814 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.1871/0.6283, allocations: 167.5 MB / 0.945 GB, free: 7.133 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.007354/0.6357, allocations: 6.524 MB / 0.9513 GB, free: 0.5898 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002771/0.636, allocations: 19.88 kB / 0.9514 GB, free: 0.5703 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.0004718/0.6365, allocations: 170.7 kB / 0.9515 GB, free: 412 kB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.001774/0.6383, allocations: 0.8362 MB / 0.9523 GB, free: 15.56 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008044/0.6391, allocations: 338.4 kB / 0.9527 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007586/0.6399, allocations: 0.7173 MB / 0.9534 GB, free: 14.52 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000402/0.6403, allocations: 278.8 kB / 0.9536 GB, free: 14.24 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009504/0.6413, allocations: 0.5447 MB / 0.9542 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003516/0.6416, allocations: 274.9 kB / 0.9544 GB, free: 13.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.6417, allocations: 24 kB / 0.9544 GB, free: 13.4 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005623/0.6423, allocations: 339.2 kB / 0.9548 GB, free: 13.07 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.6424, allocations: 103.7 kB / 0.9549 GB, free: 12.97 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.6426, allocations: 163.2 kB / 0.955 GB, free: 12.81 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.6432, allocations: 471.5 kB / 0.9555 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.6432, allocations: 0 / 0.9555 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6432, allocations: 0 / 0.9555 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.6432, allocations: 3.984 kB / 0.9555 GB, free: 12.35 MB / 0.7169 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.000803/0.644, allocations: 0.6306 MB / 0.9561 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.6441, allocations: 8.031 kB / 0.9561 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.22e-05/0.6441, allocations: 62.53 kB / 0.9562 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002777/0.6444, allocations: 71.66 kB / 0.9562 GB, free: 11.52 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004505/0.6449, allocations: 333.3 kB / 0.9565 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.6449, allocations: 20.56 kB / 0.9566 GB, free: 11.14 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.645, allocations: 24 kB / 0.9566 GB, free: 11.11 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.6455, allocations: 319.6 kB / 0.9569 GB, free: 10.78 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.6455, allocations: 4 kB / 0.9569 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.6455, allocations: 8 kB / 0.9569 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.6455, allocations: 8 kB / 0.9569 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.646, allocations: 201.5 kB / 0.9571 GB, free: 10.56 MB / 0.7169 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.001485/0.6474, allocations: 1.535 MB / 0.9586 GB, free: 8.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.6477, allocations: 114.5 kB / 0.9587 GB, free: 8.77 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.6479, allocations: 96.8 kB / 0.9588 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005762/0.6485, allocations: 303.2 kB / 0.9591 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.6485, allocations: 34.5 kB / 0.9591 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.6485, allocations: 0 / 0.9591 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0007292/0.6493, allocations: 273.6 kB / 0.9594 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.6493, allocations: 55.41 kB / 0.9594 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000319/0.6496, allocations: 312.5 kB / 0.9597 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.6497, allocations: 25.7 kB / 0.9598 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.6498, allocations: 188.3 kB / 0.9599 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.6499, allocations: 47.58 kB / 0.96 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.098e-05/0.6499, allocations: 41.66 kB / 0.96 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.6501, allocations: 334.8 kB / 0.9603 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.6503, allocations: 63.95 kB / 0.9604 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.6505, allocations: 117 kB / 0.9605 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.6508, allocations: 180.9 kB / 0.9607 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.6508, allocations: 0 / 0.9607 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004574/0.6513, allocations: 217.4 kB / 0.9609 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.6513, allocations: 4 kB / 0.9609 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.6513, allocations: 4 kB / 0.9609 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.6514, allocations: 0 / 0.9609 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.6515, allocations: 35.92 kB / 0.9609 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.6515, allocations: 3.938 kB / 0.9609 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.6517, allocations: 31.83 kB / 0.961 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.6517, allocations: 4 kB / 0.961 GB, free: 6.277 MB / 0.7169 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.0001396/0.6519, allocations: 161.8 kB / 0.9611 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.051e-05/0.6519, allocations: 27.81 kB / 0.9612 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004288/0.6524, allocations: 205.5 kB / 0.9614 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.6524, allocations: 3.938 kB / 0.9614 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.6524, allocations: 4 kB / 0.9614 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.6524, allocations: 8.016 kB / 0.9614 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.6534, allocations: 0.6796 MB / 0.962 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.6534, allocations: 0 / 0.962 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.6536, allocations: 36.14 kB / 0.9621 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.6536, allocations: 0 / 0.9621 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.6536, allocations: 11.94 kB / 0.9621 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.6536, allocations: 8.062 kB / 0.9621 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6536, allocations: 0 / 0.9621 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004409/0.654, allocations: 345.2 kB / 0.9624 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.6542, allocations: 120.8 kB / 0.9625 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.74e-05/0.6542, allocations: 7.938 kB / 0.9625 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.6544, allocations: 15.98 kB / 0.9626 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.6544, allocations: 15.92 kB / 0.9626 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.6544, allocations: 8 kB / 0.9626 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002341/0.6547, allocations: 223 kB / 0.9628 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 4.01e-07/0.6547, allocations: 0 / 0.9628 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003496/0.655, allocations: 71.89 kB / 0.9629 GB, free: 4.203 MB / 0.7169 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.001004/0.656, allocations: 0.9184 MB / 0.9638 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003939/0.6565, allocations: 159.7 kB / 0.9639 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6565, allocations: 0 / 0.9639 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.6567, allocations: 87.81 kB / 0.964 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007777/0.6574, allocations: 150 kB / 0.9641 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00347/0.6609, allocations: 2.815 MB / 0.9669 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.6614, allocations: 0.7872 MB / 0.9677 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002142/0.6616, allocations: 58.95 kB / 0.9677 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.6618, allocations: 87.41 kB / 0.9678 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.6618, allocations: 8 kB / 0.9678 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03249/0.6943, allocations: 8.14 MB / 0.9758 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.542, allocations: 6.938 kB / 0.9758 GB, free: 6.988 MB / 0.7325 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1)