Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_11_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_11_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.001743/0.001743, allocations: 109.2 kB / 15.99 MB, free: 6.359 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.001992/0.001992, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.409/1.409, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.685/2.685, allocations: 469.8 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 69.25 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3209, allocations: 159.1 MB / 1.064 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002412/0.3233, allocations: 0.9219 MB / 1.065 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003455/0.3237, allocations: 87.62 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3238, allocations: 7.938 kB / 1.065 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.3239, allocations: 11.86 kB / 1.065 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.3241, allocations: 11.98 kB / 1.065 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 8.506e-05/0.3242, allocations: 35.98 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003005/0.3245, allocations: 255.4 kB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004154/0.3249, allocations: 290.3 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.3251, allocations: 127.5 kB / 1.066 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.3252, allocations: 143.3 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.747e-05/0.3253, allocations: 36 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.411e-05/0.3254, allocations: 32 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.202e-05/0.3255, allocations: 87.7 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3256, allocations: 155.1 kB / 1.066 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003569/0.326, allocations: 351.3 kB / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.326, allocations: 3.938 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.333e-06/0.326, allocations: 0 / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.326, allocations: 0 / 1.067 GB, free: 12.59 MB / 0.8419 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.000775/0.3268, allocations: 0.5905 MB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3268, allocations: 12.62 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.319e-05/0.3269, allocations: 36.47 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.3274, allocations: 344 kB / 1.068 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.003e-05/0.3274, allocations: 37.02 kB / 1.068 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.3275, allocations: 32.38 kB / 1.068 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006485/0.3281, allocations: 396.2 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3282, allocations: 192 / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.3282, allocations: 15.94 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.3282, allocations: 12 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.3287, allocations: 303.5 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.3302, allocations: 1.05 MB / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.3304, allocations: 89.22 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.284e-05/0.3304, allocations: 45.78 kB / 1.069 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.3305, allocations: 3.938 kB / 1.069 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.3305, allocations: 42.56 kB / 1.07 GB, free: 9.422 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.3305, allocations: 0 / 1.07 GB, free: 9.422 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0003504/0.3309, allocations: 165.2 kB / 1.07 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.3309, allocations: 89.03 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007268/0.3317, allocations: 0.5052 MB / 1.07 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.3317, allocations: 29.64 kB / 1.07 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.3319, allocations: 207.5 kB / 1.07 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.3319, allocations: 19.8 kB / 1.07 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.451e-05/0.332, allocations: 57.64 kB / 1.071 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001747/0.3322, allocations: 346.8 kB / 1.071 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3323, allocations: 63.95 kB / 1.071 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.3324, allocations: 88.17 kB / 1.071 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.3326, allocations: 117.6 kB / 1.071 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3326, allocations: 0 / 1.071 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003231/0.333, allocations: 213 kB / 1.071 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.333, allocations: 8.188 kB / 1.071 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.333, allocations: 0 / 1.071 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.333, allocations: 3.938 kB / 1.071 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.3332, allocations: 39.92 kB / 1.071 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3332, allocations: 4 kB / 1.071 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.022e-05/0.3333, allocations: 31.53 kB / 1.071 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.3333, allocations: 8 kB / 1.071 GB, free: 7.383 MB / 0.8419 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.0002353/0.3335, allocations: 208.6 kB / 1.072 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.065e-05/0.3336, allocations: 31.62 kB / 1.072 GB, free: 7.141 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000245/0.3339, allocations: 114 kB / 1.072 GB, free: 7.016 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3339, allocations: 3.938 kB / 1.072 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3339, allocations: 0 / 1.072 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3339, allocations: 4 kB / 1.072 GB, free: 7.008 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006258/0.3345, allocations: 0.6487 MB / 1.072 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3346, allocations: 0 / 1.072 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.614e-05/0.3346, allocations: 11.92 kB / 1.072 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.3346, allocations: 4 kB / 1.072 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.3346, allocations: 0 / 1.072 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3346, allocations: 0 / 1.072 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3346, allocations: 4 kB / 1.072 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002106/0.3348, allocations: 135.4 kB / 1.073 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.335, allocations: 120.6 kB / 1.073 GB, free: 5.973 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.335, allocations: 7.938 kB / 1.073 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.361e-05/0.3351, allocations: 0 / 1.073 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.086e-05/0.3351, allocations: 12 kB / 1.073 GB, free: 5.953 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.3351, allocations: 0 / 1.073 GB, free: 5.953 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004879/0.3356, allocations: 387 kB / 1.073 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3356, allocations: 0 / 1.073 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002534/0.3359, allocations: 43.91 kB / 1.073 GB, free: 5.535 MB / 0.8419 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.0001215/0.336, allocations: 103.2 kB / 1.073 GB, free: 5.422 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002306/0.3362, allocations: 116.3 kB / 1.073 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3363, allocations: 0 / 1.073 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.005e-05/0.3363, allocations: 19.94 kB / 1.073 GB, free: 5.289 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.3366, allocations: 37.81 kB / 1.073 GB, free: 5.254 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008515/0.3374, allocations: 0.6098 MB / 1.074 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005389/0.338, allocations: 0.7831 MB / 1.075 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.446e-05/0.3381, allocations: 23.44 kB / 1.075 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.3381, allocations: 0 / 1.075 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of Templates: time 0.4044/0.7425, allocations: 3.777 MB / 1.078 GB, free: 22.09 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches