Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.0008401/0.0008401, 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.0007834/0.0007834, 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.8716/0.8716, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.7/1.7, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.886e-05/3.125e-05, allocations: 6.281 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004497/0.004528, allocations: 2.17 MB / 1.002 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.002683/0.00721, allocations: 1.352 MB / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.007396, allocations: 11.88 kB / 1.003 GB, free: 9.938 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0003933/0.007789, allocations: 175.2 kB / 1.003 GB, free: 9.766 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0003696/0.008159, allocations: 234.9 kB / 1.004 GB, free: 9.535 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.008434, allocations: 183.4 kB / 1.004 GB, free: 9.355 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.008771, allocations: 434.7 kB / 1.004 GB, free: 8.93 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.008942, allocations: 65.53 kB / 1.004 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.009138, allocations: 231.4 kB / 1.004 GB, free: 8.637 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.009315, allocations: 167.5 kB / 1.005 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.009349, allocations: 28 kB / 1.005 GB, free: 8.445 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.009471, allocations: 83.91 kB / 1.005 GB, free: 8.363 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.009578, allocations: 119.5 kB / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.622e-05/0.009665, allocations: 99.69 kB / 1.005 GB, free: 8.148 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0004011/0.01007, allocations: 0.4983 MB / 1.005 GB, free: 7.648 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.01007, allocations: 0 / 1.005 GB, free: 7.648 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.313e-06/0.01007, allocations: 0 / 1.005 GB, free: 7.648 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.01008, allocations: 0 / 1.005 GB, free: 7.648 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007673/0.01084, allocations: 0.6633 MB / 1.006 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.01088, allocations: 12.75 kB / 1.006 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.805e-05/0.01092, allocations: 42.75 kB / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.378e-05/0.01098, allocations: 56.59 kB / 1.006 GB, free: 6.836 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.01136, allocations: 340.1 kB / 1.006 GB, free: 6.48 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.01138, allocations: 12.38 kB / 1.006 GB, free: 6.469 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.022e-05/0.0114, allocations: 12.38 kB / 1.006 GB, free: 6.457 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.01164, allocations: 213.9 kB / 1.007 GB, free: 6.227 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.01165, allocations: 0 / 1.007 GB, free: 6.227 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.01166, allocations: 4 kB / 1.007 GB, free: 6.223 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.882e-06/0.01167, allocations: 8 kB / 1.007 GB, free: 6.215 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.01179, allocations: 95.88 kB / 1.007 GB, free: 6.121 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007041/0.0125, allocations: 0.7145 MB / 1.007 GB, free: 5.355 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.01269, allocations: 137.4 kB / 1.008 GB, free: 5.203 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.449e-05/0.01275, allocations: 57.64 kB / 1.008 GB, free: 5.141 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.01277, allocations: 0 / 1.008 GB, free: 5.141 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001623/0.01293, allocations: 137 kB / 1.008 GB, free: 4.988 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=12): time 8.72e-07/0.01293, allocations: 0 / 1.008 GB, free: 4.988 MB / 0.9636 GB Notification: Performance of matching and sorting (n=12): time 0.0003502/0.01328, allocations: 233.3 kB / 1.008 GB, free: 4.754 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.01332, allocations: 106.8 kB / 1.008 GB, free: 4.625 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/0.01376, allocations: 0.5955 MB / 1.009 GB, free: 4.016 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.01378, allocations: 37.64 kB / 1.009 GB, free: 3.973 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.0139, allocations: 212.4 kB / 1.009 GB, free: 3.762 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.01392, allocations: 35.73 kB / 1.009 GB, free: 3.727 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-05/0.01401, allocations: 81.56 kB / 1.009 GB, free: 3.641 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.186e-05/0.0141, allocations: 354.8 kB / 1.009 GB, free: 3.285 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.01424, allocations: 108 kB / 1.009 GB, free: 3.18 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.01441, allocations: 249.1 kB / 1.01 GB, free: 2.898 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.01459, allocations: 192.3 kB / 1.01 GB, free: 2.699 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.0146, allocations: 7.938 kB / 1.01 GB, free: 2.691 MB / 0.9636 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000331/0.01493, allocations: 355.2 kB / 1.01 GB, free: 2.34 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.01494, allocations: 9.719 kB / 1.01 GB, free: 2.332 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.01495, allocations: 0 / 1.01 GB, free: 2.332 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.01496, allocations: 4 kB / 1.01 GB, free: 2.328 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.0151, allocations: 47.95 kB / 1.01 GB, free: 2.281 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.01511, allocations: 3.984 kB / 1.01 GB, free: 2.277 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.01522, allocations: 51.94 kB / 1.01 GB, free: 2.227 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.01524, allocations: 8 kB / 1.01 GB, free: 2.219 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001319/0.01537, allocations: 203.6 kB / 1.011 GB, free: 2.012 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.258e-05/0.0154, allocations: 43.72 kB / 1.011 GB, free: 1.969 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002415/0.01564, allocations: 209.1 kB / 1.011 GB, free: 1.758 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.01565, allocations: 3.984 kB / 1.011 GB, free: 1.754 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.01565, allocations: 0 / 1.011 GB, free: 1.754 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.01566, allocations: 7.938 kB / 1.011 GB, free: 1.746 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.01584, allocations: 284.5 kB / 1.011 GB, free: 1.426 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01584, allocations: 3.984 kB / 1.011 GB, free: 1.422 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.431e-05/0.01587, allocations: 8 kB / 1.011 GB, free: 1.414 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.01587, allocations: 4 kB / 1.011 GB, free: 1.41 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.01588, allocations: 4.5 kB / 1.011 GB, free: 1.406 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.01588, allocations: 4 kB / 1.011 GB, free: 1.402 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.01588, allocations: 3.984 kB / 1.011 GB, free: 1.398 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002082/0.01609, allocations: 231.4 kB / 1.011 GB, free: 1.152 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.01614, allocations: 51.69 kB / 1.011 GB, free: 1.102 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.01617, allocations: 4 kB / 1.011 GB, free: 1.098 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.054e-05/0.01623, allocations: 23.98 kB / 1.011 GB, free: 1.074 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.01628, allocations: 23.95 kB / 1.011 GB, free: 1.051 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.01629, allocations: 4 kB / 1.011 GB, free: 1.047 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002524/0.01654, allocations: 371.1 kB / 1.012 GB, free: 0.6875 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01654, allocations: 0 / 1.012 GB, free: 0.6875 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002045/0.01675, allocations: 75.88 kB / 1.012 GB, free: 0.6133 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001072/0.01782, allocations: 1.114 MB / 1.013 GB, free: 15.65 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0002675/0.01809, allocations: 195.2 kB / 1.013 GB, free: 15.46 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01809, allocations: 0 / 1.013 GB, free: 15.46 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 8.125e-05/0.01817, allocations: 67.89 kB / 1.013 GB, free: 15.4 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.01846, allocations: 106.3 kB / 1.013 GB, free: 15.3 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.02136, allocations: 3.641 MB / 1.017 GB, free: 11.53 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.02149, allocations: 212.5 kB / 1.017 GB, free: 11.3 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 9.949e-05/0.02159, allocations: 58.88 kB / 1.017 GB, free: 11.24 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.02172, allocations: 132.4 kB / 1.017 GB, free: 11.11 MB / 0.9792 GB Notification: Performance of SimCode: time 3.8e-07/0.02172, allocations: 4 kB / 1.017 GB, free: 11.11 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.04561, allocations: 9.707 MB / 1.027 GB, free: 1.527 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.875/6.921, allocations: 4.062 kB / 1.027 GB, free: 1.523 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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: 10.986466188915074]