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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 104.4 kB / 16.35 MB, free: 5.828 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.001615/0.001615, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.308/1.308, allocations: 222.9 MB / 241 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.002066/0.002066, allocations: 283.4 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9137/0.9137, allocations: 169.3 MB / 0.4989 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 94.47 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1503, allocations: 86.96 MB / 0.6816 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.2861/0.4364, allocations: 29.33 MB / 0.7102 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.4466, allocations: 6.868 MB / 0.7169 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.4479, allocations: 46.5 kB / 0.717 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.4495, allocations: 0.6865 MB / 0.7177 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003659/0.4532, allocations: 1.454 MB / 0.7191 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003048/0.4562, allocations: 1.165 MB / 0.7202 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003307/0.4596, allocations: 2.472 MB / 0.7226 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.4607, allocations: 0.7924 MB / 0.7234 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001675/0.4624, allocations: 1.01 MB / 0.7244 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.4634, allocations: 0.8144 MB / 0.7252 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.4635, allocations: 66.34 kB / 0.7252 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.4654, allocations: 0.8251 MB / 0.726 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002688/0.4657, allocations: 278.7 kB / 0.7263 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005238/0.4662, allocations: 0.5447 MB / 0.7268 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001975/0.4682, allocations: 1.635 MB / 0.7284 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.4682, allocations: 0 / 0.7284 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4682, allocations: 0 / 0.7284 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.456e-05/0.4682, allocations: 0 / 0.7284 GB, free: 6.457 MB / 0.4981 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.002444/0.4707, allocations: 1.564 MB / 0.73 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.4707, allocations: 13.02 kB / 0.73 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003241/0.474, allocations: 0.5862 MB / 0.7306 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.4755, allocations: 0.8683 MB / 0.7314 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.4756, allocations: 57.53 kB / 0.7315 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.4757, allocations: 80.39 kB / 0.7315 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.478, allocations: 1.104 MB / 0.7326 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.478, allocations: 8.938 kB / 0.7326 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.638e-05/0.4781, allocations: 32.56 kB / 0.7327 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.4781, allocations: 18.16 kB / 0.7327 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002718/0.4808, allocations: 0.9964 MB / 0.7336 GB, free: 2.965 MB / 0.4981 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.005336/0.4862, allocations: 4.943 MB / 0.7385 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002656/0.4888, allocations: 0.9088 MB / 0.7394 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.4902, allocations: 489 kB / 0.7398 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001267/0.4915, allocations: 1.589 MB / 0.7414 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001494/0.493, allocations: 0.579 MB / 0.7419 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 2.295e-06/0.493, allocations: 0 / 0.7419 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.004338/0.4973, allocations: 1.479 MB / 0.7434 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.4974, allocations: 69.42 kB / 0.7435 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.4986, allocations: 1.114 MB / 0.7445 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.512e-05/0.4987, allocations: 37.8 kB / 0.7446 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004083/0.4991, allocations: 0.5514 MB / 0.7451 GB, free: 9.793 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.4993, allocations: 213.5 kB / 0.7453 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002492/0.4996, allocations: 168.7 kB / 0.7455 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4997, allocations: 333.3 kB / 0.7458 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.501, allocations: 452.3 kB / 0.7462 GB, free: 8.973 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.5025, allocations: 0.7114 MB / 0.7469 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002684/0.5052, allocations: 1.121 MB / 0.748 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.5052, allocations: 1.438 kB / 0.748 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003166/0.5084, allocations: 1.273 MB / 0.7493 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.5084, allocations: 10.75 kB / 0.7493 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.5085, allocations: 8 kB / 0.7493 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.5085, allocations: 12.81 kB / 0.7493 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.5096, allocations: 264.2 kB / 0.7495 GB, free: 6.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/0.5096, allocations: 21.2 kB / 0.7496 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.5107, allocations: 187 kB / 0.7497 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.612e-05/0.5108, allocations: 44.33 kB / 0.7498 GB, free: 6.855 MB / 0.5137 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.0004069/0.5112, allocations: 296.8 kB / 0.7501 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/0.5114, allocations: 116.5 kB / 0.7502 GB, free: 6.578 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003369/0.5148, allocations: 1.355 MB / 0.7515 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-05/0.5148, allocations: 14.86 kB / 0.7515 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5148, allocations: 1.375 kB / 0.7515 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.5148, allocations: 0 / 0.7515 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004555/0.5194, allocations: 2.384 MB / 0.7538 GB, free: 3.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.5194, allocations: 3.984 kB / 0.7538 GB, free: 3.797 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009469/0.5204, allocations: 187.9 kB / 0.754 GB, free: 3.613 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.5204, allocations: 8 kB / 0.754 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.391e-05/0.5205, allocations: 27.97 kB / 0.7541 GB, free: 3.578 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.5205, allocations: 8 kB / 0.7541 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5205, allocations: 4 kB / 0.7541 GB, free: 3.566 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004539/0.525, allocations: 1.977 MB / 0.756 GB, free: 1.555 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004565/0.5255, allocations: 271.3 kB / 0.7563 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.5256, allocations: 20 kB / 0.7563 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008599/0.5265, allocations: 103.9 kB / 0.7564 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.94e-05/0.5266, allocations: 56.42 kB / 0.7564 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.248e-05/0.5267, allocations: 35.91 kB / 0.7565 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008542/0.5276, allocations: 0.7638 MB / 0.7572 GB, free: 296 kB / 0.5137 GB Notification: Performance of sort global known variables: time 2.6e-07/0.5276, allocations: 4 kB / 0.7572 GB, free: 292 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001036/0.5286, allocations: 347.6 kB / 0.7576 GB, free: 15.94 MB / 0.5294 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.001324/0.5299, allocations: 0.6485 MB / 0.7582 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002892/0.5328, allocations: 1.114 MB / 0.7593 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5329, allocations: 4.062 kB / 0.7593 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.5343, allocations: 0.5734 MB / 0.7598 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.536, allocations: 460.1 kB / 0.7603 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.5403, allocations: 2.338 MB / 0.7626 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/0.5409, allocations: 1.1 MB / 0.7636 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007549/0.5416, allocations: 244.7 kB / 0.7639 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002798/0.5419, allocations: 115.3 kB / 0.764 GB, free: 9.461 MB / 0.5294 GB Notification: Performance of SimCode: time 4.61e-07/0.5419, allocations: 0 / 0.764 GB, free: 9.461 MB / 0.5294 GB Notification: Performance of Templates: time 0.02959/0.5715, allocations: 19.87 MB / 0.7834 GB, free: 5.906 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)