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.001836/0.001836, allocations: 103.7 kB / 16.27 MB, free: 5.98 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.002101/0.002101, allocations: 188.9 kB / 17.2 MB, free: 5.605 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.478/1.478, allocations: 222.9 MB / 240.9 MB, free: 15.2 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.7/2.7, allocations: 437 MB / 0.711 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 72.11 kB / 0.8699 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3368, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002457/0.3393, allocations: 0.9328 MB / 1.019 GB, free: 9.703 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001576/0.3409, allocations: 1.03 MB / 1.02 GB, free: 8.66 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.341, allocations: 3.938 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.3411, allocations: 15.81 kB / 1.02 GB, free: 8.641 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.3413, allocations: 47.62 kB / 1.02 GB, free: 8.594 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004825/0.3418, allocations: 131.8 kB / 1.02 GB, free: 8.465 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004171/0.3423, allocations: 351.1 kB / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.3424, allocations: 33.64 kB / 1.02 GB, free: 8.086 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.3428, allocations: 171.5 kB / 1.021 GB, free: 7.918 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003636/0.3431, allocations: 211.4 kB / 1.021 GB, free: 7.711 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.739e-05/0.3432, allocations: 32 kB / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.909e-05/0.3433, allocations: 32 kB / 1.021 GB, free: 7.648 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.3435, allocations: 103.7 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.3436, allocations: 135.4 kB / 1.021 GB, free: 7.414 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003908/0.344, allocations: 339.2 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3441, allocations: 0 / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3441, allocations: 0 / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.3441, allocations: 0 / 1.021 GB, free: 7.082 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.00224/0.3463, allocations: 0.7642 MB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3464, allocations: 12.03 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.3465, allocations: 28.59 kB / 1.022 GB, free: 6.23 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007921/0.3473, allocations: 339.8 kB / 1.023 GB, free: 5.859 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.3473, allocations: 20.36 kB / 1.023 GB, free: 5.84 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.665e-05/0.3474, allocations: 20.38 kB / 1.023 GB, free: 5.82 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008512/0.3482, allocations: 350 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3483, allocations: 0 / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.417e-05/0.3483, allocations: 0 / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.3483, allocations: 4 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007014/0.349, allocations: 218.8 kB / 1.023 GB, free: 5.254 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.3508, allocations: 0.7149 MB / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007663/0.3516, allocations: 281.3 kB / 1.024 GB, free: 4.191 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005487/0.3522, allocations: 194.1 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.3522, allocations: 8 kB / 1.024 GB, free: 3.988 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007921/0.353, allocations: 348.9 kB / 1.025 GB, free: 3.629 MB / 0.795 GB Notification: Performance of pre-optimization done (n=30): time 2.715e-06/0.353, allocations: 0 / 1.025 GB, free: 3.629 MB / 0.795 GB Notification: Performance of matching and sorting (n=30): time 0.001903/0.3549, allocations: 0.6298 MB / 1.025 GB, free: 2.992 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.355, allocations: 85.11 kB / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.3552, allocations: 214.9 kB / 1.026 GB, free: 2.668 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.689e-05/0.3553, allocations: 57.69 kB / 1.026 GB, free: 2.605 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.705e-05/0.3554, allocations: 125.1 kB / 1.026 GB, free: 2.48 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.656e-05/0.3555, allocations: 79.02 kB / 1.026 GB, free: 2.402 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.3557, allocations: 78.12 kB / 1.026 GB, free: 2.32 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.3558, allocations: 350.7 kB / 1.026 GB, free: 1.969 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.3561, allocations: 108.8 kB / 1.026 GB, free: 1.863 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.3564, allocations: 185.4 kB / 1.026 GB, free: 1.668 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003839/0.3568, allocations: 195.3 kB / 1.027 GB, free: 1.461 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3568, allocations: 0 / 1.027 GB, free: 1.461 MB / 0.795 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006439/0.3575, allocations: 335.5 kB / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3575, allocations: 8 kB / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3575, allocations: 0 / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3575, allocations: 4 kB / 1.027 GB, free: 1.117 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.3577, allocations: 47.84 kB / 1.027 GB, free: 1.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.3578, allocations: 4.125 kB / 1.027 GB, free: 1.066 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.3581, allocations: 87.55 kB / 1.027 GB, free: 0.9805 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.63e-05/0.3582, allocations: 12 kB / 1.027 GB, free: 0.9688 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.0001956/0.3584, allocations: 159 kB / 1.027 GB, free: 0.8008 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.855e-05/0.3584, allocations: 31.7 kB / 1.027 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.494e-05/0.3585, allocations: 29.53 kB / 1.027 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3585, allocations: 4 kB / 1.027 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.3585, allocations: 0 / 1.027 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.3586, allocations: 15.86 kB / 1.027 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003541/0.3589, allocations: 301.3 kB / 1.028 GB, free: 388 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3589, allocations: 3.938 kB / 1.028 GB, free: 384 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.285e-05/0.359, allocations: 19.92 kB / 1.028 GB, free: 364 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.359, allocations: 4 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/0.3591, allocations: 11.97 kB / 1.028 GB, free: 348 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3591, allocations: 8 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3591, allocations: 0 / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.3604, allocations: 0.5107 MB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.992e-05/0.3605, allocations: 100.8 kB / 1.028 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.239e-05/0.3606, allocations: 16 kB / 1.028 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.3611, allocations: 71.89 kB / 1.028 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.3613, allocations: 79.77 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.3613, allocations: 23.97 kB / 1.028 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001419/0.3615, allocations: 148.2 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3615, allocations: 0 / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003477/0.3618, allocations: 59.98 kB / 1.029 GB, free: 15.29 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.0002296/0.3621, allocations: 139.2 kB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001013/0.3631, allocations: 362.5 kB / 1.029 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3631, allocations: 4.25 kB / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006257/0.3638, allocations: 209.8 kB / 1.029 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.3643, allocations: 75.86 kB / 1.029 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.3658, allocations: 0.5625 MB / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005458/0.3663, allocations: 0.7366 MB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3665, allocations: 43.41 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3665, allocations: 0 / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of Templates: time 0.008705/0.3752, allocations: 4.047 MB / 1.035 GB, free: 9.09 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=480 -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