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.001463/0.001463, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001558/0.001558, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.366/1.366, allocations: 222.9 MB / 240.6 MB, free: 4.516 MB / 190.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.54/2.54, allocations: 437 MB / 0.7107 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.91 kB / 0.8694 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5881/0.5895, allocations: 151.6 MB / 1.017 GB, free: 2.672 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002155/0.5917, allocations: 0.9861 MB / 1.018 GB, free: 1.688 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.5929, allocations: 1.034 MB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.156e-05/0.593, allocations: 3.938 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.5931, allocations: 7.875 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.5932, allocations: 31.77 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003154/0.5936, allocations: 127.8 kB / 1.02 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002869/0.5939, allocations: 347.3 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.594, allocations: 21.67 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.5942, allocations: 175.5 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.5945, allocations: 223.3 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.536e-05/0.5945, allocations: 32 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.5946, allocations: 32 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.5947, allocations: 111.7 kB / 1.021 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.5948, allocations: 131.5 kB / 1.021 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.5951, allocations: 253.3 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.5951, allocations: 4 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5951, allocations: 4 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.5951, allocations: 0 / 1.021 GB, free: 15.16 MB / 0.7794 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.001867/0.597, allocations: 0.7602 MB / 1.022 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.597, allocations: 8.031 kB / 1.022 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.479e-05/0.5971, allocations: 36.64 kB / 1.022 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.5978, allocations: 335.8 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.5978, allocations: 20.38 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.184e-05/0.5979, allocations: 24.36 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007651/0.5987, allocations: 339 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.5987, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.5987, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.5987, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006209/0.5994, allocations: 215.7 kB / 1.023 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.6009, allocations: 0.715 MB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006449/0.6016, allocations: 274.1 kB / 1.024 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004935/0.6021, allocations: 194.1 kB / 1.024 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.6021, allocations: 8 kB / 1.024 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007041/0.6028, allocations: 338 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.6028, allocations: 0 / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30): time 0.001685/0.6045, allocations: 0.6439 MB / 1.025 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.6046, allocations: 93.08 kB / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.6048, allocations: 214.7 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.645e-05/0.6049, allocations: 53.7 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.225e-05/0.6049, allocations: 125.1 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.701e-05/0.605, allocations: 87.02 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.6051, allocations: 78.12 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.6053, allocations: 346.7 kB / 1.026 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.6055, allocations: 108.8 kB / 1.026 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.6058, allocations: 173.5 kB / 1.026 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003453/0.6061, allocations: 204.2 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.6061, allocations: 0 / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005595/0.6067, allocations: 338.5 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.6067, allocations: 4 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.6067, allocations: 8 kB / 1.026 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.6068, allocations: 0 / 1.026 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.607, allocations: 47.91 kB / 1.026 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.607, allocations: 7.938 kB / 1.026 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.6073, allocations: 79.73 kB / 1.027 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.6074, allocations: 12 kB / 1.027 GB, free: 9.055 MB / 0.7794 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.0001697/0.6075, allocations: 171.5 kB / 1.027 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/0.6076, allocations: 19.81 kB / 1.027 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.163e-05/0.6077, allocations: 33.52 kB / 1.027 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.6077, allocations: 8 kB / 1.027 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.6077, allocations: 0 / 1.027 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.6077, allocations: 7.922 kB / 1.027 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/0.6081, allocations: 301.3 kB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.6081, allocations: 3.938 kB / 1.027 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.143e-05/0.6082, allocations: 15.98 kB / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.6082, allocations: 0 / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/0.6082, allocations: 11.98 kB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.6082, allocations: 4 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.6082, allocations: 11.91 kB / 1.027 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.6095, allocations: 0.5131 MB / 1.028 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.6096, allocations: 104.8 kB / 1.028 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.254e-05/0.6096, allocations: 16 kB / 1.028 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.6101, allocations: 71.89 kB / 1.028 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.6103, allocations: 75.83 kB / 1.028 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.6103, allocations: 19.97 kB / 1.028 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001077/0.6104, allocations: 144.4 kB / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6104, allocations: 0 / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000296/0.6107, allocations: 63.94 kB / 1.028 GB, free: 7.383 MB / 0.7794 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.0001942/0.6109, allocations: 147.1 kB / 1.028 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008607/0.6118, allocations: 364.1 kB / 1.029 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6118, allocations: 0 / 1.029 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005783/0.6124, allocations: 205.8 kB / 1.029 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004866/0.6129, allocations: 69.44 kB / 1.029 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.6142, allocations: 0.6327 MB / 1.029 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.6145, allocations: 0.7405 MB / 1.03 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.6146, allocations: 43.41 kB / 1.03 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6146, allocations: 0 / 1.03 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of Templates: time 0.006192/0.6208, allocations: 4.03 MB / 1.034 GB, free: 1.125 MB / 0.7794 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