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.004931/0.004931, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001252/0.001252, allocations: 197.5 kB / 16.68 MB, free: 5.969 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.245/1.245, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 289.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8918/0.8918, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 92.28 kB / 0.681 GB, free: 7.418 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3995, allocations: 86.98 MB / 0.7659 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.1555/0.5551, allocations: 167.5 MB / 0.9295 GB, free: 11.71 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.006635/0.5617, allocations: 6.533 MB / 0.9359 GB, free: 5.156 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003949/0.5622, allocations: 15.88 kB / 0.9359 GB, free: 5.141 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.0004848/0.5627, allocations: 166.7 kB / 0.9361 GB, free: 4.977 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.001816/0.5645, allocations: 0.8791 MB / 0.9369 GB, free: 4.094 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008037/0.5653, allocations: 336.3 kB / 0.9373 GB, free: 3.77 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.0006538/0.566, allocations: 0.7212 MB / 0.938 GB, free: 3.047 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003822/0.5664, allocations: 278.3 kB / 0.9382 GB, free: 2.781 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009546/0.5674, allocations: 0.5682 MB / 0.9388 GB, free: 2.211 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003037/0.5677, allocations: 267 kB / 0.939 GB, free: 1.949 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 3.596e-05/0.5677, allocations: 24 kB / 0.9391 GB, free: 1.926 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000526/0.5682, allocations: 351.1 kB / 0.9394 GB, free: 1.582 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.5684, allocations: 107.7 kB / 0.9395 GB, free: 1.477 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.5685, allocations: 171.1 kB / 0.9397 GB, free: 1.309 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.0005566/0.5691, allocations: 472.1 kB / 0.9401 GB, free: 0.8477 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.5691, allocations: 3.984 kB / 0.9401 GB, free: 0.8438 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5691, allocations: 0 / 0.9401 GB, free: 0.8438 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.075e-05/0.5691, allocations: 0 / 0.9401 GB, free: 0.8438 MB / 0.7012 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.0007377/0.5699, allocations: 0.6268 MB / 0.9407 GB, free: 172 kB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.5699, allocations: 12.03 kB / 0.9407 GB, free: 160 kB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.92e-05/0.57, allocations: 66.53 kB / 0.9408 GB, free: 84 kB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002784/0.5703, allocations: 67.66 kB / 0.9409 GB, free: 16 kB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.5707, allocations: 325.5 kB / 0.9412 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.5707, allocations: 20.5 kB / 0.9412 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.5708, allocations: 28 kB / 0.9412 GB, free: 15.61 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.5713, allocations: 311.7 kB / 0.9415 GB, free: 15.28 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.5713, allocations: 7.938 kB / 0.9415 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.5713, allocations: 12 kB / 0.9415 GB, free: 15.26 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.5713, allocations: 8 kB / 0.9415 GB, free: 15.25 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.5717, allocations: 205.5 kB / 0.9417 GB, free: 15.05 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.001316/0.573, allocations: 1.527 MB / 0.9432 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.5733, allocations: 114.5 kB / 0.9433 GB, free: 13.27 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.5735, allocations: 96.78 kB / 0.9434 GB, free: 13.17 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005207/0.574, allocations: 307.2 kB / 0.9437 GB, free: 12.82 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.574, allocations: 34.5 kB / 0.9438 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.574, allocations: 3.938 kB / 0.9438 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0006759/0.5747, allocations: 273.6 kB / 0.944 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.5748, allocations: 59.41 kB / 0.9441 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002607/0.575, allocations: 308.5 kB / 0.9444 GB, free: 12.12 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.575, allocations: 25.7 kB / 0.9444 GB, free: 12.09 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.5752, allocations: 184.3 kB / 0.9446 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.5752, allocations: 47.58 kB / 0.9446 GB, free: 11.86 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.19e-05/0.5753, allocations: 37.66 kB / 0.9447 GB, free: 11.81 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.5754, allocations: 338.8 kB / 0.945 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.5755, allocations: 63.95 kB / 0.945 GB, free: 11.41 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.5757, allocations: 116.9 kB / 0.9452 GB, free: 11.28 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.576, allocations: 180.9 kB / 0.9453 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.576, allocations: 0 / 0.9453 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003714/0.5764, allocations: 213.3 kB / 0.9455 GB, free: 10.87 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.5764, allocations: 8.156 kB / 0.9455 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.5764, allocations: 0 / 0.9455 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.5764, allocations: 4 kB / 0.9455 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.5766, allocations: 35.86 kB / 0.9456 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.5766, allocations: 7.984 kB / 0.9456 GB, free: 10.81 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.5768, allocations: 31.78 kB / 0.9456 GB, free: 10.78 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.5768, allocations: 7.984 kB / 0.9456 GB, free: 10.77 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.0001216/0.577, allocations: 153.8 kB / 0.9458 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.811e-05/0.577, allocations: 31.81 kB / 0.9458 GB, free: 10.58 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004/0.5774, allocations: 206.3 kB / 0.946 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.5774, allocations: 4 kB / 0.946 GB, free: 10.37 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5774, allocations: 3.984 kB / 0.946 GB, free: 10.37 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.5775, allocations: 0 / 0.946 GB, free: 10.37 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009009/0.5784, allocations: 0.6835 MB / 0.9467 GB, free: 9.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5784, allocations: 0 / 0.9467 GB, free: 9.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.5785, allocations: 27.92 kB / 0.9467 GB, free: 9.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.5785, allocations: 4.219 kB / 0.9467 GB, free: 9.574 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.5785, allocations: 11.94 kB / 0.9467 GB, free: 9.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.5785, allocations: 4 kB / 0.9467 GB, free: 9.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5785, allocations: 0 / 0.9467 GB, free: 9.559 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.5789, allocations: 345.2 kB / 0.947 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.579, allocations: 120.8 kB / 0.9472 GB, free: 9.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.717e-05/0.5791, allocations: 7.938 kB / 0.9472 GB, free: 9.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.5792, allocations: 7.984 kB / 0.9472 GB, free: 9.031 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.5793, allocations: 23.92 kB / 0.9472 GB, free: 9.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-06/0.5793, allocations: 4 kB / 0.9472 GB, free: 9.004 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001813/0.5795, allocations: 227 kB / 0.9474 GB, free: 8.781 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.402e-06/0.5795, allocations: 0 / 0.9474 GB, free: 8.781 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000332/0.5798, allocations: 79.77 kB / 0.9475 GB, free: 8.703 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.0008368/0.5807, allocations: 0.9141 MB / 0.9484 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003687/0.5811, allocations: 163.8 kB / 0.9485 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5811, allocations: 0 / 0.9485 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.5812, allocations: 87.77 kB / 0.9486 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007449/0.582, allocations: 141.8 kB / 0.9488 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.5849, allocations: 2.816 MB / 0.9515 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.5852, allocations: 0.7834 MB / 0.9523 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001623/0.5854, allocations: 54.94 kB / 0.9523 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.5855, allocations: 91.41 kB / 0.9524 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.5855, allocations: 0 / 0.9524 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3495/0.9351, allocations: 8.141 MB / 0.9604 GB, free: 190.7 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.445/8.38, allocations: 5.078 kB / 0.9604 GB, free: 190.7 MB / 0.7169 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)