Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008221/0.0008221, 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.0007759/0.0007759, 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.8649/0.8649, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.664/1.664, allocations: 377.8 MB / 0.6221 GB, free: 8.691 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.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.394e-05/1.535e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002457/0.002472, allocations: 2.188 MB / 0.9831 GB, free: 420 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00151/0.003982, allocations: 1.352 MB / 0.9844 GB, free: 15.05 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.004092, allocations: 7.938 kB / 0.9844 GB, free: 15.04 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003762/0.004468, allocations: 171.2 kB / 0.9846 GB, free: 14.88 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0003234/0.004791, allocations: 230.8 kB / 0.9848 GB, free: 14.65 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.005012, allocations: 187.4 kB / 0.985 GB, free: 14.46 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003134/0.005326, allocations: 442.7 kB / 0.9854 GB, free: 14.03 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.005471, allocations: 61.55 kB / 0.9855 GB, free: 13.97 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.005658, allocations: 231.4 kB / 0.9857 GB, free: 13.75 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.005816, allocations: 167.5 kB / 0.9858 GB, free: 13.58 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.986e-05/0.005846, allocations: 24 kB / 0.9859 GB, free: 13.56 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.005951, allocations: 75.91 kB / 0.9859 GB, free: 13.48 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 9.689e-05/0.006048, allocations: 127.5 kB / 0.9861 GB, free: 13.36 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.00612, allocations: 91.7 kB / 0.9861 GB, free: 13.27 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.006491, allocations: 0.5061 MB / 0.9866 GB, free: 12.76 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.006493, allocations: 0 / 0.9866 GB, free: 12.76 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.01e-07/0.006494, allocations: 0 / 0.9866 GB, free: 12.76 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.006498, allocations: 4 kB / 0.9866 GB, free: 12.76 MB / 0.948 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.0007109/0.007209, allocations: 0.6556 MB / 0.9873 GB, free: 12.07 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.007246, allocations: 12.03 kB / 0.9873 GB, free: 12.06 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.676e-05/0.007282, allocations: 46.73 kB / 0.9873 GB, free: 12 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.957e-05/0.007342, allocations: 44.66 kB / 0.9874 GB, free: 11.96 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.00771, allocations: 360 kB / 0.9877 GB, free: 11.59 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.007728, allocations: 16.31 kB / 0.9877 GB, free: 11.57 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.007747, allocations: 20.38 kB / 0.9878 GB, free: 11.55 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.007979, allocations: 206 kB / 0.988 GB, free: 11.33 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.007987, allocations: 0 / 0.988 GB, free: 11.33 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.008, allocations: 4 kB / 0.988 GB, free: 11.32 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.008005, allocations: 4 kB / 0.988 GB, free: 11.32 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.008131, allocations: 99.83 kB / 0.9881 GB, free: 11.22 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.008834, allocations: 0.7145 MB / 0.9888 GB, free: 10.46 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.009027, allocations: 149.3 kB / 0.9889 GB, free: 10.29 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.552e-05/0.009092, allocations: 49.69 kB / 0.9889 GB, free: 10.24 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.009108, allocations: 4 kB / 0.9889 GB, free: 10.23 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00017/0.009278, allocations: 129.1 kB / 0.9891 GB, free: 10.09 MB / 0.948 GB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.009279, allocations: 0 / 0.9891 GB, free: 10.09 MB / 0.948 GB Notification: Performance of matching and sorting (n=12): time 0.0003425/0.009622, allocations: 237.3 kB / 0.9893 GB, free: 9.852 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.009672, allocations: 106.8 kB / 0.9894 GB, free: 9.723 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004345/0.01011, allocations: 0.6033 MB / 0.99 GB, free: 9.105 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.01013, allocations: 33.7 kB / 0.99 GB, free: 9.066 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.01023, allocations: 196.5 kB / 0.9902 GB, free: 8.871 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.01026, allocations: 43.72 kB / 0.9902 GB, free: 8.828 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/0.01034, allocations: 73.64 kB / 0.9903 GB, free: 8.75 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.01043, allocations: 358.8 kB / 0.9907 GB, free: 8.391 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.01055, allocations: 108 kB / 0.9908 GB, free: 8.285 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.01071, allocations: 240.5 kB / 0.991 GB, free: 8.012 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.01091, allocations: 202.7 kB / 0.9912 GB, free: 7.801 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.01091, allocations: 3.938 kB / 0.9912 GB, free: 7.797 MB / 0.948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003386/0.01125, allocations: 353.1 kB / 0.9915 GB, free: 7.445 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.01126, allocations: 7.984 kB / 0.9915 GB, free: 7.438 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.01127, allocations: 0 / 0.9915 GB, free: 7.438 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.01128, allocations: 4.094 kB / 0.9915 GB, free: 7.434 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.01139, allocations: 51.92 kB / 0.9916 GB, free: 7.383 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.289e-06/0.01139, allocations: 4 kB / 0.9916 GB, free: 7.379 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.0115, allocations: 39.81 kB / 0.9916 GB, free: 7.34 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.01152, allocations: 11.98 kB / 0.9916 GB, free: 7.328 MB / 0.948 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.0001311/0.01165, allocations: 199.7 kB / 0.9918 GB, free: 7.125 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.01169, allocations: 43.72 kB / 0.9919 GB, free: 7.082 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002481/0.01194, allocations: 217.1 kB / 0.9921 GB, free: 6.867 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.01194, allocations: 4 kB / 0.9921 GB, free: 6.863 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.01194, allocations: 0.5 kB / 0.9921 GB, free: 6.863 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.01195, allocations: 0 / 0.9921 GB, free: 6.863 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.01213, allocations: 280.5 kB / 0.9924 GB, free: 6.547 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01213, allocations: 8 kB / 0.9924 GB, free: 6.539 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.431e-05/0.01216, allocations: 12 kB / 0.9924 GB, free: 6.527 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.01216, allocations: 3.938 kB / 0.9924 GB, free: 6.523 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.01217, allocations: 7.984 kB / 0.9924 GB, free: 6.516 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.01217, allocations: 0 / 0.9924 GB, free: 6.516 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.01217, allocations: 0 / 0.9924 GB, free: 6.516 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002129/0.01238, allocations: 244.7 kB / 0.9926 GB, free: 6.258 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.01243, allocations: 51.7 kB / 0.9927 GB, free: 6.207 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.01246, allocations: 4 kB / 0.9927 GB, free: 6.203 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.284e-05/0.01252, allocations: 19.97 kB / 0.9927 GB, free: 6.184 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.01257, allocations: 19.97 kB / 0.9927 GB, free: 6.164 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.01258, allocations: 11.98 kB / 0.9927 GB, free: 6.152 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002595/0.01284, allocations: 371.1 kB / 0.9931 GB, free: 5.797 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01284, allocations: 0 / 0.9931 GB, free: 5.797 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001994/0.01304, allocations: 67.94 kB / 0.9931 GB, free: 5.73 MB / 0.948 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.00103/0.01407, allocations: 1.114 MB / 0.9942 GB, free: 4.77 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002676/0.01434, allocations: 203.8 kB / 0.9944 GB, free: 4.57 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01434, allocations: 0 / 0.9944 GB, free: 4.57 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.135e-05/0.01442, allocations: 63.86 kB / 0.9945 GB, free: 4.508 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.01471, allocations: 106.7 kB / 0.9946 GB, free: 4.414 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.01754, allocations: 3.654 MB / 0.9981 GB, free: 0.6289 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.01766, allocations: 208.5 kB / 0.9983 GB, free: 420 kB / 0.948 GB Notification: Performance of simCode: alias equations: time 9.037e-05/0.01775, allocations: 50.94 kB / 0.9984 GB, free: 364 kB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.01789, allocations: 132.5 kB / 0.9985 GB, free: 232 kB / 0.948 GB Notification: Performance of SimCode: time 4.81e-07/0.01789, allocations: 4 kB / 0.9985 GB, free: 228 kB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.03942, allocations: 9.733 MB / 1.008 GB, free: 6.641 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.912/6.951, allocations: 2.062 kB / 1.008 GB, free: 6.641 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.862389059737325]