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.001332/0.001332, 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.001556/0.001556, allocations: 197.2 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.388/1.388, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.749/2.749, allocations: 461.9 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 67.03 kB / 0.8984 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3376, allocations: 157.4 MB / 1.052 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002475/0.3401, allocations: 0.9217 MB / 1.053 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003043/0.3405, allocations: 95.62 kB / 1.053 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.3406, allocations: 0 / 1.053 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.3407, allocations: 23.86 kB / 1.053 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.3409, allocations: 7.922 kB / 1.053 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 7.262e-05/0.341, allocations: 39.98 kB / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.3412, allocations: 223.5 kB / 1.053 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003844/0.3416, allocations: 294.3 kB / 1.054 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.3417, allocations: 103.5 kB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.3419, allocations: 127.3 kB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/0.3419, allocations: 20 kB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.299e-05/0.3419, allocations: 16 kB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.567e-05/0.342, allocations: 75.69 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3422, allocations: 135.1 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.3425, allocations: 418.6 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3426, allocations: 4 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3426, allocations: 0 / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.3426, allocations: 0 / 1.055 GB, free: 6.367 MB / 0.8106 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.0007077/0.3433, allocations: 0.5927 MB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3433, allocations: 8.031 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.3434, allocations: 40.47 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.3438, allocations: 332.1 kB / 1.055 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.946e-05/0.3439, allocations: 37.02 kB / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.254e-05/0.3439, allocations: 32.36 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006595/0.3446, allocations: 404.2 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3446, allocations: 192 / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.3447, allocations: 23.88 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.3447, allocations: 8 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004946/0.3452, allocations: 295.6 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.3469, allocations: 1.049 MB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.3471, allocations: 105.1 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.348e-05/0.3472, allocations: 41.8 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.3473, allocations: 0 / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3473, allocations: 30.56 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.3473, allocations: 4 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004106/0.3477, allocations: 173.1 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/0.3478, allocations: 81.05 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000613/0.3484, allocations: 0.5091 MB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.3485, allocations: 29.69 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.3487, allocations: 207.5 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/0.3487, allocations: 11.89 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.3488, allocations: 53.61 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001984/0.349, allocations: 350.8 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.3491, allocations: 67.89 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.3492, allocations: 95.22 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.3494, allocations: 109.7 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3494, allocations: 0 / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003208/0.3498, allocations: 213.1 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.3498, allocations: 8 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.3498, allocations: 0 / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.3498, allocations: 3.938 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.35, allocations: 35.86 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.026e-06/0.35, allocations: 0 / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.178e-05/0.3501, allocations: 39.53 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.3501, allocations: 8 kB / 1.059 GB, free: 1.164 MB / 0.8106 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.0002335/0.3504, allocations: 201.5 kB / 1.06 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-05/0.3504, allocations: 31.53 kB / 1.06 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/0.3507, allocations: 118 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3507, allocations: 3.938 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3507, allocations: 4.062 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3507, allocations: 0 / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005903/0.3513, allocations: 0.6525 MB / 1.06 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3513, allocations: 3.984 kB / 1.06 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.098e-05/0.3513, allocations: 4 kB / 1.06 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3513, allocations: 4.5 kB / 1.06 GB, free: 60 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.3514, allocations: 4 kB / 1.06 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3514, allocations: 0 / 1.06 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3514, allocations: 0 / 1.06 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001656/0.3515, allocations: 135.2 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.3517, allocations: 128.6 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.3517, allocations: 3.938 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.99e-05/0.3518, allocations: 4 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.214e-05/0.3518, allocations: 7.984 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.3518, allocations: 0 / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004156/0.3522, allocations: 391 kB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3522, allocations: 0 / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002297/0.3525, allocations: 36 kB / 1.061 GB, free: 15.32 MB / 0.8262 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.0001351/0.3526, allocations: 107.2 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002048/0.3528, allocations: 112 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3528, allocations: 0 / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.636e-05/0.3529, allocations: 15.94 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.3532, allocations: 30.36 kB / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009207/0.3541, allocations: 0.594 MB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005133/0.3546, allocations: 0.7872 MB / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001182/0.3547, allocations: 54.94 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.169e-05/0.3548, allocations: 23.44 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3548, allocations: 0 / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of Templates: time 0.005504/0.3603, allocations: 1.916 MB / 1.065 GB, free: 11.63 MB / 0.8262 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