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.00191/0.00191, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002332/0.002332, allocations: 196 kB / 16.14 MB, free: 6.711 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.898/1.898, allocations: 222.9 MB / 239.8 MB, free: 4.625 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 3.09/3.09, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 67.89 kB / 0.8686 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8078/0.81, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002606/0.8126, allocations: 0.9759 MB / 1.018 GB, free: 1.773 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00169/0.8143, allocations: 1.038 MB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.97e-05/0.8145, allocations: 0 / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.8147, allocations: 7.875 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.8148, allocations: 47.64 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005094/0.8153, allocations: 115.8 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.8158, allocations: 327.2 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.8159, allocations: 29.67 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002885/0.8162, allocations: 159.5 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003689/0.8166, allocations: 195.4 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.037e-05/0.8167, allocations: 16 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.644e-05/0.8168, allocations: 20 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.8169, allocations: 87.75 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.8171, allocations: 123.4 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004037/0.8175, allocations: 320.9 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.8176, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.274e-06/0.8176, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.305e-06/0.8176, allocations: 0 / 1.02 GB, free: 15.3 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.002376/0.82, allocations: 0.7681 MB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/0.82, allocations: 8.031 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.8201, allocations: 28.64 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007894/0.8209, allocations: 343.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.821, allocations: 16.38 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.8211, allocations: 24.36 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000844/0.8219, allocations: 343 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.8219, allocations: 0 / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.311e-05/0.822, allocations: 7.984 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.822, allocations: 4 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006833/0.8227, allocations: 222.1 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.8245, allocations: 0.7111 MB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007232/0.8253, allocations: 277 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005387/0.8258, allocations: 201.6 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.8258, allocations: 8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007616/0.8266, allocations: 337.2 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=30): time 2.014e-06/0.8266, allocations: 0 / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30): time 0.001844/0.8285, allocations: 0.6323 MB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.151e-05/0.8286, allocations: 101 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.8288, allocations: 214.7 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.039e-05/0.8289, allocations: 53.7 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.829, allocations: 125 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.8291, allocations: 83.08 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.8292, allocations: 74.12 kB / 1.024 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002141/0.8295, allocations: 346.7 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.8297, allocations: 120.8 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.83, allocations: 173.5 kB / 1.025 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003798/0.8304, allocations: 201.1 kB / 1.025 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.8304, allocations: 0 / 1.025 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00064/0.8311, allocations: 331.7 kB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.8311, allocations: 8 kB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.8311, allocations: 128 / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.8311, allocations: 11.94 kB / 1.026 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002278/0.8314, allocations: 47.91 kB / 1.026 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.8314, allocations: 0 / 1.026 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003643/0.8318, allocations: 79.61 kB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/0.8318, allocations: 12 kB / 1.026 GB, free: 9.184 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.0002064/0.832, allocations: 167 kB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.8321, allocations: 27.7 kB / 1.026 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.551e-05/0.8322, allocations: 33.53 kB / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.8322, allocations: 7.984 kB / 1.026 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.8322, allocations: 3.938 kB / 1.026 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.8322, allocations: 7.922 kB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003492/0.8326, allocations: 309.2 kB / 1.026 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.8326, allocations: 0 / 1.026 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.172e-05/0.8327, allocations: 19.98 kB / 1.026 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.8327, allocations: 0 / 1.026 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.014e-05/0.8327, allocations: 15.97 kB / 1.026 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.8327, allocations: 0 / 1.026 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.8327, allocations: 0 / 1.026 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.834, allocations: 0.518 MB / 1.027 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.635e-05/0.8341, allocations: 96.77 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/0.8341, allocations: 16 kB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004637/0.8346, allocations: 75.89 kB / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.8348, allocations: 75.81 kB / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.8349, allocations: 15.97 kB / 1.027 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001433/0.835, allocations: 148.4 kB / 1.027 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.1e-07/0.835, allocations: 4 kB / 1.027 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003103/0.8353, allocations: 63.94 kB / 1.027 GB, free: 7.504 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.0002177/0.8355, allocations: 139.7 kB / 1.027 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009113/0.8365, allocations: 353.4 kB / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8365, allocations: 0 / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.8371, allocations: 204 kB / 1.028 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.8376, allocations: 69.06 kB / 1.028 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.8389, allocations: 0.5897 MB / 1.029 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004168/0.8394, allocations: 0.7446 MB / 1.029 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001813/0.8395, allocations: 46.94 kB / 1.029 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.8397, allocations: 39.41 kB / 1.029 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.8397, allocations: 0 / 1.029 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of Templates: time 0.0103/0.85, allocations: 4.982 MB / 1.034 GB, free: 344 kB / 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=400 -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/jenkins/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