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.001252/0.001258, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.001249/0.001249, allocations: 188.7 kB / 17.34 MB, free: 5.633 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.17 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.418/2.418, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.001421, allocations: 71.89 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9257/0.9271, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002772/0.93, allocations: 0.9253 MB / 1.168 GB, free: 2.902 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001637/0.9316, allocations: 1.044 MB / 1.169 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.9318, allocations: 3.938 kB / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.932, allocations: 11.81 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.9322, allocations: 51.62 kB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004652/0.9327, allocations: 115.8 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000451/0.9331, allocations: 355.2 kB / 1.17 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.9333, allocations: 29.67 kB / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000369/0.9337, allocations: 167.6 kB / 1.17 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003705/0.9341, allocations: 211.4 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.284e-05/0.9342, allocations: 36 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.716e-05/0.9342, allocations: 36 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.9344, allocations: 103.8 kB / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.9345, allocations: 131.4 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.935, allocations: 332.6 kB / 1.171 GB, free: 304 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.935, allocations: 3.938 kB / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.382e-06/0.935, allocations: 0 / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.567e-05/0.935, allocations: 8 kB / 1.171 GB, free: 292 kB / 0.8887 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.002186/0.9372, allocations: 0.7642 MB / 1.172 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.9372, allocations: 12.03 kB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.9374, allocations: 28.66 kB / 1.172 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007679/0.9381, allocations: 343.6 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.354e-05/0.9382, allocations: 24.34 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.9383, allocations: 28.12 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008027/0.9391, allocations: 339 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.9391, allocations: 4 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.096e-05/0.9392, allocations: 4 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.9392, allocations: 4 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006756/0.9399, allocations: 215.8 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.942, allocations: 0.7188 MB / 1.173 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007067/0.9427, allocations: 273 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005316/0.9432, allocations: 193.6 kB / 1.174 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.9433, allocations: 4 kB / 1.174 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007954/0.9441, allocations: 348.7 kB / 1.174 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=30): time 3.146e-06/0.9441, allocations: 0 / 1.174 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30): time 0.001802/0.9459, allocations: 0.6403 MB / 1.175 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.101e-05/0.946, allocations: 89.11 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.9462, allocations: 214.8 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 7.653e-05/0.9463, allocations: 53.69 kB / 1.175 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.216e-05/0.9464, allocations: 129 kB / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 9.867e-05/0.9465, allocations: 87.09 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.9467, allocations: 78.12 kB / 1.175 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.9468, allocations: 334.8 kB / 1.176 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.9471, allocations: 120.8 kB / 1.176 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002782/0.9474, allocations: 165.5 kB / 1.176 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004054/0.9478, allocations: 200.5 kB / 1.176 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.9478, allocations: 0 / 1.176 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006134/0.9484, allocations: 339.9 kB / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.9484, allocations: 7.984 kB / 1.176 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.9484, allocations: 4.125 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.9485, allocations: 4 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.9487, allocations: 47.86 kB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.9487, allocations: 4 kB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.9491, allocations: 71.61 kB / 1.176 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.9491, allocations: 16 kB / 1.176 GB, free: 10.16 MB / 0.9044 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.0002145/0.9494, allocations: 178.9 kB / 1.177 GB, free: 9.98 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.557e-05/0.9494, allocations: 19.72 kB / 1.177 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.055e-05/0.9495, allocations: 37.52 kB / 1.177 GB, free: 9.922 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.9495, allocations: 7.938 kB / 1.177 GB, free: 9.914 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.9495, allocations: 0 / 1.177 GB, free: 9.914 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.9496, allocations: 3.938 kB / 1.177 GB, free: 9.91 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003282/0.9499, allocations: 309.2 kB / 1.177 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.9499, allocations: 0 / 1.177 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.266e-05/0.95, allocations: 15.98 kB / 1.177 GB, free: 9.543 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.95, allocations: 0 / 1.177 GB, free: 9.543 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/0.9501, allocations: 19.97 kB / 1.177 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.9501, allocations: 0 / 1.177 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.9501, allocations: 4 kB / 1.177 GB, free: 9.52 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.9514, allocations: 0.5208 MB / 1.178 GB, free: 8.977 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-05/0.9515, allocations: 100.8 kB / 1.178 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.466e-05/0.9516, allocations: 15.98 kB / 1.178 GB, free: 8.844 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004509/0.952, allocations: 67.91 kB / 1.178 GB, free: 8.777 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.9522, allocations: 79.83 kB / 1.178 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/0.9522, allocations: 15.97 kB / 1.178 GB, free: 8.684 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001286/0.9524, allocations: 152.4 kB / 1.178 GB, free: 8.535 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9524, allocations: 4 kB / 1.178 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003091/0.9527, allocations: 60 kB / 1.178 GB, free: 8.473 MB / 0.9044 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.0001956/0.9529, allocations: 139.1 kB / 1.178 GB, free: 8.332 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000876/0.9538, allocations: 354.8 kB / 1.178 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.9538, allocations: 0 / 1.178 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005418/0.9543, allocations: 201.1 kB / 1.179 GB, free: 7.793 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004658/0.9548, allocations: 72.11 kB / 1.179 GB, free: 7.723 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.9562, allocations: 0.5761 MB / 1.179 GB, free: 7.113 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.9566, allocations: 0.7366 MB / 1.18 GB, free: 6.348 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.9567, allocations: 43.41 kB / 1.18 GB, free: 6.305 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.9567, allocations: 4 kB / 1.18 GB, free: 6.301 MB / 0.9044 GB Notification: Performance of Templates: time 0.007082/0.9638, allocations: 4.06 MB / 1.184 GB, free: 2.262 MB / 0.9044 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