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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001509/0.001509, allocations: 103.2 kB / 16.35 MB, free: 5.828 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.001662/0.001662, allocations: 189.4 kB / 17.29 MB, free: 5.484 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.423/1.423, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.522/2.522, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001259, allocations: 64 kB / 0.8707 GB, free: 1.422 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3496, allocations: 151.6 MB / 1.019 GB, free: 9.824 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.003382/0.3531, allocations: 0.9342 MB / 1.02 GB, free: 8.883 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.355, allocations: 1.046 MB / 1.021 GB, free: 7.824 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.3553, allocations: 0 / 1.021 GB, free: 7.824 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.3555, allocations: 15.81 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003026/0.3559, allocations: 47.62 kB / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.3565, allocations: 127.7 kB / 1.021 GB, free: 7.637 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0006275/0.3572, allocations: 351.2 kB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.3574, allocations: 29.67 kB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003672/0.3578, allocations: 167.5 kB / 1.021 GB, free: 7.098 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003891/0.3582, allocations: 211.4 kB / 1.022 GB, free: 6.891 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.3583, allocations: 32 kB / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.3584, allocations: 36 kB / 1.022 GB, free: 6.824 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.3585, allocations: 107.7 kB / 1.022 GB, free: 6.719 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.3587, allocations: 135.4 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003885/0.3591, allocations: 330.9 kB / 1.022 GB, free: 6.262 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.3591, allocations: 4 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3592, allocations: 0 / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.3592, allocations: 0 / 1.022 GB, free: 6.258 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.002198/0.3614, allocations: 0.772 MB / 1.023 GB, free: 5.438 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3614, allocations: 8.625 kB / 1.023 GB, free: 5.43 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.3615, allocations: 32.66 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007894/0.3623, allocations: 339.8 kB / 1.023 GB, free: 5.027 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.468e-05/0.3624, allocations: 20.38 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.3625, allocations: 20.38 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007884/0.3633, allocations: 349.5 kB / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.3633, allocations: 0 / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.3633, allocations: 3.984 kB / 1.024 GB, free: 4.633 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.3633, allocations: 4 kB / 1.024 GB, free: 4.629 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00063/0.364, allocations: 215.8 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.3656, allocations: 0.7072 MB / 1.025 GB, free: 3.656 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000668/0.3663, allocations: 277 kB / 1.025 GB, free: 3.367 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005194/0.3669, allocations: 190.1 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.3669, allocations: 11.98 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007105/0.3676, allocations: 344.9 kB / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.3676, allocations: 0 / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of matching and sorting (n=30): time 0.001712/0.3693, allocations: 0.6281 MB / 1.026 GB, free: 2.176 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.3694, allocations: 109 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.3696, allocations: 210.7 kB / 1.026 GB, free: 1.836 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.044e-05/0.3697, allocations: 53.69 kB / 1.026 GB, free: 1.777 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.098e-05/0.3698, allocations: 121.1 kB / 1.027 GB, free: 1.656 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 8.586e-05/0.3699, allocations: 83.08 kB / 1.027 GB, free: 1.574 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.37, allocations: 78.12 kB / 1.027 GB, free: 1.492 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3702, allocations: 338.8 kB / 1.027 GB, free: 1.152 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/0.3705, allocations: 124.8 kB / 1.027 GB, free: 1.031 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002824/0.3707, allocations: 173.5 kB / 1.027 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.3711, allocations: 203 kB / 1.027 GB, free: 0.6328 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3711, allocations: 0 / 1.027 GB, free: 0.6328 MB / 0.795 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006043/0.3717, allocations: 339.2 kB / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3718, allocations: 4 kB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3718, allocations: 7.938 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3718, allocations: 4.125 kB / 1.028 GB, free: 288 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.372, allocations: 43.92 kB / 1.028 GB, free: 244 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.372, allocations: 7.984 kB / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/0.3724, allocations: 79.55 kB / 1.028 GB, free: 156 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.3724, allocations: 12 kB / 1.028 GB, free: 144 kB / 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.000185/0.3726, allocations: 175.7 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.906e-05/0.3727, allocations: 27.55 kB / 1.028 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.251e-05/0.3727, allocations: 33.52 kB / 1.028 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.3728, allocations: 4 kB / 1.028 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3728, allocations: 0 / 1.028 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3728, allocations: 3.938 kB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/0.3731, allocations: 309.2 kB / 1.028 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3731, allocations: 0 / 1.028 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.945e-05/0.3732, allocations: 12 kB / 1.028 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3732, allocations: 0 / 1.028 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.3732, allocations: 15.97 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.3732, allocations: 4 kB / 1.028 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3732, allocations: 0 / 1.028 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.3744, allocations: 0.5131 MB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.3745, allocations: 100.8 kB / 1.029 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.502e-05/0.3746, allocations: 19.98 kB / 1.029 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004289/0.375, allocations: 67.91 kB / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.3752, allocations: 79.81 kB / 1.029 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.973e-05/0.3752, allocations: 15.98 kB / 1.029 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000126/0.3754, allocations: 148.4 kB / 1.029 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3754, allocations: 3.938 kB / 1.029 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003013/0.3757, allocations: 64 kB / 1.029 GB, free: 14.47 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.0002021/0.3759, allocations: 135.2 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000855/0.3767, allocations: 351.6 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3768, allocations: 0 / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.3773, allocations: 221.9 kB / 1.03 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.3778, allocations: 72.17 kB / 1.03 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.3791, allocations: 0.5335 MB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.3795, allocations: 0.7404 MB / 1.031 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001489/0.3796, allocations: 46.95 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.3797, allocations: 43.41 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.3798, allocations: 0 / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of Templates: time 0.01076/0.3905, allocations: 5.764 MB / 1.037 GB, free: 6.574 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 -s cvode -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