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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 193 kB / 16.53 MB, free: 6.391 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.319/1.319, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.707/2.707, allocations: 469.4 MB / 0.742 GB, free: 7.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.88 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2367, allocations: 159.1 MB / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.00199/0.2387, allocations: 0.855 MB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002451/0.239, allocations: 95.58 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.313e-05/0.2391, allocations: 4 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.2392, allocations: 15.8 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.2393, allocations: 23.84 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 7.588e-05/0.2394, allocations: 35.97 kB / 1.065 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.2396, allocations: 255.4 kB / 1.065 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.24, allocations: 286.3 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.2401, allocations: 127.6 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.2403, allocations: 151.3 kB / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.869e-05/0.2403, allocations: 32 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.25e-05/0.2404, allocations: 32 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.667e-05/0.2404, allocations: 83.72 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.2406, allocations: 163.1 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.2409, allocations: 434.6 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2409, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2409, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.2409, allocations: 0 / 1.066 GB, free: 11.9 MB / 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.0005743/0.2415, allocations: 0.5928 MB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.2415, allocations: 19.97 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.757e-05/0.2416, allocations: 70.72 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.2417, allocations: 40.41 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.242, allocations: 332.1 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.023e-05/0.2421, allocations: 33.03 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/0.2421, allocations: 36.31 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.2427, allocations: 400.2 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2427, allocations: 3.938 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.2427, allocations: 23.98 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2427, allocations: 8 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004275/0.2432, allocations: 299.6 kB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.2444, allocations: 1.053 MB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.2446, allocations: 93.2 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.02e-05/0.2446, allocations: 45.78 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.2446, allocations: 0 / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.2447, allocations: 46.5 kB / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.2447, allocations: 0 / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0002977/0.245, allocations: 169.1 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.245, allocations: 77.11 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.2455, allocations: 0.5091 MB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.2456, allocations: 29.7 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.2457, allocations: 203.5 kB / 1.07 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.407e-05/0.2457, allocations: 19.81 kB / 1.07 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/0.2458, allocations: 53.69 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.2459, allocations: 342.8 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.246, allocations: 67.95 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.2461, allocations: 85.66 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.2463, allocations: 121.5 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2463, allocations: 0 / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002856/0.2466, allocations: 213 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.2466, allocations: 9.562 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.2466, allocations: 0 / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.2466, allocations: 3.938 kB / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2468, allocations: 27.98 kB / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.2468, allocations: 0 / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.568e-05/0.2469, allocations: 39.53 kB / 1.071 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.2469, allocations: 4 kB / 1.071 GB, free: 6.617 MB / 0.8262 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.0001778/0.2471, allocations: 208.5 kB / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/0.2471, allocations: 31.62 kB / 1.071 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.2473, allocations: 114 kB / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2474, allocations: 7.875 kB / 1.071 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2474, allocations: 0 / 1.071 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2474, allocations: 4 kB / 1.071 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004994/0.2479, allocations: 0.6526 MB / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2479, allocations: 0 / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.351e-05/0.2479, allocations: 7.938 kB / 1.072 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2479, allocations: 4 kB / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.2479, allocations: 0 / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.2479, allocations: 0 / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2479, allocations: 4 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.2481, allocations: 135.7 kB / 1.072 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.2482, allocations: 116.7 kB / 1.072 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.2482, allocations: 12.11 kB / 1.072 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.363e-05/0.2483, allocations: 4.047 kB / 1.072 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.977e-05/0.2483, allocations: 15.92 kB / 1.072 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.2483, allocations: 0 / 1.072 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003869/0.2487, allocations: 391 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2487, allocations: 0 / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002401/0.2489, allocations: 39.91 kB / 1.073 GB, free: 4.754 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.0003539/0.2493, allocations: 0.6692 MB / 1.073 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001851/0.2495, allocations: 103.9 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2495, allocations: 4 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.943e-05/0.2495, allocations: 19.92 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.2498, allocations: 29.81 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.2526, allocations: 2.919 MB / 1.076 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.2529, allocations: 0.7948 MB / 1.077 GB, free: 48 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001097/0.2531, allocations: 55 kB / 1.077 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.2532, allocations: 95.34 kB / 1.077 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of SimCode: time 2.8e-07/0.2532, allocations: 384 / 1.077 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.2741, allocations: 5.563 MB / 1.083 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.081/7.355, allocations: 12.8 kB / 1.083 GB, free: 10.46 MB / 0.8419 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv","/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