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.0016/0.0016, 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.001595/0.001595, allocations: 193.9 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 2.027/2.027, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002701/0.002701, allocations: 298.9 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.451/1.451, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003288/0.003288, allocations: 94.2 kB / 0.5953 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.326, allocations: 86.98 MB / 0.6803 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.07002/0.3961, allocations: 29.32 MB / 0.7089 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01949/0.4156, allocations: 6.866 MB / 0.7156 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002354/0.418, allocations: 47.62 kB / 0.7157 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002869/0.421, allocations: 0.6953 MB / 0.7164 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.007286/0.4283, allocations: 1.454 MB / 0.7178 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005525/0.4339, allocations: 1.15 MB / 0.7189 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.005649/0.4395, allocations: 2.469 MB / 0.7213 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00219/0.4418, allocations: 0.802 MB / 0.7221 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003553/0.4454, allocations: 1.004 MB / 0.7231 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00207/0.4475, allocations: 0.8169 MB / 0.7239 GB, free: 3.773 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003022/0.4478, allocations: 64 kB / 0.7239 GB, free: 3.711 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.4513, allocations: 0.8149 MB / 0.7247 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006393/0.4519, allocations: 274.9 kB / 0.725 GB, free: 2.625 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.4532, allocations: 0.5631 MB / 0.7255 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004803/0.458, allocations: 1.596 MB / 0.7271 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.295e-05/0.4581, allocations: 4 kB / 0.7271 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd: time 3.056e-06/0.4581, allocations: 0 / 0.7271 GB, free: 464 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.892e-05/0.4581, allocations: 4 kB / 0.7271 GB, free: 460 kB / 0.5137 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.00472/0.4629, allocations: 1.566 MB / 0.7286 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 7.464e-05/0.463, allocations: 8.031 kB / 0.7286 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003098/0.4633, allocations: 114.7 kB / 0.7287 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00598/0.4693, allocations: 0.5962 MB / 0.7293 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002488/0.4718, allocations: 0.7978 MB / 0.7301 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.4719, allocations: 62.12 kB / 0.7302 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002576/0.4722, allocations: 80 kB / 0.7302 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004751/0.477, allocations: 1.101 MB / 0.7313 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.4771, allocations: 4 kB / 0.7313 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/0.4772, allocations: 32 kB / 0.7314 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.718e-05/0.4773, allocations: 16 kB / 0.7314 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007473/0.4848, allocations: 1.012 MB / 0.7324 GB, free: 10.87 MB / 0.5294 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.01275/0.4976, allocations: 4.951 MB / 0.7372 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005403/0.5031, allocations: 0.9035 MB / 0.7381 GB, free: 4.723 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002744/0.5059, allocations: 494.1 kB / 0.7385 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002781/0.5087, allocations: 1.588 MB / 0.7401 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00344/0.5122, allocations: 0.5768 MB / 0.7407 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 7.314e-06/0.5122, allocations: 0 / 0.7407 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.009676/0.5219, allocations: 1.489 MB / 0.7421 GB, free: 220 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.5221, allocations: 63.97 kB / 0.7422 GB, free: 144 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003323/0.5254, allocations: 1.112 MB / 0.7433 GB, free: 15.02 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002162/0.5257, allocations: 37.7 kB / 0.7433 GB, free: 14.97 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008448/0.5266, allocations: 0.5472 MB / 0.7438 GB, free: 14.42 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004699/0.5271, allocations: 209.1 kB / 0.744 GB, free: 14.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005865/0.5277, allocations: 166.5 kB / 0.7442 GB, free: 14.04 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002373/0.5279, allocations: 337.9 kB / 0.7445 GB, free: 13.71 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002752/0.5307, allocations: 445.6 kB / 0.7449 GB, free: 13.27 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003158/0.5339, allocations: 0.7128 MB / 0.7456 GB, free: 12.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005688/0.5396, allocations: 1.124 MB / 0.7467 GB, free: 11.22 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.15e-05/0.5397, allocations: 0 / 0.7467 GB, free: 11.22 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.007417/0.5471, allocations: 1.27 MB / 0.748 GB, free: 9.938 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.543e-05/0.5472, allocations: 8.938 kB / 0.748 GB, free: 9.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.929e-05/0.5473, allocations: 8 kB / 0.748 GB, free: 9.922 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.645e-05/0.5474, allocations: 16 kB / 0.748 GB, free: 9.906 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002263/0.5496, allocations: 271.6 kB / 0.7483 GB, free: 9.641 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.246e-05/0.5497, allocations: 15.94 kB / 0.7483 GB, free: 9.625 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/0.552, allocations: 182.9 kB / 0.7485 GB, free: 9.445 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002673/0.5523, allocations: 47.97 kB / 0.7485 GB, free: 9.398 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.0011/0.5534, allocations: 285.1 kB / 0.7488 GB, free: 9.109 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006399/0.554, allocations: 122.4 kB / 0.7489 GB, free: 8.988 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00708/0.5611, allocations: 1.371 MB / 0.7502 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-05/0.5612, allocations: 11.98 kB / 0.7502 GB, free: 7.602 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.5613, allocations: 0 / 0.7502 GB, free: 7.602 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.5613, allocations: 3.984 kB / 0.7502 GB, free: 7.598 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009336/0.5706, allocations: 2.37 MB / 0.7526 GB, free: 5.148 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.307e-05/0.5707, allocations: 8.188 kB / 0.7526 GB, free: 5.141 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/0.5723, allocations: 183.8 kB / 0.7527 GB, free: 4.961 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.248e-05/0.5723, allocations: 4 kB / 0.7527 GB, free: 4.957 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001369/0.5725, allocations: 27.97 kB / 0.7528 GB, free: 4.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.388e-05/0.5725, allocations: 7.938 kB / 0.7528 GB, free: 4.922 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.5725, allocations: 3.938 kB / 0.7528 GB, free: 4.918 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008758/0.5813, allocations: 1.973 MB / 0.7547 GB, free: 2.914 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.5824, allocations: 279.4 kB / 0.755 GB, free: 2.621 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005288/0.5829, allocations: 19.92 kB / 0.755 GB, free: 2.602 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/0.5847, allocations: 111.9 kB / 0.7551 GB, free: 2.492 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.585, allocations: 48.44 kB / 0.7551 GB, free: 2.445 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.5852, allocations: 35.97 kB / 0.7552 GB, free: 2.41 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001934/0.5871, allocations: 0.7638 MB / 0.7559 GB, free: 1.641 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5871, allocations: 0 / 0.7559 GB, free: 1.641 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001857/0.589, allocations: 339.6 kB / 0.7562 GB, free: 1.309 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.01222/0.6012, allocations: 3.077 MB / 0.7593 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006576/0.6079, allocations: 1.188 MB / 0.7604 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.6079, allocations: 0 / 0.7604 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003057/0.611, allocations: 0.5736 MB / 0.761 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004548/0.6156, allocations: 464.8 kB / 0.7614 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04015/0.6558, allocations: 10.2 MB / 0.7714 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.6574, allocations: 1.104 MB / 0.7725 GB, free: 252 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002491/0.66, allocations: 244.7 kB / 0.7727 GB, free: 4 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5439/1.204, allocations: 455.4 kB / 0.7731 GB, free: 93.14 MB / 0.5606 GB Notification: Performance of SimCode: time 1.994e-06/1.204, allocations: 0 / 0.7731 GB, free: 93.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1123/1.316, allocations: 30.37 MB / 0.8028 GB, free: 83.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/13.43, allocations: 19.5 kB / 0.8028 GB, free: 83.04 MB / 0.5606 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)