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.001755/0.001755, allocations: 100.1 kB / 15.88 MB, free: 12 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.002229/0.002229, allocations: 199.4 kB / 16.79 MB, free: 6.809 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.43/1.43, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.747/2.747, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 69.55 kB / 0.8991 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3024, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002351/0.3048, allocations: 0.9782 MB / 1.054 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001355/0.3061, allocations: 1.038 MB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.82e-05/0.3063, allocations: 0 / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.3064, allocations: 11.86 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.3066, allocations: 35.77 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003792/0.307, allocations: 111.8 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003821/0.3073, allocations: 339.1 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.3075, allocations: 37.64 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003246/0.3078, allocations: 143.6 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.3081, allocations: 203.3 kB / 1.056 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.568e-05/0.3082, allocations: 24 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.761e-05/0.3083, allocations: 16 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.3084, allocations: 87.75 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.3086, allocations: 119.4 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002416/0.3088, allocations: 247.7 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.3088, allocations: 0 / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.92e-07/0.3088, allocations: 0 / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.3089, allocations: 4 kB / 1.056 GB, free: 4.871 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.002335/0.3112, allocations: 0.7681 MB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3113, allocations: 12.03 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.874e-05/0.3114, allocations: 24.66 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007699/0.3121, allocations: 339.8 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/0.3122, allocations: 20.36 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.3122, allocations: 20.38 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000947/0.3132, allocations: 339 kB / 1.058 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3132, allocations: 0 / 1.058 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.157e-05/0.3133, allocations: 8 kB / 1.058 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.3133, allocations: 0 / 1.058 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006856/0.314, allocations: 219.8 kB / 1.058 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.3158, allocations: 0.7072 MB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007153/0.3165, allocations: 277.2 kB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.3171, allocations: 197.9 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.3171, allocations: 4 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007925/0.3179, allocations: 346.4 kB / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=30): time 2.124e-06/0.318, allocations: 4 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30): time 0.001862/0.3198, allocations: 0.6342 MB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.3199, allocations: 89.11 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.3201, allocations: 214.9 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.059e-05/0.3202, allocations: 49.69 kB / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.3203, allocations: 125.1 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3204, allocations: 83.02 kB / 1.06 GB, free: 212 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.3205, allocations: 78.12 kB / 1.06 GB, free: 128 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3207, allocations: 350.7 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.321, allocations: 112.8 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/0.3213, allocations: 173.5 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.3217, allocations: 200.3 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3217, allocations: 7.938 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000628/0.3223, allocations: 331.6 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3223, allocations: 13.69 kB / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3224, allocations: 0 / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.3224, allocations: 4 kB / 1.062 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.3226, allocations: 43.91 kB / 1.062 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.3226, allocations: 7.984 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.323, allocations: 83.55 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.91e-05/0.3231, allocations: 16 kB / 1.062 GB, free: 14.77 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.0001885/0.3233, allocations: 170.9 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.3233, allocations: 27.7 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.257e-05/0.3234, allocations: 29.53 kB / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.3234, allocations: 4 kB / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3234, allocations: 0 / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3234, allocations: 11.92 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003029/0.3237, allocations: 309.2 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3238, allocations: 0 / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.854e-05/0.3239, allocations: 11.98 kB / 1.062 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3239, allocations: 7.938 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.3239, allocations: 15.97 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3239, allocations: 0 / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3239, allocations: 0 / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.3252, allocations: 0.5131 MB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.326e-05/0.3253, allocations: 104.8 kB / 1.063 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.218e-05/0.3254, allocations: 16 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004759/0.3259, allocations: 67.89 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.3261, allocations: 79.81 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.35e-05/0.3261, allocations: 15.97 kB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001252/0.3263, allocations: 156.2 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3263, allocations: 0 / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003105/0.3266, allocations: 63.89 kB / 1.063 GB, free: 13.08 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.0002038/0.3268, allocations: 139.2 kB / 1.063 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008831/0.3277, allocations: 357.9 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3277, allocations: 0 / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006048/0.3283, allocations: 208 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004962/0.3288, allocations: 72.8 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.3302, allocations: 0.6257 MB / 1.065 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3306, allocations: 0.7446 MB / 1.065 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.3307, allocations: 35.41 kB / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3307, allocations: 4 kB / 1.065 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of Templates: time 0.00711/0.3378, allocations: 4.011 MB / 1.069 GB, free: 6.863 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