Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",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.001303/0.001303, 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.001389/0.001389, allocations: 193.3 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002442/0.002442, allocations: 293.6 kB / 290.7 MB, free: 1.84 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.034/1.034, allocations: 178.6 MB / 0.5073 GB, free: 4.547 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002698/0.002699, allocations: 101.2 kB / 0.6065 GB, free: 24.72 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1688, allocations: 89.15 MB / 0.6936 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03236/0.2012, allocations: 29.33 MB / 0.7222 GB, free: 6.785 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01214/0.2134, allocations: 6.889 MB / 0.729 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.2154, allocations: 43.69 kB / 0.729 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.2175, allocations: 0.6953 MB / 0.7297 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004549/0.2221, allocations: 1.45 MB / 0.7311 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003419/0.2255, allocations: 1.153 MB / 0.7322 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003886/0.2294, allocations: 2.481 MB / 0.7347 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.2309, allocations: 0.7868 MB / 0.7354 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.2331, allocations: 1.008 MB / 0.7364 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/0.2344, allocations: 0.8169 MB / 0.7372 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.2346, allocations: 64 kB / 0.7373 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.2366, allocations: 0.8148 MB / 0.7381 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003234/0.2369, allocations: 279 kB / 0.7383 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006618/0.2376, allocations: 0.5514 MB / 0.7389 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002563/0.2401, allocations: 1.589 MB / 0.7404 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2402, allocations: 0 / 0.7404 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2402, allocations: 0 / 0.7404 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.365e-05/0.2402, allocations: 0 / 0.7404 GB, free: 4.113 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002841/0.243, allocations: 1.562 MB / 0.7419 GB, free: 2.496 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.2431, allocations: 12.02 kB / 0.742 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001444/0.2433, allocations: 114.7 kB / 0.7421 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00348/0.2467, allocations: 0.5845 MB / 0.7426 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001306/0.2481, allocations: 0.8172 MB / 0.7434 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.958e-05/0.2481, allocations: 58.12 kB / 0.7435 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.2483, allocations: 79.98 kB / 0.7436 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/0.2508, allocations: 1.096 MB / 0.7446 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.2508, allocations: 3.938 kB / 0.7446 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.987e-05/0.2509, allocations: 28 kB / 0.7447 GB, free: 15.56 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.2509, allocations: 20 kB / 0.7447 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003053/0.254, allocations: 1.008 MB / 0.7457 GB, free: 14.54 MB / 0.545 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.006177/0.2602, allocations: 4.943 MB / 0.7505 GB, free: 9.301 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/0.2632, allocations: 0.9028 MB / 0.7514 GB, free: 8.391 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.2646, allocations: 483.1 kB / 0.7518 GB, free: 7.918 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001559/0.2662, allocations: 1.603 MB / 0.7534 GB, free: 5.965 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001655/0.2679, allocations: 0.565 MB / 0.754 GB, free: 5.387 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 3.617e-06/0.2679, allocations: 3.938 kB / 0.754 GB, free: 5.383 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.004912/0.2728, allocations: 1.489 MB / 0.7554 GB, free: 3.887 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.2729, allocations: 59.97 kB / 0.7555 GB, free: 3.816 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.2743, allocations: 1.112 MB / 0.7566 GB, free: 2.691 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.893e-05/0.2744, allocations: 41.7 kB / 0.7566 GB, free: 2.645 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004802/0.2748, allocations: 0.5396 MB / 0.7571 GB, free: 2.098 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.2751, allocations: 221 kB / 0.7573 GB, free: 1.879 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002691/0.2753, allocations: 162.5 kB / 0.7575 GB, free: 1.715 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2755, allocations: 338 kB / 0.7578 GB, free: 1.379 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.277, allocations: 449.6 kB / 0.7582 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001681/0.2787, allocations: 0.7094 MB / 0.7589 GB, free: 124 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2622/0.5409, allocations: 1.115 MB / 0.76 GB, free: 67.16 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.5409, allocations: 6.141 kB / 0.76 GB, free: 67.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003671/0.5446, allocations: 1.27 MB / 0.7613 GB, free: 67.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.5446, allocations: 10.47 kB / 0.7613 GB, free: 67.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.5447, allocations: 7.406 kB / 0.7613 GB, free: 67.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/0.5447, allocations: 12.7 kB / 0.7613 GB, free: 67.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.5459, allocations: 278.8 kB / 0.7616 GB, free: 67.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.299e-05/0.5459, allocations: 13.5 kB / 0.7616 GB, free: 67.06 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.5471, allocations: 179 kB / 0.7617 GB, free: 67.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.031e-05/0.5472, allocations: 47.19 kB / 0.7618 GB, free: 67.05 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * 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.0004249/0.5476, allocations: 296.5 kB / 0.7621 GB, free: 66.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.5478, allocations: 119.1 kB / 0.7622 GB, free: 66.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003777/0.5516, allocations: 1.356 MB / 0.7635 GB, free: 66.76 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/0.5516, allocations: 13.91 kB / 0.7635 GB, free: 66.75 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.5516, allocations: 0 / 0.7635 GB, free: 66.75 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.5516, allocations: 8.234 kB / 0.7635 GB, free: 66.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0047/0.5563, allocations: 2.365 MB / 0.7658 GB, free: 65.81 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.5564, allocations: 2.344 kB / 0.7658 GB, free: 65.81 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.5574, allocations: 189.8 kB / 0.766 GB, free: 65.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.5574, allocations: 11.98 kB / 0.766 GB, free: 65.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.5575, allocations: 22.41 kB / 0.7661 GB, free: 65.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.742e-06/0.5575, allocations: 4.406 kB / 0.7661 GB, free: 65.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5575, allocations: 3.391 kB / 0.7661 GB, free: 65.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005095/0.5626, allocations: 1.976 MB / 0.768 GB, free: 65.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005024/0.5631, allocations: 281.2 kB / 0.7683 GB, free: 64.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.5633, allocations: 19.52 kB / 0.7683 GB, free: 64.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000924/0.5642, allocations: 111.1 kB / 0.7684 GB, free: 64.83 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.5644, allocations: 50.5 kB / 0.7684 GB, free: 64.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.003e-05/0.5644, allocations: 32 kB / 0.7685 GB, free: 64.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001026/0.5655, allocations: 0.765 MB / 0.7692 GB, free: 64.54 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/0.5655, allocations: 1.031 kB / 0.7692 GB, free: 64.54 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001104/0.5666, allocations: 338.5 kB / 0.7695 GB, free: 64.49 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * 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.006839/0.5734, allocations: 3.076 MB / 0.7725 GB, free: 63.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003707/0.5772, allocations: 1.193 MB / 0.7737 GB, free: 62.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5772, allocations: 0 / 0.7737 GB, free: 62.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.5788, allocations: 0.5768 MB / 0.7743 GB, free: 62.64 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.5809, allocations: 465.2 kB / 0.7747 GB, free: 62.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01858/0.5995, allocations: 10.22 MB / 0.7847 GB, free: 57.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005642/0.6001, allocations: 1.107 MB / 0.7858 GB, free: 56.35 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001095/0.6012, allocations: 246.7 kB / 0.786 GB, free: 56.29 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005051/0.6018, allocations: 462 kB / 0.7864 GB, free: 55.96 MB / 0.545 GB Notification: Performance of SimCode: time 1.703e-06/0.6018, allocations: 1.094 kB / 0.7864 GB, free: 55.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05618/0.6579, allocations: 30.37 MB / 0.8161 GB, free: 34.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.399/9.057, allocations: 4.062 kB / 0.8161 GB, free: 34.32 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.48 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)