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.000974/0.0009741, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.006567/0.006567, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.324/1.324, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001693/0.001693, allocations: 277.8 kB / 291.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9086/0.9086, allocations: 169.5 MB / 0.5004 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004522/0.0004521, allocations: 14.53 kB / 0.5988 GB, free: 28.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1491, allocations: 88.55 MB / 0.6852 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.0247/0.1738, allocations: 28.43 MB / 0.713 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009751/0.1836, allocations: 6.816 MB / 0.7197 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001246/0.1849, allocations: 39.69 kB / 0.7197 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.1863, allocations: 0.6066 MB / 0.7203 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003405/0.1897, allocations: 1.334 MB / 0.7216 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002614/0.1923, allocations: 1.035 MB / 0.7226 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003215/0.1955, allocations: 3.229 MB / 0.7258 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009962/0.1965, allocations: 0.7176 MB / 0.7265 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.198, allocations: 0.9178 MB / 0.7274 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008766/0.1989, allocations: 0.809 MB / 0.7281 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.482e-05/0.199, allocations: 36 kB / 0.7282 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001498/0.2005, allocations: 0.76 MB / 0.7289 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002282/0.2008, allocations: 250.9 kB / 0.7292 GB, free: 1.836 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004432/0.2012, allocations: 0.5452 MB / 0.7297 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001564/0.2028, allocations: 1.553 MB / 0.7312 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2028, allocations: 3.938 kB / 0.7312 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2028, allocations: 0 / 0.7312 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.2028, allocations: 0 / 0.7312 GB, free: 15.72 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.002189/0.205, allocations: 1.36 MB / 0.7325 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2051, allocations: 12.03 kB / 0.7326 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.2052, allocations: 118.7 kB / 0.7327 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003356/0.2086, allocations: 0.6354 MB / 0.7333 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.2097, allocations: 0.8095 MB / 0.7341 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.635e-05/0.2097, allocations: 58.12 kB / 0.7341 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.2099, allocations: 75.91 kB / 0.7342 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.2121, allocations: 1.111 MB / 0.7353 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.2122, allocations: 4 kB / 0.7353 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.822e-05/0.2123, allocations: 35.98 kB / 0.7353 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.2123, allocations: 16 kB / 0.7353 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.2152, allocations: 1.027 MB / 0.7363 GB, free: 10.27 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.005243/0.2205, allocations: 4.97 MB / 0.7412 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002807/0.2233, allocations: 0.9558 MB / 0.7421 GB, free: 4.043 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.2247, allocations: 0.4952 MB / 0.7426 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001304/0.226, allocations: 1.603 MB / 0.7442 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001591/0.2276, allocations: 0.5846 MB / 0.7448 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 2.454e-06/0.2276, allocations: 0 / 0.7448 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.004569/0.2322, allocations: 1.52 MB / 0.7462 GB, free: 15.46 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.2323, allocations: 55.97 kB / 0.7463 GB, free: 15.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.2335, allocations: 1.12 MB / 0.7474 GB, free: 14.27 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.13e-05/0.2336, allocations: 37.7 kB / 0.7474 GB, free: 14.22 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/0.234, allocations: 0.5435 MB / 0.748 GB, free: 13.67 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.2342, allocations: 209 kB / 0.7482 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.2343, allocations: 69.69 kB / 0.7482 GB, free: 13.39 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.2345, allocations: 337.9 kB / 0.7485 GB, free: 13.05 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.2358, allocations: 461.6 kB / 0.749 GB, free: 12.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001578/0.2374, allocations: 0.7283 MB / 0.7497 GB, free: 11.76 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/0.2404, allocations: 1.14 MB / 0.7508 GB, free: 10.52 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.2404, allocations: 4 kB / 0.7508 GB, free: 10.51 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003422/0.2439, allocations: 1.301 MB / 0.7521 GB, free: 9.203 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.2439, allocations: 10.5 kB / 0.7521 GB, free: 9.195 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.2439, allocations: 8 kB / 0.7521 GB, free: 9.188 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/0.244, allocations: 11.98 kB / 0.7521 GB, free: 9.176 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.2451, allocations: 275.6 kB / 0.7524 GB, free: 8.906 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.791e-05/0.2452, allocations: 15.94 kB / 0.7524 GB, free: 8.891 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.2464, allocations: 203 kB / 0.7526 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.395e-05/0.2465, allocations: 44.06 kB / 0.7526 GB, free: 8.648 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.0004645/0.247, allocations: 300.3 kB / 0.7529 GB, free: 8.348 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.2471, allocations: 130.4 kB / 0.753 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003718/0.2508, allocations: 1.377 MB / 0.7544 GB, free: 6.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.3e-05/0.2509, allocations: 15.97 kB / 0.7544 GB, free: 6.824 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2509, allocations: 3.938 kB / 0.7544 GB, free: 6.82 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.2509, allocations: 3.984 kB / 0.7544 GB, free: 6.816 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004934/0.2558, allocations: 2.393 MB / 0.7567 GB, free: 4.352 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.2559, allocations: 4 kB / 0.7567 GB, free: 4.348 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009942/0.2569, allocations: 188 kB / 0.7569 GB, free: 4.164 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.2569, allocations: 8 kB / 0.7569 GB, free: 4.156 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.227e-05/0.257, allocations: 27.97 kB / 0.757 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.257, allocations: 4 kB / 0.757 GB, free: 4.125 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.257, allocations: 7.875 kB / 0.757 GB, free: 4.117 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004914/0.2619, allocations: 2.008 MB / 0.7589 GB, free: 2.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004052/0.2623, allocations: 283.3 kB / 0.7592 GB, free: 1.773 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.2625, allocations: 20 kB / 0.7592 GB, free: 1.754 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009432/0.2634, allocations: 131.8 kB / 0.7593 GB, free: 1.625 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.2635, allocations: 56.31 kB / 0.7594 GB, free: 1.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.2637, allocations: 39.97 kB / 0.7594 GB, free: 1.531 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001069/0.2647, allocations: 0.7638 MB / 0.7602 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.1e-07/0.2648, allocations: 0 / 0.7602 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001241/0.266, allocations: 347.5 kB / 0.7605 GB, free: 432 kB / 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.007068/0.2731, allocations: 3.11 MB / 0.7635 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003223/0.2763, allocations: 1.134 MB / 0.7647 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2763, allocations: 0 / 0.7647 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.2779, allocations: 0.5853 MB / 0.7652 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.2802, allocations: 430.2 kB / 0.7656 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/0.299, allocations: 10.67 MB / 0.7761 GB, free: 56 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2882/0.5872, allocations: 1.099 MB / 0.7771 GB, free: 91.79 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001369/0.5886, allocations: 252.1 kB / 0.7774 GB, free: 91.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006186/0.5892, allocations: 457.5 kB / 0.7778 GB, free: 91.76 MB / 0.5606 GB Notification: Performance of SimCode: time 1.293e-06/0.5892, allocations: 0 / 0.7778 GB, free: 91.76 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05621/0.6454, allocations: 28.97 MB / 0.8061 GB, free: 82.21 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/0.6456, allocations: 271.2 kB / 0.8064 GB, free: 81.85 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/3.049, allocations: 0 / 0.8064 GB, free: 81.85 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)