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.001065/0.001065, allocations: 108 kB / 15.61 MB, free: 148 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.001135/0.001135, allocations: 196.2 kB / 16.53 MB, free: 6.656 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.274/1.274, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 283.2 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9237/0.9237, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 99.52 kB / 0.5954 GB, free: 27.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1439, allocations: 86.97 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.0303/0.1743, allocations: 29.32 MB / 0.7089 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00939/0.1837, allocations: 6.863 MB / 0.7156 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.1848, allocations: 51.69 kB / 0.7157 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.1864, allocations: 0.6914 MB / 0.7163 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003581/0.19, allocations: 1.448 MB / 0.7178 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002971/0.193, allocations: 1.163 MB / 0.7189 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003055/0.1961, allocations: 2.469 MB / 0.7213 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.1973, allocations: 0.802 MB / 0.7221 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001771/0.1991, allocations: 1.004 MB / 0.7231 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.2004, allocations: 0.813 MB / 0.7239 GB, free: 3.809 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002732/0.2006, allocations: 71.94 kB / 0.7239 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001948/0.2026, allocations: 0.8187 MB / 0.7247 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003554/0.203, allocations: 271 kB / 0.725 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007561/0.2037, allocations: 0.5475 MB / 0.7255 GB, free: 2.102 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002405/0.2061, allocations: 1.612 MB / 0.7271 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2062, allocations: 0 / 0.7271 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2062, allocations: 0 / 0.7271 GB, free: 496 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.449e-05/0.2062, allocations: 0 / 0.7271 GB, free: 496 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.002899/0.2091, allocations: 1.566 MB / 0.7286 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.2092, allocations: 8.031 kB / 0.7286 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001542/0.2093, allocations: 118.7 kB / 0.7288 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003479/0.2128, allocations: 0.5884 MB / 0.7293 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.2141, allocations: 0.8094 MB / 0.7301 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.29e-05/0.2142, allocations: 58.11 kB / 0.7302 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.2143, allocations: 79.98 kB / 0.7302 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.2167, allocations: 1.109 MB / 0.7313 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.2168, allocations: 0 / 0.7313 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.818e-05/0.2168, allocations: 28 kB / 0.7314 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.2169, allocations: 20 kB / 0.7314 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003136/0.22, allocations: 1.004 MB / 0.7324 GB, free: 10.9 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.005931/0.226, allocations: 4.955 MB / 0.7372 GB, free: 5.664 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002982/0.229, allocations: 0.9074 MB / 0.7381 GB, free: 4.75 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.2305, allocations: 482.2 kB / 0.7385 GB, free: 4.273 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001536/0.232, allocations: 1.592 MB / 0.7401 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001759/0.2338, allocations: 0.569 MB / 0.7407 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 3.297e-06/0.2338, allocations: 0 / 0.7407 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.004869/0.2387, allocations: 1.497 MB / 0.7421 GB, free: 256 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.2387, allocations: 55.97 kB / 0.7422 GB, free: 188 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.2402, allocations: 1.108 MB / 0.7433 GB, free: 15.06 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.678e-05/0.2403, allocations: 49.7 kB / 0.7433 GB, free: 15.01 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004236/0.2407, allocations: 0.5433 MB / 0.7438 GB, free: 14.46 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.2409, allocations: 213.1 kB / 0.744 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.2411, allocations: 158.5 kB / 0.7442 GB, free: 14.09 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.2413, allocations: 338 kB / 0.7445 GB, free: 13.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.2428, allocations: 449.6 kB / 0.7449 GB, free: 13.31 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/0.2445, allocations: 0.7128 MB / 0.7456 GB, free: 12.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.2475, allocations: 1.12 MB / 0.7467 GB, free: 11.26 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.2475, allocations: 4 kB / 0.7467 GB, free: 11.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003649/0.2512, allocations: 1.278 MB / 0.748 GB, free: 9.969 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.2512, allocations: 8 kB / 0.748 GB, free: 9.961 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.2512, allocations: 8 kB / 0.748 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.979e-05/0.2513, allocations: 8.875 kB / 0.748 GB, free: 9.945 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.2525, allocations: 275.5 kB / 0.7483 GB, free: 9.676 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/0.2525, allocations: 15.94 kB / 0.7483 GB, free: 9.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.2537, allocations: 186.9 kB / 0.7485 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.2539, allocations: 43.98 kB / 0.7485 GB, free: 9.434 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.0004594/0.2543, allocations: 297 kB / 0.7488 GB, free: 9.133 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002465/0.2546, allocations: 126.4 kB / 0.7489 GB, free: 9.008 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003919/0.2585, allocations: 1.362 MB / 0.7502 GB, free: 7.645 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.2585, allocations: 15.92 kB / 0.7502 GB, free: 7.629 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2585, allocations: 0 / 0.7502 GB, free: 7.629 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.2586, allocations: 3.984 kB / 0.7503 GB, free: 7.625 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00509/0.2637, allocations: 2.374 MB / 0.7526 GB, free: 5.172 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.2637, allocations: 0 / 0.7526 GB, free: 5.172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.2647, allocations: 191.9 kB / 0.7528 GB, free: 4.984 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/0.2648, allocations: 4 kB / 0.7528 GB, free: 4.98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.83e-05/0.2648, allocations: 23.97 kB / 0.7528 GB, free: 4.957 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.2648, allocations: 4 kB / 0.7528 GB, free: 4.953 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.2649, allocations: 11.88 kB / 0.7528 GB, free: 4.941 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005114/0.27, allocations: 1.965 MB / 0.7547 GB, free: 2.945 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004561/0.2704, allocations: 275.3 kB / 0.755 GB, free: 2.656 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.2707, allocations: 20 kB / 0.755 GB, free: 2.637 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009895/0.2717, allocations: 111.9 kB / 0.7551 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.2718, allocations: 56.38 kB / 0.7552 GB, free: 2.473 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.417e-05/0.2719, allocations: 31.97 kB / 0.7552 GB, free: 2.441 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009933/0.2729, allocations: 0.7638 MB / 0.7559 GB, free: 1.672 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.21e-07/0.2729, allocations: 0 / 0.7559 GB, free: 1.672 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001071/0.274, allocations: 343.6 kB / 0.7563 GB, free: 1.336 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.006904/0.2809, allocations: 3.066 MB / 0.7593 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003665/0.2846, allocations: 1.192 MB / 0.7604 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.2846, allocations: 0 / 0.7604 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.2862, allocations: 0.5735 MB / 0.761 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/0.2884, allocations: 461.3 kB / 0.7614 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02003/0.3085, allocations: 10.2 MB / 0.7714 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007401/0.3092, allocations: 1.108 MB / 0.7725 GB, free: 292 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001082/0.3103, allocations: 244.7 kB / 0.7727 GB, free: 44 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2459/0.5562, allocations: 462.4 kB / 0.7731 GB, free: 93.12 MB / 0.5606 GB Notification: Performance of SimCode: time 1.442e-06/0.5563, allocations: 0.8125 kB / 0.7731 GB, free: 93.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05266/0.6089, allocations: 30.36 MB / 0.8028 GB, free: 83.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.66, allocations: 19.5 kB / 0.8028 GB, free: 83.02 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)