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.001317/0.001318, allocations: 108 kB / 15.61 MB, free: 152 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.001285/0.001285, allocations: 197.9 kB / 16.53 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00246/0.00246, allocations: 279 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.051/1.051, allocations: 178.6 MB / 0.5073 GB, free: 4.598 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002748/0.002748, allocations: 95.33 kB / 0.6065 GB, free: 24.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1595, allocations: 89.14 MB / 0.6936 GB, free: 4.266 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03373/0.1933, allocations: 29.33 MB / 0.7222 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01158/0.2049, allocations: 6.881 MB / 0.729 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001235/0.2062, allocations: 51.69 kB / 0.729 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002503/0.2087, allocations: 0.6914 MB / 0.7297 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004167/0.2129, allocations: 1.456 MB / 0.7311 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003186/0.2161, allocations: 1.154 MB / 0.7322 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003361/0.2195, allocations: 2.473 MB / 0.7346 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.2209, allocations: 0.8023 MB / 0.7354 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001926/0.2228, allocations: 1 MB / 0.7364 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.2241, allocations: 0.8169 MB / 0.7372 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.2243, allocations: 68 kB / 0.7373 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001747/0.226, allocations: 0.8148 MB / 0.7381 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002948/0.2263, allocations: 271 kB / 0.7383 GB, free: 6.305 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006341/0.227, allocations: 0.5475 MB / 0.7389 GB, free: 5.754 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002273/0.2293, allocations: 1.596 MB / 0.7404 GB, free: 4.152 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2293, allocations: 0 / 0.7404 GB, free: 4.152 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2293, allocations: 0 / 0.7404 GB, free: 4.152 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.2293, allocations: 0 / 0.7404 GB, free: 4.152 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.002474/0.2318, allocations: 1.562 MB / 0.7419 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2318, allocations: 8.031 kB / 0.7419 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.232, allocations: 118.6 kB / 0.7421 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003342/0.2353, allocations: 0.5923 MB / 0.7426 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.2364, allocations: 0.8017 MB / 0.7434 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.672e-05/0.2365, allocations: 62.12 kB / 0.7435 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.2366, allocations: 68 kB / 0.7435 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002298/0.2389, allocations: 1.1 MB / 0.7446 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.2389, allocations: 7.938 kB / 0.7446 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.617e-05/0.239, allocations: 31.98 kB / 0.7447 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.831e-05/0.2391, allocations: 16 kB / 0.7447 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002993/0.2421, allocations: 1.004 MB / 0.7457 GB, free: 14.59 MB / 0.545 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.005327/0.2474, allocations: 4.955 MB / 0.7505 GB, free: 9.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.2503, allocations: 0.9037 MB / 0.7514 GB, free: 8.43 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.2517, allocations: 494.1 kB / 0.7518 GB, free: 7.945 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00141/0.2531, allocations: 1.587 MB / 0.7534 GB, free: 6.008 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001608/0.2548, allocations: 0.5651 MB / 0.7539 GB, free: 5.43 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 4.218e-06/0.2548, allocations: 4 kB / 0.754 GB, free: 5.426 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.004625/0.2594, allocations: 1.485 MB / 0.7554 GB, free: 3.934 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.2595, allocations: 63.91 kB / 0.7555 GB, free: 3.859 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.2607, allocations: 1.116 MB / 0.7566 GB, free: 2.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.2608, allocations: 41.7 kB / 0.7566 GB, free: 2.684 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000435/0.2612, allocations: 0.5435 MB / 0.7571 GB, free: 2.133 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.2614, allocations: 209 kB / 0.7573 GB, free: 1.926 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/0.2617, allocations: 166.5 kB / 0.7575 GB, free: 1.758 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2618, allocations: 337.9 kB / 0.7578 GB, free: 1.422 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001465/0.2633, allocations: 449.5 kB / 0.7582 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.265, allocations: 0.7211 MB / 0.7589 GB, free: 156 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2505/0.5154, allocations: 1.113 MB / 0.76 GB, free: 67.09 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.5155, allocations: 2.25 kB / 0.76 GB, free: 67.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003912/0.5194, allocations: 1.273 MB / 0.7613 GB, free: 67 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.5195, allocations: 8.562 kB / 0.7613 GB, free: 67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.5195, allocations: 8.156 kB / 0.7613 GB, free: 67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.212e-05/0.5195, allocations: 11.09 kB / 0.7613 GB, free: 67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.5207, allocations: 272.8 kB / 0.7616 GB, free: 66.99 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.721e-05/0.5208, allocations: 18.7 kB / 0.7616 GB, free: 66.99 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.522, allocations: 180 kB / 0.7617 GB, free: 66.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.5221, allocations: 47.27 kB / 0.7618 GB, free: 66.99 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.0004651/0.5226, allocations: 293.4 kB / 0.7621 GB, free: 66.86 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.5229, allocations: 119.3 kB / 0.7622 GB, free: 66.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.5267, allocations: 1.36 MB / 0.7635 GB, free: 66.71 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/0.5267, allocations: 9.5 kB / 0.7635 GB, free: 66.71 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5267, allocations: 0.7969 kB / 0.7635 GB, free: 66.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.5268, allocations: 8.547 kB / 0.7635 GB, free: 66.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004824/0.5316, allocations: 2.366 MB / 0.7658 GB, free: 65.76 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.5316, allocations: 5.781 kB / 0.7658 GB, free: 65.76 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009903/0.5326, allocations: 187.5 kB / 0.766 GB, free: 65.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/0.5326, allocations: 9.109 kB / 0.766 GB, free: 65.74 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/0.5327, allocations: 24 kB / 0.7661 GB, free: 65.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.5327, allocations: 4.906 kB / 0.7661 GB, free: 65.73 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5327, allocations: 5.25 kB / 0.7661 GB, free: 65.73 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004892/0.5376, allocations: 1.97 MB / 0.768 GB, free: 65.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/0.538, allocations: 286 kB / 0.7683 GB, free: 64.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.5382, allocations: 15.56 kB / 0.7683 GB, free: 64.81 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009479/0.5392, allocations: 115.6 kB / 0.7684 GB, free: 64.79 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.5393, allocations: 50.89 kB / 0.7684 GB, free: 64.78 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.287e-05/0.5394, allocations: 33.8 kB / 0.7685 GB, free: 64.78 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009551/0.5403, allocations: 0.7677 MB / 0.7692 GB, free: 64.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5403, allocations: 0 / 0.7692 GB, free: 64.49 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001114/0.5414, allocations: 342.5 kB / 0.7695 GB, free: 64.44 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.007245/0.5487, allocations: 3.079 MB / 0.7726 GB, free: 63.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003724/0.5525, allocations: 1.185 MB / 0.7737 GB, free: 62.76 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5525, allocations: 1.219 kB / 0.7737 GB, free: 62.76 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001629/0.5541, allocations: 0.5768 MB / 0.7743 GB, free: 62.61 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/0.5564, allocations: 462.1 kB / 0.7747 GB, free: 62.46 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/0.5746, allocations: 10.22 MB / 0.7847 GB, free: 57.04 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/0.5752, allocations: 1.107 MB / 0.7858 GB, free: 56.31 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001044/0.5762, allocations: 235 kB / 0.786 GB, free: 56.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005281/0.5768, allocations: 461.5 kB / 0.7864 GB, free: 55.93 MB / 0.545 GB Notification: Performance of SimCode: time 4.81e-07/0.5768, allocations: 1.969 kB / 0.7864 GB, free: 55.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.057/0.6338, allocations: 30.37 MB / 0.8161 GB, free: 34.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.428/9.062, allocations: 0 / 0.8161 GB, free: 34.41 MB / 0.545 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)