Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy.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.SpecificEnthalpy,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_SpecificEnthalpy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_SpecificEnthalpy",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.004664/0.004664, allocations: 98.52 kB / 15.73 MB, free: 6.055 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.001265/0.001265, allocations: 196.4 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002379/0.002379, allocations: 290.7 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.166/1.166, allocations: 178.5 MB / 0.5074 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002619/0.002619, allocations: 99.83 kB / 0.6943 GB, free: 15.19 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3888, allocations: 89.12 MB / 0.7813 GB, free: 1.148 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy): time 0.1773/0.5662, allocations: 161.4 MB / 0.9389 GB, free: 6.793 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.005649/0.5719, allocations: 4.549 MB / 0.9434 GB, free: 2.23 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002895/0.5722, allocations: 15.88 kB / 0.9434 GB, free: 2.215 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.0004072/0.5726, allocations: 119.1 kB / 0.9435 GB, free: 2.098 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.0008257/0.5735, allocations: 334.4 kB / 0.9438 GB, free: 1.77 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.000727/0.5742, allocations: 271.9 kB / 0.9441 GB, free: 1.508 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.0006889/0.5749, allocations: 0.565 MB / 0.9446 GB, free: 0.9375 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000353/0.5753, allocations: 201.2 kB / 0.9448 GB, free: 0.7422 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000913/0.5762, allocations: 466.1 kB / 0.9453 GB, free: 292 kB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.5765, allocations: 183.3 kB / 0.9454 GB, free: 108 kB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.5766, allocations: 20 kB / 0.9455 GB, free: 88 kB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.5767, allocations: 83.88 kB / 0.9455 GB, free: 4 kB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.5769, allocations: 83.78 kB / 0.9456 GB, free: 15.92 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.577, allocations: 123.4 kB / 0.9457 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004027/0.5774, allocations: 296.9 kB / 0.946 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.5774, allocations: 0 / 0.946 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.976e-06/0.5774, allocations: 0 / 0.946 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.5775, allocations: 3.938 kB / 0.946 GB, free: 15.51 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.00083/0.5783, allocations: 0.5448 MB / 0.9466 GB, free: 14.92 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.5783, allocations: 12.03 kB / 0.9466 GB, free: 14.91 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.255e-05/0.5784, allocations: 46.55 kB / 0.9466 GB, free: 14.85 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.408e-05/0.5785, allocations: 31.75 kB / 0.9466 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.5789, allocations: 287.5 kB / 0.9469 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.5789, allocations: 20 kB / 0.9469 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.579, allocations: 19.94 kB / 0.947 GB, free: 14.46 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.5794, allocations: 261.8 kB / 0.9472 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.5794, allocations: 3.938 kB / 0.9472 GB, free: 14.16 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.5794, allocations: 12 kB / 0.9472 GB, free: 14.15 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.5795, allocations: 4 kB / 0.9472 GB, free: 14.15 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003367/0.5798, allocations: 143.8 kB / 0.9474 GB, free: 14.01 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.5811, allocations: 1.372 MB / 0.9487 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.5814, allocations: 187.7 kB / 0.9489 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.5816, allocations: 97.05 kB / 0.949 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003338/0.582, allocations: 117.1 kB / 0.9491 GB, free: 12.06 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.582, allocations: 46.42 kB / 0.9491 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.582, allocations: 0 / 0.9491 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006062/0.5826, allocations: 205.5 kB / 0.9493 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.5827, allocations: 187.9 kB / 0.9495 GB, free: 11.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.583, allocations: 287 kB / 0.9498 GB, free: 11.28 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.5831, allocations: 29.7 kB / 0.9498 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.5832, allocations: 152.3 kB / 0.9499 GB, free: 11.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.848e-05/0.5832, allocations: 39.75 kB / 0.95 GB, free: 11.05 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.479e-05/0.5833, allocations: 41.7 kB / 0.95 GB, free: 11.01 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5835, allocations: 326.8 kB / 0.9503 GB, free: 10.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.5836, allocations: 52.14 kB / 0.9504 GB, free: 10.63 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.5838, allocations: 115.7 kB / 0.9505 GB, free: 10.49 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.5841, allocations: 162.6 kB / 0.9507 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.5841, allocations: 4 kB / 0.9507 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003779/0.5845, allocations: 189.5 kB / 0.9508 GB, free: 10.11 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.5845, allocations: 8 kB / 0.9508 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.5846, allocations: 7.984 kB / 0.9509 GB, free: 10.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.5846, allocations: 4 kB / 0.9509 GB, free: 10.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.5847, allocations: 27.98 kB / 0.9509 GB, free: 10.06 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.5847, allocations: 3.938 kB / 0.9509 GB, free: 10.06 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.5849, allocations: 35.86 kB / 0.9509 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.5849, allocations: 8 kB / 0.9509 GB, free: 10.02 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (15): * Single equations (assignments): 15 * 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.0001318/0.5851, allocations: 145.8 kB / 0.9511 GB, free: 9.863 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.5852, allocations: 31.75 kB / 0.9511 GB, free: 9.832 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003252/0.5855, allocations: 134.9 kB / 0.9512 GB, free: 9.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.5855, allocations: 0 / 0.9512 GB, free: 9.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5855, allocations: 7.938 kB / 0.9512 GB, free: 9.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.5855, allocations: 0 / 0.9512 GB, free: 9.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008282/0.5864, allocations: 0.7691 MB / 0.952 GB, free: 8.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5864, allocations: 0 / 0.952 GB, free: 8.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.5865, allocations: 36.05 kB / 0.952 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.5865, allocations: 0 / 0.952 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.5866, allocations: 4 kB / 0.952 GB, free: 8.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.5866, allocations: 0 / 0.952 GB, free: 8.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5866, allocations: 4.156 kB / 0.952 GB, free: 8.797 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000532/0.5871, allocations: 343.5 kB / 0.9524 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.583e-05/0.5872, allocations: 116.9 kB / 0.9525 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.5872, allocations: 0 / 0.9525 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.5874, allocations: 11.98 kB / 0.9525 GB, free: 8.285 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.5874, allocations: 19.86 kB / 0.9525 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.5874, allocations: 4 kB / 0.9525 GB, free: 8.262 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001982/0.5876, allocations: 209.9 kB / 0.9527 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5877, allocations: 0 / 0.9527 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003148/0.588, allocations: 56 kB / 0.9528 GB, free: 8.004 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (senStr.h_out) * 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 (10): * Single equations (assignments): 10 * 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.001024/0.589, allocations: 0.9054 MB / 0.9536 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000337/0.5894, allocations: 124.1 kB / 0.9538 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.5894, allocations: 3.938 kB / 0.9538 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.5895, allocations: 59.89 kB / 0.9538 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007091/0.5902, allocations: 132.2 kB / 0.9539 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.5934, allocations: 2.617 MB / 0.9565 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.5938, allocations: 0.7519 MB / 0.9572 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001395/0.5939, allocations: 62.23 kB / 0.9573 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.594, allocations: 71.41 kB / 0.9574 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.594, allocations: 3.938 kB / 0.9574 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.6231, allocations: 6.872 MB / 0.9641 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/8.387, allocations: 17.64 kB / 0.9641 GB, free: 12.37 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy_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_SpecificEnthalpy.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.SpecificEnthalpy.pipe 2>&1)