Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006183/0.006184, allocations: 101.5 kB / 15.73 MB, free: 5.992 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.001075/0.001076, allocations: 189.5 kB / 16.67 MB, free: 5.914 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.854/2.854, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 59.91 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3059, allocations: 157.4 MB / 1.208 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002142/0.308, allocations: 0.855 MB / 1.209 GB, free: 8.785 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000273/0.3083, allocations: 83.7 kB / 1.209 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.726e-05/0.3084, allocations: 11.94 kB / 1.209 GB, free: 8.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.3086, allocations: 19.8 kB / 1.209 GB, free: 8.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.3087, allocations: 19.84 kB / 1.209 GB, free: 8.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 7.871e-05/0.3088, allocations: 39.97 kB / 1.209 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.3091, allocations: 251.5 kB / 1.209 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003972/0.3095, allocations: 290.3 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.3096, allocations: 139.4 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.3097, allocations: 139.3 kB / 1.21 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.967e-05/0.3098, allocations: 32 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.936e-05/0.3098, allocations: 35.94 kB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.31, allocations: 87.75 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.3101, allocations: 155.1 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003614/0.3105, allocations: 462.3 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.3105, allocations: 0 / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3105, allocations: 0 / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.3105, allocations: 0 / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0006866/0.3112, allocations: 0.5925 MB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.3112, allocations: 12.62 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.563e-05/0.3113, allocations: 40.47 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.3118, allocations: 336.1 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.172e-05/0.3118, allocations: 41.02 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.3119, allocations: 32.38 kB / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.3124, allocations: 396.2 kB / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.3125, allocations: 4.188 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.3125, allocations: 11.94 kB / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.3125, allocations: 8 kB / 1.212 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004365/0.313, allocations: 307.5 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.3143, allocations: 1.049 MB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/0.3144, allocations: 89.16 kB / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.788e-05/0.3145, allocations: 49.78 kB / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.3146, allocations: 0 / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.3146, allocations: 38.56 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 8.91e-07/0.3146, allocations: 0 / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0003467/0.3149, allocations: 169.2 kB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.315, allocations: 81.05 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005481/0.3156, allocations: 0.5091 MB / 1.214 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.3156, allocations: 25.7 kB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.3157, allocations: 211.4 kB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.3158, allocations: 15.8 kB / 1.214 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.669e-05/0.3158, allocations: 57.7 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.316, allocations: 342.8 kB / 1.215 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.3161, allocations: 67.86 kB / 1.215 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.3162, allocations: 98.09 kB / 1.215 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.3164, allocations: 109.7 kB / 1.215 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.3164, allocations: 0 / 1.215 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002894/0.3167, allocations: 205.1 kB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.3167, allocations: 8 kB / 1.215 GB, free: 1.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3167, allocations: 4.188 kB / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3168, allocations: 0 / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.3169, allocations: 39.86 kB / 1.215 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3169, allocations: 3.938 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.242e-05/0.317, allocations: 31.53 kB / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.317, allocations: 12 kB / 1.215 GB, free: 1.844 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001952/0.3172, allocations: 208 kB / 1.215 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-05/0.3173, allocations: 27.62 kB / 1.215 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.3175, allocations: 114 kB / 1.215 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3176, allocations: 7.938 kB / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3176, allocations: 0 / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.3176, allocations: 0 / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005926/0.3182, allocations: 0.6604 MB / 1.216 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3182, allocations: 4 kB / 1.216 GB, free: 0.7344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.117e-05/0.3182, allocations: 4 kB / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3182, allocations: 0 / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.3182, allocations: 0 / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.3182, allocations: 4 kB / 1.216 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3182, allocations: 4 kB / 1.216 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001563/0.3184, allocations: 135.2 kB / 1.216 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.272e-05/0.3185, allocations: 117.1 kB / 1.216 GB, free: 440 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.3185, allocations: 7.938 kB / 1.216 GB, free: 432 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.085e-05/0.3186, allocations: 4 kB / 1.216 GB, free: 428 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.229e-05/0.3186, allocations: 7.984 kB / 1.216 GB, free: 420 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.3186, allocations: 8 kB / 1.216 GB, free: 412 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003832/0.319, allocations: 387 kB / 1.217 GB, free: 32 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.319, allocations: 0 / 1.217 GB, free: 32 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002425/0.3193, allocations: 39.95 kB / 1.217 GB, free: 15.99 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001107/0.3194, allocations: 103.2 kB / 1.217 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002003/0.3196, allocations: 111.8 kB / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3196, allocations: 0 / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.486e-05/0.3196, allocations: 16 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.3199, allocations: 41.28 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000633/0.3205, allocations: 0.5046 MB / 1.217 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.3209, allocations: 0.7911 MB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.765e-05/0.321, allocations: 58.92 kB / 1.218 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.321, allocations: 23.44 kB / 1.218 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of SimCode: time 2.01e-07/0.321, allocations: 0 / 1.218 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of Templates: time 0.004879/0.3259, allocations: 2 MB / 1.22 GB, free: 12.3 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches