Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001654/0.001654, allocations: 107.9 kB / 16.27 MB, free: 6.004 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.001946/0.001946, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.383/1.383, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.614/2.614, allocations: 469.4 MB / 0.7426 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 69.12 kB / 0.9088 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3761, allocations: 159.1 MB / 1.064 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002041/0.3782, allocations: 0.9191 MB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.3794, allocations: 1.042 MB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.545e-05/0.3795, allocations: 0 / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.3796, allocations: 23.73 kB / 1.066 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.3797, allocations: 35.7 kB / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.3801, allocations: 131.7 kB / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.3804, allocations: 347.3 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.3805, allocations: 25.67 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.3808, allocations: 167.5 kB / 1.067 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.381, allocations: 211.4 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.348e-05/0.3811, allocations: 36 kB / 1.067 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.785e-05/0.3812, allocations: 36 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.3813, allocations: 107.7 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.3815, allocations: 135.4 kB / 1.067 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003166/0.3818, allocations: 327.3 kB / 1.068 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3818, allocations: 4 kB / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3818, allocations: 0 / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.3818, allocations: 0 / 1.068 GB, free: 11.45 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.002048/0.3839, allocations: 0.772 MB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3839, allocations: 16.56 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.203e-05/0.384, allocations: 24.66 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007399/0.3848, allocations: 343.8 kB / 1.069 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.394e-05/0.3848, allocations: 20.38 kB / 1.069 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.3849, allocations: 20.38 kB / 1.069 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007913/0.3857, allocations: 348.2 kB / 1.069 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3857, allocations: 0 / 1.069 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.3857, allocations: 3.984 kB / 1.069 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.699e-06/0.3857, allocations: 4 kB / 1.069 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006649/0.3864, allocations: 219.8 kB / 1.069 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.3881, allocations: 0.7033 MB / 1.07 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006886/0.3888, allocations: 281 kB / 1.07 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005383/0.3894, allocations: 197.6 kB / 1.071 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.3894, allocations: 0 / 1.071 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007401/0.3901, allocations: 356.9 kB / 1.071 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.3901, allocations: 0 / 1.071 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30): time 0.001811/0.392, allocations: 0.6284 MB / 1.071 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.392, allocations: 97.03 kB / 1.072 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001826/0.3922, allocations: 206.9 kB / 1.072 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.3923, allocations: 57.69 kB / 1.072 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.466e-05/0.3924, allocations: 121.1 kB / 1.072 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.87e-05/0.3925, allocations: 87 kB / 1.072 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3926, allocations: 78.12 kB / 1.072 GB, free: 6.676 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3927, allocations: 346.8 kB / 1.072 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/0.393, allocations: 112.8 kB / 1.073 GB, free: 6.219 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.3933, allocations: 173.5 kB / 1.073 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.3936, allocations: 201 kB / 1.073 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3936, allocations: 0 / 1.073 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005769/0.3942, allocations: 339.5 kB / 1.073 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.3942, allocations: 7.938 kB / 1.073 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.3942, allocations: 4.125 kB / 1.073 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.3943, allocations: 8 kB / 1.073 GB, free: 5.469 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.3945, allocations: 39.92 kB / 1.073 GB, free: 5.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3945, allocations: 7.984 kB / 1.073 GB, free: 5.422 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.3949, allocations: 83.55 kB / 1.073 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.3949, allocations: 12 kB / 1.073 GB, free: 5.328 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.0001688/0.3951, allocations: 170.9 kB / 1.074 GB, free: 5.152 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.133e-05/0.3951, allocations: 23.72 kB / 1.074 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.918e-05/0.3952, allocations: 33.52 kB / 1.074 GB, free: 5.094 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3952, allocations: 4 kB / 1.074 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3952, allocations: 3.938 kB / 1.074 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3953, allocations: 3.938 kB / 1.074 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.3955, allocations: 309.2 kB / 1.074 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3955, allocations: 0 / 1.074 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.949e-05/0.3956, allocations: 16 kB / 1.074 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.3956, allocations: 3.984 kB / 1.074 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.3957, allocations: 11.98 kB / 1.074 GB, free: 4.699 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3957, allocations: 4 kB / 1.074 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3957, allocations: 0 / 1.074 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.397, allocations: 0.513 MB / 1.074 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.397, allocations: 96.86 kB / 1.075 GB, free: 4.047 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.08e-05/0.3971, allocations: 19.98 kB / 1.075 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004937/0.3976, allocations: 67.91 kB / 1.075 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.3978, allocations: 79.81 kB / 1.075 GB, free: 3.883 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.25e-05/0.3978, allocations: 15.98 kB / 1.075 GB, free: 3.867 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001177/0.3979, allocations: 148.4 kB / 1.075 GB, free: 3.723 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3979, allocations: 4 kB / 1.075 GB, free: 3.719 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000291/0.3982, allocations: 63.91 kB / 1.075 GB, free: 3.656 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.0001841/0.3984, allocations: 135.7 kB / 1.075 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009135/0.3993, allocations: 370 kB / 1.075 GB, free: 3.156 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3994, allocations: 0 / 1.075 GB, free: 3.156 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005964/0.4, allocations: 206.4 kB / 1.076 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004791/0.4004, allocations: 79.7 kB / 1.076 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.4017, allocations: 0.5703 MB / 1.076 GB, free: 2.277 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.402, allocations: 0.7444 MB / 1.077 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.4021, allocations: 47.39 kB / 1.077 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.4021, allocations: 0 / 1.077 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of Templates: time 0.4576/0.8597, allocations: 4.017 MB / 1.081 GB, free: 21.54 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Stage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches