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.001806/0.001806, allocations: 104.7 kB / 15.98 MB, free: 6.344 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.00209/0.00209, allocations: 196.1 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.403/1.403, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.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.46/2.46, allocations: 437.1 MB / 0.7107 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 68.08 kB / 0.8694 GB, free: 2.578 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2813, allocations: 151.6 MB / 1.017 GB, free: 11.01 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002393/0.2837, allocations: 0.9952 MB / 1.018 GB, free: 10.01 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.2852, allocations: 1.038 MB / 1.019 GB, free: 8.961 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.588e-05/0.2853, allocations: 0 / 1.019 GB, free: 8.961 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.2854, allocations: 15.86 kB / 1.019 GB, free: 8.945 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.2856, allocations: 31.77 kB / 1.02 GB, free: 8.914 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003797/0.286, allocations: 111.8 kB / 1.02 GB, free: 8.805 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004535/0.2864, allocations: 359.2 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2866, allocations: 25.66 kB / 1.02 GB, free: 8.426 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.2868, allocations: 175.5 kB / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003136/0.2872, allocations: 215.4 kB / 1.02 GB, free: 8.043 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.233e-05/0.2872, allocations: 32 kB / 1.02 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.339e-05/0.2873, allocations: 32 kB / 1.02 GB, free: 7.98 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2874, allocations: 103.8 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.2877, allocations: 139.4 kB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.2879, allocations: 247.7 kB / 1.021 GB, free: 7.5 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2879, allocations: 0 / 1.021 GB, free: 7.5 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.022e-06/0.288, allocations: 4 kB / 1.021 GB, free: 7.496 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.288, allocations: 0 / 1.021 GB, free: 7.496 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.002025/0.29, allocations: 0.7642 MB / 1.022 GB, free: 6.684 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.29, allocations: 15.97 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.2902, allocations: 24.66 kB / 1.022 GB, free: 6.645 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007376/0.2909, allocations: 335.8 kB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.291, allocations: 24.36 kB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/0.291, allocations: 24.38 kB / 1.022 GB, free: 6.23 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008775/0.2919, allocations: 347.4 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.2919, allocations: 0 / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.292, allocations: 0 / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.292, allocations: 8 kB / 1.022 GB, free: 5.871 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006437/0.2926, allocations: 215.8 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.2943, allocations: 0.7149 MB / 1.023 GB, free: 4.891 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006907/0.295, allocations: 269 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000512/0.2955, allocations: 198.1 kB / 1.024 GB, free: 4.41 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.2956, allocations: 0 / 1.024 GB, free: 4.41 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007703/0.2964, allocations: 348.9 kB / 1.024 GB, free: 4.051 MB / 0.795 GB Notification: Performance of pre-optimization done (n=30): time 2.034e-06/0.2964, allocations: 0 / 1.024 GB, free: 4.051 MB / 0.795 GB Notification: Performance of matching and sorting (n=30): time 0.001838/0.2982, allocations: 0.6363 MB / 1.025 GB, free: 3.41 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/0.2983, allocations: 93.09 kB / 1.025 GB, free: 3.301 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.2985, allocations: 210.9 kB / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.709e-05/0.2986, allocations: 57.69 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.803e-05/0.2987, allocations: 121.1 kB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.319e-05/0.2988, allocations: 83.02 kB / 1.025 GB, free: 2.816 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.299, allocations: 78.12 kB / 1.025 GB, free: 2.734 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002125/0.2992, allocations: 350.8 kB / 1.026 GB, free: 2.383 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.2995, allocations: 104.8 kB / 1.026 GB, free: 2.281 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.2998, allocations: 177.4 kB / 1.026 GB, free: 2.094 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003653/0.3002, allocations: 201.3 kB / 1.026 GB, free: 1.883 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3002, allocations: 0 / 1.026 GB, free: 1.883 MB / 0.795 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006171/0.3008, allocations: 339.4 kB / 1.026 GB, free: 1.547 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3008, allocations: 4 kB / 1.026 GB, free: 1.543 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3008, allocations: 4 kB / 1.026 GB, free: 1.539 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3009, allocations: 7.984 kB / 1.026 GB, free: 1.531 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.3011, allocations: 43.86 kB / 1.026 GB, free: 1.488 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.3011, allocations: 4 kB / 1.026 GB, free: 1.484 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/0.3015, allocations: 87.58 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.3015, allocations: 8 kB / 1.027 GB, free: 1.391 MB / 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.0002372/0.3017, allocations: 171 kB / 1.027 GB, free: 1.215 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.215e-05/0.3018, allocations: 23.72 kB / 1.027 GB, free: 1.191 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.057e-05/0.3019, allocations: 33.53 kB / 1.027 GB, free: 1.16 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3019, allocations: 4 kB / 1.027 GB, free: 1.156 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-05/0.3019, allocations: 3.984 kB / 1.027 GB, free: 1.152 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.302, allocations: 7.938 kB / 1.027 GB, free: 1.145 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003395/0.3023, allocations: 309.2 kB / 1.027 GB, free: 0.793 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3023, allocations: 0 / 1.027 GB, free: 0.793 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.338e-05/0.3024, allocations: 19.92 kB / 1.027 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3024, allocations: 0 / 1.027 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/0.3025, allocations: 15.97 kB / 1.027 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.3025, allocations: 4 kB / 1.027 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3025, allocations: 0 / 1.027 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.3037, allocations: 0.5131 MB / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.146e-05/0.3038, allocations: 100.8 kB / 1.028 GB, free: 104 kB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.177e-05/0.3039, allocations: 16 kB / 1.028 GB, free: 88 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.3044, allocations: 67.89 kB / 1.028 GB, free: 20 kB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.3046, allocations: 79.84 kB / 1.028 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.3046, allocations: 23.97 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001367/0.3048, allocations: 148.2 kB / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3048, allocations: 4 kB / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003051/0.3051, allocations: 63.89 kB / 1.028 GB, free: 15.7 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.0002209/0.3053, allocations: 139.7 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009655/0.3063, allocations: 376 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3063, allocations: 0 / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005803/0.3069, allocations: 215.9 kB / 1.029 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000471/0.3074, allocations: 59.94 kB / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.3087, allocations: 0.616 MB / 1.029 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.3091, allocations: 0.7405 MB / 1.03 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.3093, allocations: 47.41 kB / 1.03 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of SimCode: time 6.81e-07/0.3093, allocations: 0 / 1.03 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of Templates: time 0.007183/0.3165, allocations: 4.026 MB / 1.034 GB, free: 9.457 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=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/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