Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007328/0.0007328, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007276/0.0007276, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8439/0.8439, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.672/1.672, allocations: 377.8 MB / 0.6221 GB, free: 8.672 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_12_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_12_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.651e-05/1.81e-05, allocations: 2.281 kB / 0.981 GB, free: 2.535 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03146/0.03147, allocations: 50 MB / 1.03 GB, free: 380 kB / 0.9792 GB Notification: Performance of NFInst.instExpressions: time 0.01094/0.04242, allocations: 9.766 MB / 1.039 GB, free: 6.582 MB / 0.9948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001749/0.04417, allocations: 91.19 kB / 1.039 GB, free: 6.492 MB / 0.9948 GB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.04602, allocations: 0.9238 MB / 1.04 GB, free: 5.562 MB / 0.9948 GB Notification: Performance of NFTyping.typeBindings: time 0.004225/0.05025, allocations: 2.125 MB / 1.042 GB, free: 3.426 MB / 0.9948 GB Notification: Performance of NFTyping.typeClassSections: time 0.004098/0.05434, allocations: 2.132 MB / 1.045 GB, free: 1.293 MB / 0.9948 GB Notification: Performance of NFFlatten.flatten: time 0.4449/0.4993, allocations: 3.85 MB / 1.048 GB, free: 46.85 MB / 0.9948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.5008, allocations: 0.9645 MB / 1.049 GB, free: 46.76 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003373/0.5042, allocations: 2.471 MB / 1.052 GB, free: 46.49 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.5054, allocations: 1.061 MB / 1.053 GB, free: 46.37 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.5055, allocations: 104.9 kB / 1.053 GB, free: 46.37 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.5072, allocations: 1.052 MB / 1.054 GB, free: 46.29 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002331/0.5075, allocations: 411.4 kB / 1.054 GB, free: 46.2 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 0.0004849/0.5079, allocations: 0.575 MB / 1.055 GB, free: 46.12 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.002151/0.5101, allocations: 2.434 MB / 1.057 GB, free: 45.91 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.5101, allocations: 0 / 1.057 GB, free: 45.91 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5101, allocations: 4.625 kB / 1.057 GB, free: 45.9 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 1.642e-05/0.5101, allocations: 0 / 1.057 GB, free: 45.9 MB / 0.9948 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.00187/0.512, allocations: 2.109 MB / 1.059 GB, free: 44.81 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.512, allocations: 10.75 kB / 1.059 GB, free: 44.81 MB / 0.9948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/0.5121, allocations: 165.6 kB / 1.059 GB, free: 44.77 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001599/0.5137, allocations: 0.665 MB / 1.06 GB, free: 44.64 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.5149, allocations: 1.074 MB / 1.061 GB, free: 44.23 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/0.5149, allocations: 87.91 kB / 1.061 GB, free: 44.23 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.515, allocations: 110.6 kB / 1.061 GB, free: 44.23 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.5166, allocations: 1.502 MB / 1.063 GB, free: 43.81 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.5166, allocations: 6.125 kB / 1.063 GB, free: 43.81 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.758e-05/0.5167, allocations: 47.81 kB / 1.063 GB, free: 43.81 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.5167, allocations: 27.84 kB / 1.063 GB, free: 43.81 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.5184, allocations: 1.236 MB / 1.064 GB, free: 43.78 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004185/0.5226, allocations: 6.568 MB / 1.07 GB, free: 39.91 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.5244, allocations: 1.059 MB / 1.071 GB, free: 39.86 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007584/0.5251, allocations: 0.5329 MB / 1.072 GB, free: 39.84 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005238/0.5256, allocations: 281.8 kB / 1.072 GB, free: 39.84 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009058/0.5265, allocations: 0.6889 MB / 1.073 GB, free: 39.77 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=85): time 3.317e-06/0.5266, allocations: 0 / 1.073 GB, free: 39.77 MB / 0.9948 GB Notification: Performance of matching and sorting (n=85): time 0.002836/0.5294, allocations: 1.815 MB / 1.075 GB, free: 39.61 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.5294, allocations: 60.5 kB / 1.075 GB, free: 39.55 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.5307, allocations: 1.567 MB / 1.076 GB, free: 39.34 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 6.193e-05/0.5308, allocations: 42.52 kB / 1.076 GB, free: 39.31 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003619/0.5311, allocations: 0.8066 MB / 1.077 GB, free: 39.04 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.5313, allocations: 303 kB / 1.077 GB, free: 38.85 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002574/0.5316, allocations: 224.4 kB / 1.078 GB, free: 38.82 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 5.271e-05/0.5316, allocations: 349.6 kB / 1.078 GB, free: 38.52 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009845/0.5326, allocations: 0.5318 MB / 1.078 GB, free: 38.51 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.5338, allocations: 1.134 MB / 1.08 GB, free: 37.79 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.5356, allocations: 1.427 MB / 1.081 GB, free: 37.34 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.5356, allocations: 4 kB / 1.081 GB, free: 37.34 MB / 0.9948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002539/0.5381, allocations: 1.627 MB / 1.083 GB, free: 37.17 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.5381, allocations: 12 kB / 1.083 GB, free: 37.17 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.5382, allocations: 11.12 kB / 1.083 GB, free: 37.17 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.948e-05/0.5382, allocations: 21.5 kB / 1.083 GB, free: 37.17 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007151/0.5389, allocations: 350.7 kB / 1.083 GB, free: 37.16 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.839e-05/0.5389, allocations: 27.75 kB / 1.083 GB, free: 37.16 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009727/0.5399, allocations: 223.3 kB / 1.083 GB, free: 37.09 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.18e-05/0.54, allocations: 65.75 kB / 1.083 GB, free: 37.09 MB / 0.9948 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.0004983/0.5405, allocations: 354.2 kB / 1.084 GB, free: 36.96 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.5407, allocations: 181.6 kB / 1.084 GB, free: 36.86 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002813/0.5435, allocations: 2.178 MB / 1.086 GB, free: 36.7 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.207e-05/0.5435, allocations: 28.44 kB / 1.086 GB, free: 36.69 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.5435, allocations: 0.9844 kB / 1.086 GB, free: 36.69 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.5435, allocations: 9.75 kB / 1.086 GB, free: 36.69 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004245/0.5478, allocations: 3.234 MB / 1.089 GB, free: 35.51 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.5478, allocations: 2.031 kB / 1.089 GB, free: 35.51 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006391/0.5484, allocations: 246.4 kB / 1.089 GB, free: 35.49 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.5484, allocations: 6.156 kB / 1.089 GB, free: 35.49 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.725e-05/0.5485, allocations: 36.41 kB / 1.089 GB, free: 35.48 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.598e-06/0.5485, allocations: 6.672 kB / 1.089 GB, free: 35.48 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5485, allocations: 2.031 kB / 1.089 GB, free: 35.48 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004055/0.5526, allocations: 2.831 MB / 1.092 GB, free: 34.43 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006494/0.5532, allocations: 325 kB / 1.092 GB, free: 34.25 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.5533, allocations: 26.95 kB / 1.092 GB, free: 34.23 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005651/0.5539, allocations: 120.2 kB / 1.093 GB, free: 34.21 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.554, allocations: 96.58 kB / 1.093 GB, free: 34.19 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.053e-05/0.5541, allocations: 50.7 kB / 1.093 GB, free: 34.18 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.001158/0.5553, allocations: 1.045 MB / 1.094 GB, free: 33.82 MB / 0.9948 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5553, allocations: 0 / 1.094 GB, free: 33.82 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.001354/0.5566, allocations: 0.5539 MB / 1.094 GB, free: 33.68 MB / 0.9948 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 (116): * Single equations (assignments): 85 * 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.005104/0.5617, allocations: 4.141 MB / 1.098 GB, free: 31.93 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.002429/0.5642, allocations: 1.455 MB / 1.1 GB, free: 31.58 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5642, allocations: 0 / 1.1 GB, free: 31.58 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.5654, allocations: 0.7823 MB / 1.1 GB, free: 31.39 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/0.5676, allocations: 0.7347 MB / 1.101 GB, free: 31.15 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01849/0.5861, allocations: 12.73 MB / 1.114 GB, free: 25.3 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007434/0.5868, allocations: 0.7382 MB / 1.114 GB, free: 25.12 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.001281/0.5881, allocations: 373.5 kB / 1.115 GB, free: 25.01 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006445/0.5888, allocations: 0.7144 MB / 1.115 GB, free: 24.49 MB / 0.9948 GB Notification: Performance of SimCode: time 1.643e-06/0.5888, allocations: 0 / 1.115 GB, free: 24.49 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07115/0.6599, allocations: 51.92 MB / 1.166 GB, free: 2.715 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.729/8.389, allocations: 2.344 kB / 1.166 GB, free: 2.715 MB / 0.9948 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --stepSize=0.48 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.374654083512723]