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.001487/0.001487, allocations: 80.3 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001543/0.001543, allocations: 160.5 kB / 22.46 MB, free: 5.375 MB / 14.72 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 1.542/1.542, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] 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 2.848/2.848, allocations: 377.8 MB / 0.6221 GB, free: 12.63 MB / 0.5919 GB " [Timeout remaining time 176] 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: translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.084e-05, allocations: 2.281 kB / 0.9814 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003802/0.003832, allocations: 2.189 MB / 0.9836 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002649/0.006482, allocations: 1.352 MB / 0.9849 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.006657, allocations: 7.938 kB / 0.9849 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0004984/0.007155, allocations: 179.1 kB / 0.9851 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0005315/0.007687, allocations: 227 kB / 0.9853 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.008086, allocations: 183.5 kB / 0.9854 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005412/0.008628, allocations: 446.6 kB / 0.9859 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.008817, allocations: 57.5 kB / 0.9859 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003184/0.009136, allocations: 235.4 kB / 0.9861 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.00939, allocations: 167.5 kB / 0.9863 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.481e-05/0.009445, allocations: 24 kB / 0.9863 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.009616, allocations: 71.97 kB / 0.9864 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.009771, allocations: 123.6 kB / 0.9865 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.00991, allocations: 99.62 kB / 0.9866 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006282/0.01054, allocations: 0.4983 MB / 0.9871 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.01054, allocations: 4 kB / 0.9871 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of FrontEnd: time 9.62e-07/0.01055, allocations: 0 / 0.9871 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.01056, allocations: 0 / 0.9871 GB, free: 6.152 MB / 0.9356 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.001203/0.01176, allocations: 0.6555 MB / 0.9877 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.0118, allocations: 12.03 kB / 0.9878 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.0119, allocations: 48.66 kB / 0.9878 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.01254, allocations: 367.9 kB / 0.9882 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.01256, allocations: 12.38 kB / 0.9882 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.0126, allocations: 16.38 kB / 0.9882 GB, free: 4.996 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.01299, allocations: 202.2 kB / 0.9884 GB, free: 4.777 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.013, allocations: 0 / 0.9884 GB, free: 4.777 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.01302, allocations: 4 kB / 0.9884 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.01303, allocations: 4 kB / 0.9884 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.01325, allocations: 99.88 kB / 0.9885 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.01438, allocations: 0.6721 MB / 0.9891 GB, free: 3.961 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.01475, allocations: 149.3 kB / 0.9893 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.01488, allocations: 49.69 kB / 0.9893 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.0149, allocations: 4 kB / 0.9893 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002833/0.01518, allocations: 140.9 kB / 0.9895 GB, free: 3.582 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.01518, allocations: 0 / 0.9895 GB, free: 3.582 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005911/0.01577, allocations: 221.3 kB / 0.9897 GB, free: 3.359 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.22e-05/0.01584, allocations: 110.8 kB / 0.9898 GB, free: 3.227 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007471/0.01659, allocations: 0.5799 MB / 0.9903 GB, free: 2.637 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.01663, allocations: 33.7 kB / 0.9904 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.01681, allocations: 200.6 kB / 0.9906 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.01685, allocations: 47.66 kB / 0.9906 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.01698, allocations: 85.58 kB / 0.9907 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.01715, allocations: 350.8 kB / 0.991 GB, free: 1.91 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.01737, allocations: 108 kB / 0.9911 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003067/0.01768, allocations: 243.9 kB / 0.9914 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003605/0.01804, allocations: 200.9 kB / 0.9916 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01804, allocations: 0 / 0.9916 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006361/0.01868, allocations: 357.1 kB / 0.9919 GB, free: 0.9648 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.01869, allocations: 8 kB / 0.9919 GB, free: 0.957 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.0187, allocations: 0 / 0.9919 GB, free: 0.957 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.01872, allocations: 4 kB / 0.9919 GB, free: 0.9531 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/0.01893, allocations: 51.91 kB / 0.992 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.01894, allocations: 4 kB / 0.992 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.01917, allocations: 35.86 kB / 0.992 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.01921, allocations: 8 kB / 0.992 GB, free: 0.8555 MB / 0.9356 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.0002254/0.01943, allocations: 203.8 kB / 0.9922 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.0195, allocations: 47.66 kB / 0.9922 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004764/0.01998, allocations: 197 kB / 0.9924 GB, free: 412 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.01998, allocations: 4 kB / 0.9924 GB, free: 408 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.01999, allocations: 3.984 kB / 0.9924 GB, free: 404 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.01999, allocations: 0 / 0.9924 GB, free: 404 kB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002955/0.02029, allocations: 249.1 kB / 0.9927 GB, free: 124 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.02029, allocations: 0.5 kB / 0.9927 GB, free: 124 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.229e-05/0.02034, allocations: 20 kB / 0.9927 GB, free: 104 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.02035, allocations: 3.938 kB / 0.9927 GB, free: 100 kB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.02037, allocations: 8 kB / 0.9927 GB, free: 92 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.02037, allocations: 3.984 kB / 0.9927 GB, free: 88 kB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.02037, allocations: 3.938 kB / 0.9927 GB, free: 84 kB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004398/0.02081, allocations: 225.2 kB / 0.9929 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.565e-05/0.0209, allocations: 47.7 kB / 0.993 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.077e-05/0.02096, allocations: 11.94 kB / 0.993 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.0211, allocations: 15.98 kB / 0.993 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/0.02118, allocations: 27.95 kB / 0.993 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.0212, allocations: 4 kB / 0.993 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004347/0.02163, allocations: 359.1 kB / 0.9934 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.02163, allocations: 0 / 0.9934 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003423/0.02197, allocations: 71.88 kB / 0.9934 GB, free: 15.32 MB / 0.9512 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.00171/0.02368, allocations: 464.6 kB / 0.9939 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004952/0.02418, allocations: 200 kB / 0.9941 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.02418, allocations: 0 / 0.9941 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.02436, allocations: 71.88 kB / 0.9941 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.02489, allocations: 92.08 kB / 0.9942 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.026, allocations: 0.6403 MB / 0.9949 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.02624, allocations: 216.5 kB / 0.9951 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001461/0.02638, allocations: 55.19 kB / 0.9951 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.02649, allocations: 40.48 kB / 0.9952 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of SimCode: time 5.11e-07/0.02649, allocations: 0 / 0.9952 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of Templates: time 0.01114/0.03763, allocations: 5.048 MB / 1 GB, free: 8.734 MB / 0.9512 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 400] 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: 8.197014555335045]