Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Stage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.u|sta.y|zerHolTim.y|sta1.u|sta1.y|lesHolTim.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Stage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.u|sta.y|zerHolTim.y|sta1.u|sta1.y|lesHolTim.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008144/0.0008145, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009555/0.0009556, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.357/1.357, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.791/2.791, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003757, allocations: 12.31 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3036, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.001225/0.3049, allocations: 0.6394 MB / 1.06 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.3063, allocations: 1.042 MB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.804e-05/0.3065, allocations: 3.938 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.811e-05/0.3066, allocations: 11.88 kB / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.3067, allocations: 31.77 kB / 1.061 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003792/0.3071, allocations: 119.8 kB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.3075, allocations: 331.2 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.3076, allocations: 25.62 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.3079, allocations: 147.5 kB / 1.062 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003193/0.3082, allocations: 203.4 kB / 1.062 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.403e-05/0.3083, allocations: 16 kB / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.635e-05/0.3084, allocations: 16 kB / 1.062 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.3085, allocations: 83.73 kB / 1.062 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.3087, allocations: 145.1 kB / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.309, allocations: 243.6 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.309, allocations: 4 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.653e-06/0.309, allocations: 0 / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.898e-06/0.309, allocations: 4 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.002227/0.3112, allocations: 0.8075 MB / 1.063 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3113, allocations: 11.97 kB / 1.063 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.3114, allocations: 32.62 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007787/0.3122, allocations: 343.8 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.632e-05/0.3122, allocations: 16.38 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.63e-05/0.3123, allocations: 28.36 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008632/0.3132, allocations: 339 kB / 1.064 GB, free: 264 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.3132, allocations: 0 / 1.064 GB, free: 264 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.255e-05/0.3133, allocations: 8 kB / 1.064 GB, free: 256 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3133, allocations: 4 kB / 1.064 GB, free: 252 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006921/0.314, allocations: 219.8 kB / 1.064 GB, free: 32 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.3158, allocations: 0.7423 MB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/0.3166, allocations: 281.2 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005586/0.3172, allocations: 201.9 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.3172, allocations: 0 / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007733/0.318, allocations: 350.5 kB / 1.066 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=30): time 2.084e-06/0.318, allocations: 0 / 1.066 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30): time 0.001869/0.3199, allocations: 0.6399 MB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.3199, allocations: 97.08 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.3202, allocations: 210.9 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.7e-05/0.3202, allocations: 49.7 kB / 1.067 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.3203, allocations: 129 kB / 1.067 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.3205, allocations: 79.12 kB / 1.067 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.507e-05/0.3205, allocations: 53.69 kB / 1.067 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3207, allocations: 342.8 kB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.321, allocations: 112.8 kB / 1.067 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003054/0.3213, allocations: 177.5 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004136/0.3217, allocations: 208.9 kB / 1.068 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3218, allocations: 4 kB / 1.068 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006488/0.3224, allocations: 335.4 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3224, allocations: 8 kB / 1.068 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3225, allocations: 0 / 1.068 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.3225, allocations: 4 kB / 1.068 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.3227, allocations: 47.91 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3227, allocations: 128 / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004137/0.3231, allocations: 111.5 kB / 1.068 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.3232, allocations: 15.94 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 52 (zerHolTim.y,$PRE.zerHolTim.y,sta.y,$PRE.sta.y,zerHolTim.checkLower,$PRE.zerHolTim.checkLower,zerHolTim.checkUpper,$PRE.zerHolTim.checkUpper,zerHolTim.lowerThreshold,$PRE.zerHolTim.lowerThreshold,zerHolTim.upperThreshold,$PRE.zerHolTim.upperThreshold,zerHolTim.tNext,$PRE.zerHolTim.tNext,sta.checkLower,$PRE.sta.checkLower,sta.checkUpper,$PRE.sta.checkUpper,sta.lowerThreshold,$PRE.sta.lowerThreshold,sta.upperThreshold,$PRE.sta.upperThreshold,sta.tNext,$PRE.sta.tNext,$whenCondition3,$whenCondition4,lesHolTim.y,$PRE.lesHolTim.y,sta1.y,$PRE.sta1.y,lesHolTim.checkLower,$PRE.lesHolTim.checkLower,lesHolTim.checkUpper,$PRE.lesHolTim.checkUpper,lesHolTim.lowerThreshold,$PRE.lesHolTim.lowerThreshold,lesHolTim.upperThreshold,$PRE.lesHolTim.upperThreshold,lesHolTim.tNext,$PRE.lesHolTim.tNext,sta1.checkLower,$PRE.sta1.checkLower,sta1.checkUpper,$PRE.sta1.checkUpper,sta1.lowerThreshold,$PRE.sta1.lowerThreshold,sta1.upperThreshold,$PRE.sta1.upperThreshold,sta1.tNext,$PRE.sta1.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * 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.0002123/0.3234, allocations: 170.9 kB / 1.068 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.756e-05/0.3235, allocations: 23.72 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.76e-05/0.3235, allocations: 29.52 kB / 1.068 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3236, allocations: 4 kB / 1.068 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3236, allocations: 0 / 1.068 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3236, allocations: 11.94 kB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.3239, allocations: 313.2 kB / 1.069 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3239, allocations: 0 / 1.069 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.951e-05/0.324, allocations: 15.98 kB / 1.069 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.324, allocations: 0 / 1.069 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.3241, allocations: 15.98 kB / 1.069 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.3241, allocations: 3.938 kB / 1.069 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3241, allocations: 3.984 kB / 1.069 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.3254, allocations: 0.5271 MB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.274e-05/0.3255, allocations: 96.77 kB / 1.069 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.778e-05/0.3255, allocations: 19.98 kB / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005113/0.3261, allocations: 91.89 kB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.3262, allocations: 79.81 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.3263, allocations: 15.98 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000134/0.3264, allocations: 152.2 kB / 1.07 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3264, allocations: 4 kB / 1.07 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003108/0.3267, allocations: 60 kB / 1.07 GB, free: 9.988 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition4,$whenCondition3,sta.y,sta.tNext,sta.upperThreshold,sta.lowerThreshold,sta.checkUpper,sta.checkLower,zerHolTim.y,zerHolTim.tNext,zerHolTim.upperThreshold,zerHolTim.lowerThreshold,zerHolTim.checkUpper,zerHolTim.checkLower,$whenCondition2,$whenCondition1,sta1.y,sta1.tNext,sta1.upperThreshold,sta1.lowerThreshold,sta1.checkUpper,sta1.checkLower,lesHolTim.y,lesHolTim.tNext,lesHolTim.upperThreshold,lesHolTim.lowerThreshold,lesHolTim.checkUpper,lesHolTim.checkLower) * Number of discrete states: 20 (sta1.lowerThreshold,lesHolTim.lowerThreshold,lesHolTim.checkLower,lesHolTim.checkUpper,lesHolTim.upperThreshold,sta1.checkLower,sta1.checkUpper,sta1.upperThreshold,sta1.tNext,lesHolTim.tNext,sta.lowerThreshold,zerHolTim.lowerThreshold,zerHolTim.checkLower,zerHolTim.checkUpper,zerHolTim.upperThreshold,sta.checkLower,sta.checkUpper,sta.upperThreshold,sta.tNext,zerHolTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.000197/0.327, allocations: 131.2 kB / 1.07 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009216/0.3279, allocations: 362.3 kB / 1.07 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3279, allocations: 0 / 1.07 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006349/0.3285, allocations: 220 kB / 1.07 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.3291, allocations: 59.88 kB / 1.07 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3304, allocations: 0.6296 MB / 1.071 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.3308, allocations: 0.7446 MB / 1.072 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.3309, allocations: 43.39 kB / 1.072 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3309, allocations: 0 / 1.072 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of Templates: time 0.007284/0.3382, allocations: 3.993 MB / 1.076 GB, free: 3.777 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Stage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches