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.001338/0.001338, allocations: 108 kB / 15.61 MB, free: 152 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.001283/0.001283, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.37/1.37, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002402/0.002402, allocations: 282.9 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.038/1.038, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002638/0.002638, allocations: 104.7 kB / 0.6065 GB, free: 24.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1594, allocations: 89.14 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.4796/0.6391, allocations: 167.5 MB / 0.8572 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.007196/0.6463, allocations: 6.539 MB / 0.8636 GB, free: 8.359 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.6466, allocations: 15.53 kB / 0.8636 GB, free: 8.352 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0004797/0.6471, allocations: 174.6 kB / 0.8638 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001767/0.6489, allocations: 0.8351 MB / 0.8646 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007705/0.6497, allocations: 332.1 kB / 0.8649 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006638/0.6504, allocations: 0.7158 MB / 0.8656 GB, free: 6.918 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.6508, allocations: 283.1 kB / 0.8659 GB, free: 6.75 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008839/0.6517, allocations: 0.5453 MB / 0.8664 GB, free: 6.414 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000326/0.652, allocations: 274.6 kB / 0.8667 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.6521, allocations: 22.59 kB / 0.8667 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005621/0.6526, allocations: 341 kB / 0.867 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.6527, allocations: 104.7 kB / 0.8671 GB, free: 6.008 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.6529, allocations: 159.3 kB / 0.8673 GB, free: 5.91 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.000559/0.6535, allocations: 465.9 kB / 0.8677 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.6535, allocations: 0 / 0.8677 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6535, allocations: 2.594 kB / 0.8677 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.6535, allocations: 0 / 0.8677 GB, free: 5.613 MB / 0.5919 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.0008266/0.6543, allocations: 0.6225 MB / 0.8683 GB, free: 5.051 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.6544, allocations: 11.09 kB / 0.8683 GB, free: 5.047 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.844e-05/0.6545, allocations: 61.2 kB / 0.8684 GB, free: 4.988 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.6547, allocations: 57.88 kB / 0.8684 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/0.6551, allocations: 312.7 kB / 0.8687 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.6551, allocations: 18.62 kB / 0.8687 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.6552, allocations: 29.66 kB / 0.8688 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005002/0.6557, allocations: 313.1 kB / 0.8691 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.6557, allocations: 3.938 kB / 0.8691 GB, free: 4.422 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.6557, allocations: 11.28 kB / 0.8691 GB, free: 4.414 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.6558, allocations: 7.5 kB / 0.8691 GB, free: 4.414 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003995/0.6562, allocations: 201.2 kB / 0.8693 GB, free: 4.324 MB / 0.5919 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.001491/0.6577, allocations: 1.545 MB / 0.8708 GB, free: 2.863 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.6579, allocations: 117.7 kB / 0.8709 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.6581, allocations: 92.14 kB / 0.871 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006401/0.6587, allocations: 301.8 kB / 0.8713 GB, free: 2.438 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.6588, allocations: 30.56 kB / 0.8713 GB, free: 2.398 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=13): time 3.125e-06/0.6588, allocations: 2.906 kB / 0.8713 GB, free: 2.398 MB / 0.5919 GB Notification: Performance of matching and sorting (n=13): time 0.0007342/0.6595, allocations: 278.6 kB / 0.8716 GB, free: 2.25 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.6596, allocations: 53.94 kB / 0.8716 GB, free: 2.188 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.6599, allocations: 317.1 kB / 0.8719 GB, free: 1.977 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.6599, allocations: 25.7 kB / 0.872 GB, free: 1.945 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.6601, allocations: 181.9 kB / 0.8721 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.08e-05/0.6601, allocations: 44.64 kB / 0.8722 GB, free: 1.742 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-05/0.6602, allocations: 36.7 kB / 0.8722 GB, free: 1.715 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.6603, allocations: 342.1 kB / 0.8725 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.6605, allocations: 58.27 kB / 0.8726 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.6607, allocations: 115.9 kB / 0.8727 GB, free: 1.262 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.661, allocations: 181.6 kB / 0.8729 GB, free: 1.137 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.8e-06/0.661, allocations: 4.812 kB / 0.8729 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004042/0.6615, allocations: 218 kB / 0.8731 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.6615, allocations: 6.938 kB / 0.8731 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-06/0.6615, allocations: 1.484 kB / 0.8731 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.6615, allocations: 2.406 kB / 0.8731 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.6617, allocations: 35.42 kB / 0.8731 GB, free: 1.004 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.6617, allocations: 2.812 kB / 0.8731 GB, free: 1.004 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.6619, allocations: 32.36 kB / 0.8732 GB, free: 0.9805 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.6619, allocations: 11.69 kB / 0.8732 GB, free: 0.9766 MB / 0.5919 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.0001538/0.6621, allocations: 159.9 kB / 0.8733 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/0.6621, allocations: 24.59 kB / 0.8734 GB, free: 0.8164 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004263/0.6625, allocations: 203.3 kB / 0.8735 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.6626, allocations: 2.281 kB / 0.8735 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.6626, allocations: 0 / 0.8735 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.6626, allocations: 0 / 0.8735 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009735/0.6635, allocations: 0.6918 MB / 0.8742 GB, free: 112 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.6636, allocations: 10.3 kB / 0.8742 GB, free: 104 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.6637, allocations: 32.2 kB / 0.8743 GB, free: 92 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.6637, allocations: 2.438 kB / 0.8743 GB, free: 92 kB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.6637, allocations: 4.812 kB / 0.8743 GB, free: 92 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.6637, allocations: 6.812 kB / 0.8743 GB, free: 88 kB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6637, allocations: 0 / 0.8743 GB, free: 88 kB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000445/0.6642, allocations: 337.9 kB / 0.8746 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.6643, allocations: 113.6 kB / 0.8747 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.6644, allocations: 6.344 kB / 0.8747 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.6645, allocations: 20.48 kB / 0.8747 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.6646, allocations: 13.27 kB / 0.8747 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.6646, allocations: 8.375 kB / 0.8748 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002022/0.6648, allocations: 224.5 kB / 0.875 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6648, allocations: 2.688 kB / 0.875 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003428/0.6651, allocations: 69.47 kB / 0.875 GB, free: 15.51 MB / 0.6075 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.0009919/0.6661, allocations: 0.9264 MB / 0.8759 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003857/0.6665, allocations: 154.2 kB / 0.8761 GB, free: 14.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.6666, allocations: 2.469 kB / 0.8761 GB, free: 14.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.6667, allocations: 89.03 kB / 0.8762 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000793/0.6675, allocations: 157.1 kB / 0.8763 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003267/0.6708, allocations: 2.814 MB / 0.8791 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.6712, allocations: 0.7803 MB / 0.8798 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001911/0.6714, allocations: 61.2 kB / 0.8799 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.6716, allocations: 92.78 kB / 0.88 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.6716, allocations: 0 / 0.88 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.703, allocations: 8.056 MB / 0.8879 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.662/8.365, allocations: 6.484 kB / 0.8879 GB, free: 4.066 MB / 0.6075 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)