Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001249/0.001249, allocations: 111.3 kB / 15.99 MB, free: 6.348 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.001369/0.001369, allocations: 191.7 kB / 16.91 MB, free: 6.184 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.322/1.322, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.563/2.563, allocations: 469.8 MB / 0.7427 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 67.2 kB / 0.9087 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2939, allocations: 159.1 MB / 1.064 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002167/0.2961, allocations: 0.9844 MB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.2975, allocations: 1.042 MB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.719e-05/0.2975, allocations: 0 / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.2977, allocations: 11.88 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.2978, allocations: 35.77 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.2981, allocations: 115.8 kB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.2985, allocations: 351.3 kB / 1.067 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.2986, allocations: 21.69 kB / 1.067 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.2989, allocations: 179.5 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002895/0.2992, allocations: 211.4 kB / 1.067 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.201e-05/0.2992, allocations: 32 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.17e-05/0.2993, allocations: 32 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.2994, allocations: 111.7 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.2996, allocations: 139.4 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002638/0.2999, allocations: 243.7 kB / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2999, allocations: 3.984 kB / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2999, allocations: 0 / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.2999, allocations: 0 / 1.068 GB, free: 11.55 MB / 0.8419 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.001909/0.3018, allocations: 0.7642 MB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3018, allocations: 8.625 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.768e-05/0.3019, allocations: 28.66 kB / 1.068 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007123/0.3026, allocations: 339.8 kB / 1.069 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.3027, allocations: 20.38 kB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.3028, allocations: 24.36 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007938/0.3036, allocations: 343 kB / 1.069 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.3036, allocations: 0 / 1.069 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.3036, allocations: 3.984 kB / 1.069 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3036, allocations: 4 kB / 1.069 GB, free: 9.938 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006326/0.3043, allocations: 215.8 kB / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.3059, allocations: 0.7071 MB / 1.07 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.3066, allocations: 281 kB / 1.07 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.3071, allocations: 201.5 kB / 1.07 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.3071, allocations: 0 / 1.07 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007427/0.3079, allocations: 343.3 kB / 1.071 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.3079, allocations: 0 / 1.071 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30): time 0.001744/0.3096, allocations: 0.6309 MB / 1.071 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.3097, allocations: 93.08 kB / 1.071 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.3099, allocations: 210.9 kB / 1.072 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.703e-05/0.31, allocations: 57.69 kB / 1.072 GB, free: 7.094 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.525e-05/0.3101, allocations: 125.1 kB / 1.072 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/0.3102, allocations: 83.06 kB / 1.072 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.3103, allocations: 82.06 kB / 1.072 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3105, allocations: 350.7 kB / 1.072 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.3107, allocations: 108.8 kB / 1.072 GB, free: 6.34 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002841/0.311, allocations: 177.5 kB / 1.073 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003652/0.3114, allocations: 205 kB / 1.073 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3114, allocations: 0 / 1.073 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005863/0.312, allocations: 335.7 kB / 1.073 GB, free: 5.602 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.312, allocations: 4 kB / 1.073 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.312, allocations: 4 kB / 1.073 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3121, allocations: 4 kB / 1.073 GB, free: 5.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.3123, allocations: 47.97 kB / 1.073 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.3123, allocations: 8 kB / 1.073 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.3126, allocations: 79.55 kB / 1.073 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.3127, allocations: 16 kB / 1.073 GB, free: 5.441 MB / 0.8419 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.000176/0.3128, allocations: 168.3 kB / 1.073 GB, free: 5.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.233e-05/0.3129, allocations: 23.72 kB / 1.073 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.916e-05/0.313, allocations: 33.52 kB / 1.073 GB, free: 5.211 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.313, allocations: 4 kB / 1.073 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.313, allocations: 3.938 kB / 1.073 GB, free: 5.203 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.313, allocations: 7.938 kB / 1.073 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.3133, allocations: 309.2 kB / 1.074 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3134, allocations: 0 / 1.074 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.89e-05/0.3134, allocations: 15.98 kB / 1.074 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3134, allocations: 0 / 1.074 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.3135, allocations: 15.98 kB / 1.074 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3135, allocations: 4 kB / 1.074 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3135, allocations: 0 / 1.074 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.3147, allocations: 0.5196 MB / 1.074 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.3148, allocations: 96.86 kB / 1.074 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.421e-05/0.3149, allocations: 19.98 kB / 1.074 GB, free: 4.137 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.3153, allocations: 75.8 kB / 1.074 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.3155, allocations: 75.83 kB / 1.075 GB, free: 3.988 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/0.3155, allocations: 15.98 kB / 1.075 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001277/0.3156, allocations: 148.4 kB / 1.075 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3156, allocations: 0 / 1.075 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002774/0.3159, allocations: 60 kB / 1.075 GB, free: 3.77 MB / 0.8419 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.0001866/0.3161, allocations: 143.2 kB / 1.075 GB, free: 3.625 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008931/0.317, allocations: 374.3 kB / 1.075 GB, free: 3.262 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.317, allocations: 0 / 1.075 GB, free: 3.262 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005473/0.3176, allocations: 199.8 kB / 1.075 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.318, allocations: 72.12 kB / 1.076 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.3193, allocations: 0.6211 MB / 1.076 GB, free: 2.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.3197, allocations: 0.7366 MB / 1.077 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3198, allocations: 43.41 kB / 1.077 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of SimCode: time 2.71e-07/0.3198, allocations: 7.938 kB / 1.077 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of Templates: time 0.3994/0.7193, allocations: 4.02 MB / 1.081 GB, free: 21.96 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Stage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches