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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001252/0.001253, allocations: 104.7 kB / 15.98 MB, free: 6.355 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.001735/0.001735, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.386/1.386, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.695/2.695, allocations: 482.4 MB / 0.755 GB, free: 7.156 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 69.02 kB / 0.924 GB, free: 344 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7359/0.7378, allocations: 162.2 MB / 1.082 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002057/0.7399, allocations: 0.9184 MB / 1.083 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002272/0.7402, allocations: 84.16 kB / 1.083 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.134e-05/0.7403, allocations: 2.812 kB / 1.083 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.7404, allocations: 17.86 kB / 1.083 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.7405, allocations: 9.688 kB / 1.083 GB, free: 0.957 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 6.987e-05/0.7406, allocations: 42.44 kB / 1.083 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.7409, allocations: 250.5 kB / 1.084 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003652/0.7412, allocations: 290.7 kB / 1.084 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.7414, allocations: 131.8 kB / 1.084 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.7415, allocations: 138.1 kB / 1.084 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.437e-05/0.7416, allocations: 33.25 kB / 1.084 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.937e-05/0.7416, allocations: 32.66 kB / 1.084 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.619e-05/0.7417, allocations: 91.64 kB / 1.084 GB, free: 496 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.7418, allocations: 154.2 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003511/0.7422, allocations: 359.3 kB / 1.085 GB, free: 280 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.7422, allocations: 0 / 1.085 GB, free: 280 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.522e-06/0.7422, allocations: 0 / 1.085 GB, free: 280 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.7422, allocations: 1.344 kB / 1.085 GB, free: 280 kB / 0.8262 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.0006875/0.7429, allocations: 0.5923 MB / 1.085 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.7429, allocations: 8.969 kB / 1.085 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.188e-05/0.743, allocations: 39.34 kB / 1.086 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.7435, allocations: 337.5 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.666e-05/0.7436, allocations: 35.19 kB / 1.086 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.016e-05/0.7436, allocations: 31.88 kB / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000672/0.7443, allocations: 398.4 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.7443, allocations: 192 / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.7444, allocations: 18.91 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.7444, allocations: 13.06 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005031/0.7449, allocations: 306.8 kB / 1.087 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.7465, allocations: 1.058 MB / 1.088 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.7466, allocations: 90.27 kB / 1.088 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.097e-05/0.7467, allocations: 49.12 kB / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.7468, allocations: 1.719 kB / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.7468, allocations: 39.81 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 2.835e-06/0.7468, allocations: 1.344 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0003548/0.7472, allocations: 171.2 kB / 1.088 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.7472, allocations: 82.42 kB / 1.088 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.7478, allocations: 0.5045 MB / 1.089 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.7479, allocations: 25.7 kB / 1.089 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.7481, allocations: 210.4 kB / 1.089 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.7481, allocations: 19.69 kB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.621e-05/0.7482, allocations: 53.16 kB / 1.089 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.7484, allocations: 348.2 kB / 1.089 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.7485, allocations: 68.89 kB / 1.089 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.7487, allocations: 88.12 kB / 1.089 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.7488, allocations: 115.4 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.7489, allocations: 0 / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003219/0.7492, allocations: 213.5 kB / 1.09 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.7492, allocations: 5.375 kB / 1.09 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.7492, allocations: 0 / 1.09 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.7493, allocations: 2.172 kB / 1.09 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.7494, allocations: 39.25 kB / 1.09 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.7494, allocations: 1.281 kB / 1.09 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.904e-05/0.7495, allocations: 30.14 kB / 1.09 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.7495, allocations: 4.375 kB / 1.09 GB, free: 13.11 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.0002174/0.7498, allocations: 203.5 kB / 1.09 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/0.7498, allocations: 29.78 kB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000238/0.7501, allocations: 123.9 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.7501, allocations: 5.062 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.7501, allocations: 0 / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.7501, allocations: 1.797 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007672/0.7509, allocations: 0.6608 MB / 1.091 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.7509, allocations: 0.5312 kB / 1.091 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.319e-05/0.7509, allocations: 4.641 kB / 1.091 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.7509, allocations: 1.219 kB / 1.091 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.7509, allocations: 7.25 kB / 1.091 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.7509, allocations: 1.094 kB / 1.091 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.751, allocations: 2.031 kB / 1.091 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.7511, allocations: 140 kB / 1.091 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.7512, allocations: 117.2 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.7513, allocations: 1.281 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.241e-05/0.7513, allocations: 7.844 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.552e-05/0.7514, allocations: 3.812 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.7514, allocations: 2.094 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004638/0.7518, allocations: 391.2 kB / 1.091 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7518, allocations: 4 kB / 1.091 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000247/0.7521, allocations: 44.69 kB / 1.091 GB, free: 11.85 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.0001379/0.7522, allocations: 103.5 kB / 1.091 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.7525, allocations: 114.5 kB / 1.092 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.7525, allocations: 1.031 kB / 1.092 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.962e-05/0.7525, allocations: 13.95 kB / 1.092 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.7528, allocations: 42.3 kB / 1.092 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008581/0.7537, allocations: 0.6002 MB / 1.092 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.7542, allocations: 0.789 MB / 1.093 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.594e-05/0.7542, allocations: 23.44 kB / 1.093 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.7542, allocations: 0 / 1.093 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of Templates: time 0.006712/0.761, allocations: 3.777 MB / 1.097 GB, free: 10.18 MB / 0.8419 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=400 -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/jenkins1/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