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.004661/0.004661, allocations: 97.12 kB / 15.73 MB, free: 5.949 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.001115/0.001115, allocations: 192.7 kB / 16.67 MB, free: 5.871 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.241/1.241, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002078/0.002078, allocations: 286.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8923/0.8923, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 91.86 kB / 0.681 GB, free: 7.395 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3906, allocations: 86.97 MB / 0.7659 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.1583/0.5489, allocations: 167.5 MB / 0.9295 GB, free: 11.59 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.007219/0.5562, allocations: 6.539 MB / 0.9359 GB, free: 5.035 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004332/0.5566, allocations: 11.94 kB / 0.9359 GB, free: 5.023 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.0005338/0.5572, allocations: 166.8 kB / 0.9361 GB, free: 4.859 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.001994/0.5592, allocations: 0.883 MB / 0.9369 GB, free: 3.973 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.00087/0.5601, allocations: 334.3 kB / 0.9373 GB, free: 3.648 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.0008177/0.561, allocations: 0.7173 MB / 0.938 GB, free: 2.93 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004388/0.5614, allocations: 282.3 kB / 0.9382 GB, free: 2.66 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.5625, allocations: 0.5643 MB / 0.9388 GB, free: 2.094 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004014/0.5629, allocations: 270.9 kB / 0.939 GB, free: 1.828 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 4.98e-05/0.563, allocations: 24 kB / 0.9391 GB, free: 1.805 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006194/0.5636, allocations: 347.2 kB / 0.9394 GB, free: 1.465 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.5638, allocations: 111.7 kB / 0.9395 GB, free: 1.355 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.564, allocations: 159.2 kB / 0.9397 GB, free: 1.199 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.0006815/0.5646, allocations: 472.1 kB / 0.9401 GB, free: 0.7383 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5647, allocations: 3.938 kB / 0.9401 GB, free: 0.7344 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5647, allocations: 0 / 0.9401 GB, free: 0.7344 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.5647, allocations: 0 / 0.9401 GB, free: 0.7344 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.0008054/0.5655, allocations: 0.6346 MB / 0.9407 GB, free: 52 kB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.5655, allocations: 12.03 kB / 0.9407 GB, free: 40 kB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.152e-05/0.5656, allocations: 62.53 kB / 0.9408 GB, free: 15.97 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.5659, allocations: 59.67 kB / 0.9409 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.5664, allocations: 333.4 kB / 0.9412 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.5664, allocations: 20.56 kB / 0.9412 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.5664, allocations: 24 kB / 0.9412 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004856/0.5669, allocations: 319.7 kB / 0.9415 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.5669, allocations: 0 / 0.9415 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.567, allocations: 12 kB / 0.9415 GB, free: 15.15 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.567, allocations: 4 kB / 0.9415 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003868/0.5674, allocations: 205.5 kB / 0.9417 GB, free: 14.95 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.001338/0.5687, allocations: 1.535 MB / 0.9432 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.569, allocations: 118.5 kB / 0.9433 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.5691, allocations: 92.73 kB / 0.9434 GB, free: 13.06 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005213/0.5697, allocations: 303.2 kB / 0.9437 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.5697, allocations: 38.56 kB / 0.9438 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 2.846e-06/0.5697, allocations: 0 / 0.9438 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0007075/0.5704, allocations: 287.1 kB / 0.944 GB, free: 12.38 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.5705, allocations: 51.41 kB / 0.9441 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.5708, allocations: 308.5 kB / 0.9444 GB, free: 12 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.5708, allocations: 29.7 kB / 0.9444 GB, free: 11.97 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.571, allocations: 184.3 kB / 0.9446 GB, free: 11.79 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.571, allocations: 43.58 kB / 0.9446 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.306e-05/0.5711, allocations: 41.66 kB / 0.9447 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.5712, allocations: 342.8 kB / 0.945 GB, free: 11.35 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.5713, allocations: 59.89 kB / 0.945 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.5715, allocations: 113 kB / 0.9452 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/0.5718, allocations: 177 kB / 0.9453 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5718, allocations: 0 / 0.9453 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004072/0.5722, allocations: 221.3 kB / 0.9455 GB, free: 10.75 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.5723, allocations: 8 kB / 0.9455 GB, free: 10.74 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.5723, allocations: 0 / 0.9455 GB, free: 10.74 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.5723, allocations: 4 kB / 0.9455 GB, free: 10.74 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.5725, allocations: 31.92 kB / 0.9456 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.5725, allocations: 7.984 kB / 0.9456 GB, free: 10.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.5727, allocations: 31.77 kB / 0.9456 GB, free: 10.67 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.5727, allocations: 12.16 kB / 0.9456 GB, free: 10.66 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.0001434/0.5729, allocations: 157.7 kB / 0.9458 GB, free: 10.49 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.5729, allocations: 31.81 kB / 0.9458 GB, free: 10.46 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004187/0.5734, allocations: 196.3 kB / 0.946 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.5734, allocations: 4 kB / 0.946 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5734, allocations: 0 / 0.946 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.5734, allocations: 3.984 kB / 0.946 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000955/0.5744, allocations: 0.6798 MB / 0.9467 GB, free: 9.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.5744, allocations: 8.031 kB / 0.9467 GB, free: 9.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.5745, allocations: 27.92 kB / 0.9467 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.5745, allocations: 4 kB / 0.9467 GB, free: 9.457 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.5745, allocations: 7.938 kB / 0.9467 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.5746, allocations: 64 / 0.9467 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.5746, allocations: 8 kB / 0.9467 GB, free: 9.441 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.575, allocations: 343.6 kB / 0.947 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.5751, allocations: 124.8 kB / 0.9472 GB, free: 8.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.935e-05/0.5751, allocations: 11.94 kB / 0.9472 GB, free: 8.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.5753, allocations: 7.984 kB / 0.9472 GB, free: 8.91 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.5753, allocations: 19.92 kB / 0.9472 GB, free: 8.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.5754, allocations: 4 kB / 0.9472 GB, free: 8.887 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001917/0.5756, allocations: 223 kB / 0.9474 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5756, allocations: 4 kB / 0.9474 GB, free: 8.664 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003768/0.5759, allocations: 71.83 kB / 0.9475 GB, free: 8.594 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.0008862/0.5768, allocations: 0.938 MB / 0.9484 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003765/0.5772, allocations: 151.8 kB / 0.9485 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5772, allocations: 0 / 0.9485 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.5774, allocations: 84.5 kB / 0.9486 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007531/0.5782, allocations: 146.8 kB / 0.9488 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.5813, allocations: 2.809 MB / 0.9515 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.5817, allocations: 0.7795 MB / 0.9523 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001876/0.5819, allocations: 62.94 kB / 0.9523 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.582, allocations: 91.41 kB / 0.9524 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of SimCode: time 4.41e-07/0.582, allocations: 0 / 0.9524 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3426/0.9246, allocations: 8.129 MB / 0.9604 GB, free: 190.7 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/8.46, allocations: 13 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)