Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IBPSA_latest_IBPSA_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.002049/0.002049, allocations: 104.9 kB / 16.4 MB, free: 6.496 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.002018/0.002018, allocations: 192 kB / 17.34 MB, free: 5.727 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.514/1.514, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8619/0.8619, allocations: 125.4 MB / 416.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 63.7 kB / 0.5717 GB, free: 27.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1332, allocations: 78.57 MB / 0.6484 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.0583/0.1916, allocations: 54.54 MB / 0.7017 GB, free: 14.84 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01577/0.2074, allocations: 10.35 MB / 0.7118 GB, free: 4.465 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001809/0.2092, allocations: 67.56 kB / 0.7118 GB, free: 4.398 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00233/0.2116, allocations: 0.893 MB / 0.7127 GB, free: 3.5 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005232/0.2169, allocations: 1.92 MB / 0.7146 GB, free: 1.57 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005951/0.2228, allocations: 2.082 MB / 0.7166 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.005684/0.2285, allocations: 3.749 MB / 0.7203 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00193/0.2305, allocations: 1.162 MB / 0.7214 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00391/0.2344, allocations: 1.875 MB / 0.7232 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001893/0.2363, allocations: 1.19 MB / 0.7244 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002531/0.2366, allocations: 108 kB / 0.7245 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002942/0.2396, allocations: 1.283 MB / 0.7258 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004603/0.24, allocations: 382.4 kB / 0.7261 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.2411, allocations: 0.8547 MB / 0.727 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004071/0.2452, allocations: 2.463 MB / 0.7294 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2452, allocations: 0 / 0.7294 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2452, allocations: 3.938 kB / 0.7294 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.44e-05/0.2453, allocations: 0 / 0.7294 GB, free: 2.363 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003844/0.2491, allocations: 2.189 MB / 0.7315 GB, free: 108 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.2492, allocations: 12.03 kB / 0.7315 GB, free: 96 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002045/0.2494, allocations: 160.8 kB / 0.7317 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003845/0.2532, allocations: 0.6659 MB / 0.7323 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/0.2557, allocations: 1.192 MB / 0.7335 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.429e-05/0.2558, allocations: 86.14 kB / 0.7336 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.2559, allocations: 108 kB / 0.7337 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003382/0.2593, allocations: 1.492 MB / 0.7351 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.2594, allocations: 3.938 kB / 0.7351 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.2595, allocations: 48 kB / 0.7352 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.982e-05/0.2595, allocations: 28 kB / 0.7352 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003867/0.2634, allocations: 1.229 MB / 0.7364 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.274, allocations: 8.386 MB / 0.7446 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003717/0.2777, allocations: 1.097 MB / 0.7457 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/0.2795, allocations: 0.5602 MB / 0.7462 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2963/0.5759, allocations: 2.887 MB / 0.749 GB, free: 91.23 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002226/0.5781, allocations: 0.677 MB / 0.7497 GB, free: 91.16 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=85): time 3.928e-06/0.5782, allocations: 0 / 0.7497 GB, free: 91.16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85): time 0.005903/0.5841, allocations: 1.795 MB / 0.7514 GB, free: 91.11 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.5842, allocations: 65.69 kB / 0.7515 GB, free: 91.04 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/0.5863, allocations: 1.486 MB / 0.753 GB, free: 90.75 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.5864, allocations: 43.84 kB / 0.753 GB, free: 90.71 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005685/0.587, allocations: 0.7917 MB / 0.7538 GB, free: 90.21 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000286/0.5873, allocations: 313.8 kB / 0.7541 GB, free: 90.02 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003765/0.5877, allocations: 230.9 kB / 0.7543 GB, free: 89.92 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.556e-05/0.5877, allocations: 353.6 kB / 0.7546 GB, free: 89.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001806/0.5896, allocations: 0.5209 MB / 0.7551 GB, free: 89.47 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.5917, allocations: 0.8995 MB / 0.756 GB, free: 88.89 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003835/0.5955, allocations: 1.412 MB / 0.7574 GB, free: 88.14 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/0.5956, allocations: 3 kB / 0.7574 GB, free: 88.14 MB / 0.5762 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00487/0.6005, allocations: 1.606 MB / 0.759 GB, free: 87.62 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.6005, allocations: 9.25 kB / 0.759 GB, free: 87.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.6005, allocations: 18.56 kB / 0.759 GB, free: 87.62 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.618e-05/0.6006, allocations: 17.28 kB / 0.759 GB, free: 87.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.6021, allocations: 350.6 kB / 0.7593 GB, free: 87.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.067e-05/0.6021, allocations: 27.53 kB / 0.7594 GB, free: 87.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.6037, allocations: 225.3 kB / 0.7596 GB, free: 87.53 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001709/0.6039, allocations: 67.92 kB / 0.7596 GB, free: 87.52 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (140): * Single equations (assignments): 140 * 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.0005907/0.6045, allocations: 347 kB / 0.76 GB, free: 87.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003073/0.6048, allocations: 179.1 kB / 0.7601 GB, free: 87.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005382/0.6102, allocations: 2.084 MB / 0.7622 GB, free: 86.56 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/0.6102, allocations: 20.89 kB / 0.7622 GB, free: 86.55 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.6103, allocations: 1.922 kB / 0.7622 GB, free: 86.55 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.6103, allocations: 5.531 kB / 0.7622 GB, free: 86.55 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007124/0.6174, allocations: 3.293 MB / 0.7654 GB, free: 85.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.6175, allocations: 1.156 kB / 0.7654 GB, free: 85.23 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.6186, allocations: 230.9 kB / 0.7656 GB, free: 85.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.6187, allocations: 9.656 kB / 0.7657 GB, free: 85.21 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.046e-05/0.6187, allocations: 40.81 kB / 0.7657 GB, free: 85.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.787e-06/0.6188, allocations: 5.562 kB / 0.7657 GB, free: 85.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.6188, allocations: 2.188 kB / 0.7657 GB, free: 85.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006225/0.625, allocations: 2.695 MB / 0.7683 GB, free: 84.14 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006294/0.6257, allocations: 401.7 kB / 0.7687 GB, free: 83.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.6259, allocations: 26.77 kB / 0.7687 GB, free: 83.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.6271, allocations: 115.8 kB / 0.7689 GB, free: 83.85 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.6272, allocations: 76.3 kB / 0.7689 GB, free: 83.84 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.6273, allocations: 52.48 kB / 0.769 GB, free: 83.83 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001316/0.6287, allocations: 1.003 MB / 0.77 GB, free: 83.48 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6287, allocations: 3.938 kB / 0.77 GB, free: 83.48 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001626/0.6303, allocations: 0.5402 MB / 0.7705 GB, free: 83.4 MB / 0.5762 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 (110): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * 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.008347/0.6387, allocations: 4.003 MB / 0.7744 GB, free: 81.23 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003798/0.6425, allocations: 1.456 MB / 0.7758 GB, free: 80.59 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.6425, allocations: 0 / 0.7758 GB, free: 80.59 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001842/0.6444, allocations: 0.8009 MB / 0.7766 GB, free: 80.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/0.6475, allocations: 0.7315 MB / 0.7773 GB, free: 79.83 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/0.6662, allocations: 12.57 MB / 0.7896 GB, free: 68.18 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000596/0.6668, allocations: 1.301 MB / 0.7909 GB, free: 66.84 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001188/0.668, allocations: 373.8 kB / 0.7912 GB, free: 66.47 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007513/0.6688, allocations: 0.7101 MB / 0.7919 GB, free: 65.76 MB / 0.5762 GB Notification: Performance of SimCode: time 7.51e-07/0.6688, allocations: 0 / 0.7919 GB, free: 65.76 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0753/0.7441, allocations: 47.43 MB / 0.8382 GB, free: 18.85 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.79, allocations: 11.09 kB / 0.8382 GB, free: 18.85 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)