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.001548/0.001548, 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.001906/0.001906, allocations: 194.7 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 286.9 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9466/0.9466, allocations: 169.3 MB / 0.4982 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 99.48 kB / 0.5954 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1638, allocations: 86.97 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.5416/0.7055, allocations: 167.5 MB / 0.8439 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006915/0.7124, allocations: 6.545 MB / 0.8503 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006544/0.7131, allocations: 16.81 kB / 0.8503 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000546/0.7137, allocations: 168.7 kB / 0.8504 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002312/0.716, allocations: 0.8459 MB / 0.8513 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009415/0.717, allocations: 322.1 kB / 0.8516 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007658/0.7178, allocations: 0.7149 MB / 0.8523 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.7182, allocations: 283.9 kB / 0.8525 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001004/0.7192, allocations: 0.5459 MB / 0.8531 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.7195, allocations: 271.5 kB / 0.8533 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.7196, allocations: 23.44 kB / 0.8534 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006022/0.7202, allocations: 333.2 kB / 0.8537 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.7203, allocations: 109.4 kB / 0.8538 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.7205, allocations: 167.2 kB / 0.8539 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005536/0.721, allocations: 466.3 kB / 0.8544 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.7211, allocations: 7.938 kB / 0.8544 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7211, allocations: 0 / 0.8544 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.7211, allocations: 3.938 kB / 0.8544 GB, free: 10.51 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.0007771/0.7219, allocations: 0.6162 MB / 0.855 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.7219, allocations: 8.031 kB / 0.855 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.847e-05/0.722, allocations: 65.38 kB / 0.8551 GB, free: 9.891 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000281/0.7223, allocations: 58.47 kB / 0.8551 GB, free: 9.863 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.7226, allocations: 312.3 kB / 0.8554 GB, free: 9.562 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.7226, allocations: 23.25 kB / 0.8554 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.7227, allocations: 24.12 kB / 0.8555 GB, free: 9.543 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004704/0.7232, allocations: 312.9 kB / 0.8558 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.7232, allocations: 3.469 kB / 0.8558 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.7232, allocations: 12 kB / 0.8558 GB, free: 9.316 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.7232, allocations: 7.219 kB / 0.8558 GB, free: 9.316 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003784/0.7236, allocations: 205.8 kB / 0.856 GB, free: 9.223 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.001324/0.7249, allocations: 1.536 MB / 0.8575 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.7252, allocations: 128.1 kB / 0.8576 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.7254, allocations: 86.31 kB / 0.8577 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005954/0.726, allocations: 308.7 kB / 0.858 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.726, allocations: 34.56 kB / 0.858 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/0.726, allocations: 0 / 0.858 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of matching and sorting (n=13): time 0.0006724/0.7267, allocations: 273.6 kB / 0.8583 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.7267, allocations: 51.41 kB / 0.8583 GB, free: 7.09 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.727, allocations: 317.8 kB / 0.8586 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.727, allocations: 27.8 kB / 0.8587 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.7271, allocations: 189.3 kB / 0.8588 GB, free: 6.676 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.7272, allocations: 40.73 kB / 0.8589 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.683e-05/0.7272, allocations: 32.34 kB / 0.8589 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.7273, allocations: 340.7 kB / 0.8592 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.7275, allocations: 59.95 kB / 0.8593 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.7277, allocations: 114.1 kB / 0.8594 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.728, allocations: 176.9 kB / 0.8596 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.728, allocations: 6.812 kB / 0.8596 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003809/0.7284, allocations: 217.6 kB / 0.8598 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.7284, allocations: 5.219 kB / 0.8598 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.7284, allocations: 0 / 0.8598 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.7284, allocations: 10.61 kB / 0.8598 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.7286, allocations: 35.3 kB / 0.8598 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.7286, allocations: 0 / 0.8598 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.7288, allocations: 31.3 kB / 0.8599 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.7288, allocations: 7.781 kB / 0.8599 GB, free: 5.887 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.0001253/0.7289, allocations: 155.8 kB / 0.86 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.666e-05/0.729, allocations: 28.59 kB / 0.86 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004156/0.7294, allocations: 215.5 kB / 0.8602 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.7294, allocations: 2.188 kB / 0.8602 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.7294, allocations: 0 / 0.8602 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.7294, allocations: 0 / 0.8602 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009124/0.7303, allocations: 0.6957 MB / 0.8609 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.7304, allocations: 0 / 0.8609 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.7305, allocations: 26.39 kB / 0.861 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.7305, allocations: 2.781 kB / 0.861 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.7305, allocations: 2.344 kB / 0.861 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.7305, allocations: 17.17 kB / 0.861 GB, free: 4.988 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.7305, allocations: 3.938 kB / 0.861 GB, free: 4.984 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003824/0.7309, allocations: 327.8 kB / 0.8613 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.787e-05/0.731, allocations: 124 kB / 0.8614 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.7311, allocations: 2.688 kB / 0.8614 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.7312, allocations: 8.75 kB / 0.8614 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.7313, allocations: 23.33 kB / 0.8614 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.7313, allocations: 7.094 kB / 0.8614 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00018/0.7315, allocations: 224 kB / 0.8617 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7315, allocations: 0 / 0.8617 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000359/0.7318, allocations: 72.22 kB / 0.8617 GB, free: 4.414 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.0008619/0.7327, allocations: 0.9258 MB / 0.8626 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003949/0.7331, allocations: 162.2 kB / 0.8628 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.7331, allocations: 2.094 kB / 0.8628 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.7333, allocations: 81.2 kB / 0.8629 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007884/0.7341, allocations: 154.2 kB / 0.863 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.7371, allocations: 2.826 MB / 0.8658 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.7374, allocations: 0.7801 MB / 0.8665 GB, free: 496 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002006/0.7376, allocations: 64.95 kB / 0.8666 GB, free: 468 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.7377, allocations: 92.91 kB / 0.8667 GB, free: 392 kB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/0.7377, allocations: 0 / 0.8667 GB, free: 392 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.7639, allocations: 8.044 MB / 0.8745 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.455/8.219, allocations: 12.69 kB / 0.8746 GB, free: 12.42 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 & 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)