Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Sensors_Examples_EnthalpyFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_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.001771/0.001771, allocations: 109.2 kB / 16.41 MB, free: 6.461 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.001927/0.001927, allocations: 193.3 kB / 17.34 MB, free: 5.715 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.395/1.395, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8011/0.8011, allocations: 126.7 MB / 417.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 68.83 kB / 0.5735 GB, free: 27.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1502, allocations: 78.86 MB / 0.6506 GB, free: 3.559 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.5415/0.6917, allocations: 167.6 MB / 0.8142 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.005977/0.6977, allocations: 6.536 MB / 0.8206 GB, free: 9.828 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004583/0.6982, allocations: 15.88 kB / 0.8206 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005469/0.6988, allocations: 170.3 kB / 0.8207 GB, free: 9.672 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.7008, allocations: 0.8284 MB / 0.8216 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008785/0.7017, allocations: 334.5 kB / 0.8219 GB, free: 8.965 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008259/0.7026, allocations: 0.711 MB / 0.8226 GB, free: 8.578 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004179/0.703, allocations: 275.3 kB / 0.8228 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.7045, allocations: 0.6936 MB / 0.8235 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003594/0.7049, allocations: 266.4 kB / 0.8238 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.726e-05/0.7049, allocations: 19.81 kB / 0.8238 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005855/0.7055, allocations: 337.4 kB / 0.8241 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.7056, allocations: 109.1 kB / 0.8242 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.7058, allocations: 164.5 kB / 0.8244 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0006517/0.7065, allocations: 473.5 kB / 0.8248 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.7065, allocations: 0 / 0.8248 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd: time 9.22e-07/0.7065, allocations: 0 / 0.8248 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.7065, allocations: 0 / 0.8248 GB, free: 7.32 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.0008459/0.7073, allocations: 0.628 MB / 0.8254 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.7074, allocations: 10.09 kB / 0.8254 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.684e-05/0.7075, allocations: 57.92 kB / 0.8255 GB, free: 6.695 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.7077, allocations: 68.02 kB / 0.8256 GB, free: 6.66 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.7082, allocations: 327.9 kB / 0.8259 GB, free: 6.355 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.7083, allocations: 21.28 kB / 0.8259 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.7083, allocations: 28.95 kB / 0.8259 GB, free: 6.336 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/0.7088, allocations: 325.3 kB / 0.8262 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.7089, allocations: 0 / 0.8262 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.7089, allocations: 10.75 kB / 0.8262 GB, free: 6.098 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.7089, allocations: 8.969 kB / 0.8263 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.7093, allocations: 203.6 kB / 0.8264 GB, free: 6.004 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.7109, allocations: 1.528 MB / 0.8279 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.7112, allocations: 121.3 kB / 0.8281 GB, free: 4.496 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.7114, allocations: 90.7 kB / 0.8281 GB, free: 4.449 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006276/0.712, allocations: 307.7 kB / 0.8284 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.7121, allocations: 37.05 kB / 0.8285 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.7121, allocations: 0 / 0.8285 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of matching and sorting (n=13): time 0.0007609/0.7129, allocations: 269.9 kB / 0.8287 GB, free: 3.957 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.7129, allocations: 58.25 kB / 0.8288 GB, free: 3.891 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.7133, allocations: 313 kB / 0.8291 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.7133, allocations: 29.7 kB / 0.8291 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.7135, allocations: 181.8 kB / 0.8293 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.7135, allocations: 48.45 kB / 0.8293 GB, free: 3.441 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.737e-05/0.7136, allocations: 40.55 kB / 0.8294 GB, free: 3.41 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.7138, allocations: 344.6 kB / 0.8297 GB, free: 3.07 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.7139, allocations: 60.14 kB / 0.8298 GB, free: 3.043 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.7141, allocations: 109.9 kB / 0.8299 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003407/0.7145, allocations: 185.4 kB / 0.83 GB, free: 2.836 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.7145, allocations: 0 / 0.83 GB, free: 2.836 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004099/0.7149, allocations: 217.9 kB / 0.8302 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.7149, allocations: 5.25 kB / 0.8302 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.7149, allocations: 0 / 0.8302 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.715, allocations: 2.719 kB / 0.8303 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.7151, allocations: 39.19 kB / 0.8303 GB, free: 2.703 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.7151, allocations: 2.219 kB / 0.8303 GB, free: 2.703 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.7153, allocations: 30.45 kB / 0.8303 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.7153, allocations: 4.5 kB / 0.8303 GB, free: 2.684 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.0001589/0.7155, allocations: 159.7 kB / 0.8305 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.7156, allocations: 28.5 kB / 0.8305 GB, free: 2.52 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004352/0.716, allocations: 209.7 kB / 0.8307 GB, free: 2.395 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.716, allocations: 4.031 kB / 0.8307 GB, free: 2.391 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.716, allocations: 3.938 kB / 0.8307 GB, free: 2.387 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.716, allocations: 2.75 kB / 0.8307 GB, free: 2.387 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.7171, allocations: 0.6824 MB / 0.8314 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.7171, allocations: 6.812 kB / 0.8314 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.7172, allocations: 26.58 kB / 0.8314 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.7172, allocations: 5.75 kB / 0.8314 GB, free: 1.797 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.7173, allocations: 7.062 kB / 0.8314 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.7173, allocations: 2.75 kB / 0.8314 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.7173, allocations: 7 kB / 0.8314 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.7177, allocations: 324 kB / 0.8317 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.7179, allocations: 127.5 kB / 0.8319 GB, free: 1.395 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.718, allocations: 14.39 kB / 0.8319 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.7181, allocations: 12.28 kB / 0.8319 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.7182, allocations: 14.89 kB / 0.8319 GB, free: 1.371 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.7182, allocations: 3.219 kB / 0.8319 GB, free: 1.371 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000211/0.7184, allocations: 230.3 kB / 0.8321 GB, free: 1.223 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7184, allocations: 0 / 0.8321 GB, free: 1.223 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003479/0.7188, allocations: 69.89 kB / 0.8322 GB, free: 1.211 MB / 0.5919 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.001059/0.7199, allocations: 0.9272 MB / 0.8331 GB, free: 384 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003885/0.7203, allocations: 157.7 kB / 0.8332 GB, free: 312 kB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.7203, allocations: 0 / 0.8332 GB, free: 312 kB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.7204, allocations: 86.05 kB / 0.8333 GB, free: 272 kB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007931/0.7212, allocations: 155.1 kB / 0.8335 GB, free: 188 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003412/0.7247, allocations: 2.821 MB / 0.8362 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.7251, allocations: 0.7811 MB / 0.837 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002021/0.7253, allocations: 58.12 kB / 0.8371 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.7255, allocations: 94.38 kB / 0.8371 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of SimCode: time 7.72e-07/0.7255, allocations: 0 / 0.8371 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/0.7564, allocations: 8.119 MB / 0.8451 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.091/8.848, allocations: 3.938 kB / 0.8451 GB, free: 9.137 MB / 0.6075 GB (rm -f IBPSA_latest_IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Sensors_Examples_EnthalpyFlowRate.fmu > IBPSA_latest_IBPSA.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1)