Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001308/0.001308, allocations: 105.3 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.404/1.404, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437.1 MB / 0.711 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001935, allocations: 60.03 kB / 0.8699 GB, free: 2.18 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3291, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002224/0.3314, allocations: 0.921 MB / 1.019 GB, free: 9.688 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3327, allocations: 1.042 MB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.605e-05/0.3328, allocations: 4 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.3329, allocations: 11.81 kB / 1.02 GB, free: 8.617 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.3331, allocations: 47.62 kB / 1.02 GB, free: 8.57 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003667/0.3334, allocations: 127.7 kB / 1.02 GB, free: 8.445 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003369/0.3338, allocations: 355.1 kB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.3339, allocations: 29.66 kB / 1.02 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.3342, allocations: 175.5 kB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002895/0.3345, allocations: 211.4 kB / 1.021 GB, free: 7.688 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.623e-05/0.3345, allocations: 32 kB / 1.021 GB, free: 7.656 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.64e-05/0.3346, allocations: 32 kB / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.3347, allocations: 111.7 kB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.3349, allocations: 135.4 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.3352, allocations: 331.3 kB / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3352, allocations: 0 / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.143e-06/0.3353, allocations: 0 / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.3353, allocations: 0 / 1.021 GB, free: 7.059 MB / 0.795 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.002073/0.3373, allocations: 0.7642 MB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3374, allocations: 12.03 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.3375, allocations: 28.59 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007634/0.3382, allocations: 343.8 kB / 1.023 GB, free: 5.832 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.3383, allocations: 16.36 kB / 1.023 GB, free: 5.816 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.087e-05/0.3384, allocations: 24.38 kB / 1.023 GB, free: 5.793 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008224/0.3392, allocations: 346 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.3392, allocations: 4 kB / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.3392, allocations: 4 kB / 1.023 GB, free: 5.438 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3393, allocations: 4 kB / 1.023 GB, free: 5.434 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007412/0.34, allocations: 215.8 kB / 1.023 GB, free: 5.223 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.3418, allocations: 0.7071 MB / 1.024 GB, free: 4.461 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007363/0.3425, allocations: 281.2 kB / 1.024 GB, free: 4.168 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005529/0.3431, allocations: 197.6 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.3431, allocations: 4 kB / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007593/0.3439, allocations: 345 kB / 1.025 GB, free: 3.609 MB / 0.795 GB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.3439, allocations: 0 / 1.025 GB, free: 3.609 MB / 0.795 GB Notification: Performance of matching and sorting (n=30): time 0.001898/0.3458, allocations: 0.6319 MB / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.948e-05/0.3459, allocations: 97.09 kB / 1.025 GB, free: 2.859 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.3461, allocations: 210.9 kB / 1.026 GB, free: 2.641 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 8.149e-05/0.3462, allocations: 57.62 kB / 1.026 GB, free: 2.578 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3463, allocations: 125.1 kB / 1.026 GB, free: 2.453 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.3464, allocations: 79.02 kB / 1.026 GB, free: 2.375 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.3466, allocations: 82.12 kB / 1.026 GB, free: 2.289 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001968/0.3468, allocations: 342.8 kB / 1.026 GB, free: 1.945 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.3471, allocations: 116.8 kB / 1.026 GB, free: 1.832 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003123/0.3474, allocations: 169.5 kB / 1.026 GB, free: 1.652 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/0.3478, allocations: 198.1 kB / 1.027 GB, free: 1.445 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3478, allocations: 3.938 kB / 1.027 GB, free: 1.441 MB / 0.795 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006266/0.3485, allocations: 332.8 kB / 1.027 GB, free: 1.109 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3485, allocations: 8 kB / 1.027 GB, free: 1.102 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3485, allocations: 128 / 1.027 GB, free: 1.102 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.094e-05/0.3486, allocations: 8 kB / 1.027 GB, free: 1.094 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.3488, allocations: 47.84 kB / 1.027 GB, free: 1.047 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.3488, allocations: 4 kB / 1.027 GB, free: 1.043 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000374/0.3492, allocations: 83.55 kB / 1.027 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.3492, allocations: 15.98 kB / 1.027 GB, free: 0.9453 MB / 0.795 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.0002112/0.3494, allocations: 171 kB / 1.027 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.569e-05/0.3495, allocations: 27.7 kB / 1.027 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.452e-05/0.3496, allocations: 33.47 kB / 1.027 GB, free: 0.707 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3496, allocations: 4 kB / 1.027 GB, free: 0.7031 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3496, allocations: 0 / 1.027 GB, free: 0.7031 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.3496, allocations: 11.92 kB / 1.027 GB, free: 0.6914 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004059/0.35, allocations: 301.3 kB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.3501, allocations: 0 / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.569e-05/0.3501, allocations: 19.92 kB / 1.028 GB, free: 336 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3502, allocations: 4 kB / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.3502, allocations: 11.97 kB / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.3502, allocations: 4 kB / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3502, allocations: 4 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.3515, allocations: 0.5092 MB / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.009e-05/0.3516, allocations: 104.8 kB / 1.028 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.3517, allocations: 12 kB / 1.028 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004723/0.3521, allocations: 71.89 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.3523, allocations: 75.83 kB / 1.028 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.424e-05/0.3524, allocations: 23.97 kB / 1.028 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002185/0.3526, allocations: 152.2 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3526, allocations: 4 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002921/0.3529, allocations: 59.98 kB / 1.029 GB, free: 15.26 MB / 0.8106 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.0002553/0.3532, allocations: 131.2 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009553/0.3541, allocations: 376.6 kB / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3541, allocations: 0 / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006639/0.3548, allocations: 207.7 kB / 1.029 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.3553, allocations: 74.36 kB / 1.029 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3567, allocations: 0.5624 MB / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005065/0.3572, allocations: 0.7483 MB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.3574, allocations: 39.41 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3574, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.007138/0.3645, allocations: 4.036 MB / 1.035 GB, free: 9.066 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Stage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches