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.001119/0.001119, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00123/0.00123, allocations: 199.3 kB / 16.14 MB, free: 6.664 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.339/1.339, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002081/0.002081, allocations: 281.6 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9029/0.9029, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 94.95 kB / 0.5946 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1589, allocations: 86.98 MB / 0.6795 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02939/0.1883, allocations: 29.16 MB / 0.708 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0107/0.199, allocations: 6.898 MB / 0.7148 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00141/0.2005, allocations: 43.69 kB / 0.7148 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.2023, allocations: 0.5988 MB / 0.7154 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003574/0.2059, allocations: 1.352 MB / 0.7167 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002628/0.2085, allocations: 1.032 MB / 0.7177 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0035/0.2121, allocations: 3.233 MB / 0.7209 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.2133, allocations: 0.7159 MB / 0.7216 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002588/0.2159, allocations: 0.9412 MB / 0.7225 GB, free: 4.961 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/0.2177, allocations: 0.8324 MB / 0.7233 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003657/0.2181, allocations: 40 kB / 0.7233 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002394/0.2205, allocations: 0.7638 MB / 0.7241 GB, free: 3.32 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004507/0.221, allocations: 266.9 kB / 0.7243 GB, free: 3.059 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0008708/0.2219, allocations: 0.5319 MB / 0.7249 GB, free: 2.523 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002684/0.2246, allocations: 1.565 MB / 0.7264 GB, free: 0.9531 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2246, allocations: 0 / 0.7264 GB, free: 0.9531 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2246, allocations: 4 kB / 0.7264 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.116e-05/0.2247, allocations: 0 / 0.7264 GB, free: 0.9492 MB / 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.003044/0.2277, allocations: 1.57 MB / 0.7279 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.2278, allocations: 8.031 kB / 0.7279 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001511/0.2279, allocations: 118.6 kB / 0.728 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003494/0.2314, allocations: 0.5845 MB / 0.7286 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.2327, allocations: 0.8095 MB / 0.7294 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.2e-05/0.2327, allocations: 62.12 kB / 0.7295 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.2329, allocations: 68 kB / 0.7295 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.2353, allocations: 1.103 MB / 0.7306 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.2353, allocations: 7.938 kB / 0.7306 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.622e-05/0.2354, allocations: 28 kB / 0.7306 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.2354, allocations: 16 kB / 0.7307 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002937/0.2384, allocations: 1 MB / 0.7316 GB, free: 11.38 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.005605/0.244, allocations: 4.951 MB / 0.7365 GB, free: 6.141 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002907/0.2469, allocations: 0.9051 MB / 0.7374 GB, free: 5.23 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.2483, allocations: 493.5 kB / 0.7378 GB, free: 4.746 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001326/0.2497, allocations: 1.591 MB / 0.7394 GB, free: 2.805 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001681/0.2514, allocations: 0.5729 MB / 0.7399 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 3.196e-06/0.2514, allocations: 0 / 0.7399 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.004662/0.256, allocations: 1.481 MB / 0.7414 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.2561, allocations: 59.91 kB / 0.7414 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001464/0.2576, allocations: 1.112 MB / 0.7425 GB, free: 15.54 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.2577, allocations: 49.69 kB / 0.7426 GB, free: 15.48 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004144/0.2581, allocations: 0.5472 MB / 0.7431 GB, free: 14.93 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000191/0.2583, allocations: 209 kB / 0.7433 GB, free: 14.72 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.2586, allocations: 162.5 kB / 0.7435 GB, free: 14.55 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.2587, allocations: 337.9 kB / 0.7438 GB, free: 14.22 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.2601, allocations: 453.5 kB / 0.7442 GB, free: 13.78 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.2617, allocations: 0.7166 MB / 0.7449 GB, free: 12.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/0.2646, allocations: 1.12 MB / 0.746 GB, free: 11.72 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.2647, allocations: 4 kB / 0.746 GB, free: 11.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003459/0.2681, allocations: 1.266 MB / 0.7473 GB, free: 10.44 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.2682, allocations: 8.938 kB / 0.7473 GB, free: 10.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.2682, allocations: 8 kB / 0.7473 GB, free: 10.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.2682, allocations: 15.98 kB / 0.7473 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.2694, allocations: 271.5 kB / 0.7475 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.2694, allocations: 15.98 kB / 0.7476 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.2706, allocations: 198.9 kB / 0.7477 GB, free: 9.934 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.521e-05/0.2707, allocations: 47.97 kB / 0.7478 GB, free: 9.887 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.000433/0.2712, allocations: 296.4 kB / 0.7481 GB, free: 9.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.2714, allocations: 122.4 kB / 0.7482 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003623/0.275, allocations: 1.359 MB / 0.7495 GB, free: 8.113 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.275, allocations: 8 kB / 0.7495 GB, free: 8.105 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.275, allocations: 0 / 0.7495 GB, free: 8.105 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.2751, allocations: 3.984 kB / 0.7495 GB, free: 8.102 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.2798, allocations: 2.37 MB / 0.7518 GB, free: 5.656 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.2798, allocations: 4 kB / 0.7518 GB, free: 5.652 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.2808, allocations: 191.9 kB / 0.752 GB, free: 5.465 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.2809, allocations: 8 kB / 0.752 GB, free: 5.457 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.928e-05/0.2809, allocations: 23.98 kB / 0.7521 GB, free: 5.434 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.186e-05/0.2809, allocations: 7.984 kB / 0.7521 GB, free: 5.426 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.281, allocations: 3.938 kB / 0.7521 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005227/0.2862, allocations: 1.965 MB / 0.754 GB, free: 3.422 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006128/0.2868, allocations: 283.4 kB / 0.7543 GB, free: 3.125 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002754/0.2871, allocations: 12 kB / 0.7543 GB, free: 3.113 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.2882, allocations: 127.8 kB / 0.7544 GB, free: 2.988 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.2884, allocations: 52.42 kB / 0.7544 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.461e-05/0.2885, allocations: 35.97 kB / 0.7545 GB, free: 2.902 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001088/0.2896, allocations: 0.7638 MB / 0.7552 GB, free: 2.133 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2896, allocations: 0 / 0.7552 GB, free: 2.133 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001205/0.2908, allocations: 347.5 kB / 0.7556 GB, free: 1.793 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.006927/0.2977, allocations: 3.083 MB / 0.7586 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003373/0.3011, allocations: 1.118 MB / 0.7597 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.3012, allocations: 0 / 0.7597 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.3028, allocations: 0.5736 MB / 0.7602 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.3051, allocations: 421.9 kB / 0.7606 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02014/0.3253, allocations: 10.54 MB / 0.7709 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.326, allocations: 1.108 MB / 0.772 GB, free: 496 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001119/0.3271, allocations: 248.1 kB / 0.7722 GB, free: 248 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2812/0.6083, allocations: 457 kB / 0.7727 GB, free: 93.33 MB / 0.5606 GB Notification: Performance of SimCode: time 7.61e-07/0.6084, allocations: 0.6562 kB / 0.7727 GB, free: 93.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06219/0.6706, allocations: 29.38 MB / 0.8014 GB, free: 83.88 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.6708, allocations: 263.9 kB / 0.8016 GB, free: 83.53 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/3.099, allocations: 0 / 0.8016 GB, free: 83.53 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)