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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> 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.007486/0.007486, allocations: 101.1 kB / 15.73 MB, free: 5.508 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.001818/0.001818, allocations: 195.7 kB / 16.67 MB, free: 5.438 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.739/2.739, allocations: 469.4 MB / 0.7421 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 63.91 kB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2774, allocations: 159.1 MB / 1.22 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002132/0.2795, allocations: 0.857 MB / 1.221 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003149/0.2799, allocations: 91.62 kB / 1.221 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.28, allocations: 4 kB / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.2802, allocations: 19.8 kB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.2803, allocations: 19.86 kB / 1.221 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 9.679e-05/0.2804, allocations: 39.97 kB / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.2807, allocations: 255.4 kB / 1.221 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004192/0.2812, allocations: 298.3 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.2813, allocations: 127.5 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.2815, allocations: 147.3 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.532e-05/0.2816, allocations: 32 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.2816, allocations: 32 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.401e-05/0.2817, allocations: 83.77 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.2819, allocations: 155.1 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.2823, allocations: 466 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2823, allocations: 0 / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2823, allocations: 4 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.235e-05/0.2823, allocations: 0 / 1.222 GB, free: 12 MB / 0.9825 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.0007394/0.2831, allocations: 0.6077 MB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2831, allocations: 12.03 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.894e-05/0.2832, allocations: 74.72 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.2833, allocations: 36.7 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004153/0.2837, allocations: 336.2 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.153e-05/0.2838, allocations: 33.03 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.496e-05/0.2838, allocations: 36.38 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006019/0.2844, allocations: 404.2 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.2844, allocations: 3.938 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.2845, allocations: 8 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.2845, allocations: 8 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004612/0.285, allocations: 307.6 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.2864, allocations: 1.054 MB / 1.225 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.2866, allocations: 85.22 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.82e-05/0.2866, allocations: 53.78 kB / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.2867, allocations: 3.984 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.2867, allocations: 38.5 kB / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.2867, allocations: 0 / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0003475/0.2871, allocations: 173.3 kB / 1.225 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.2871, allocations: 77.11 kB / 1.226 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005422/0.2877, allocations: 0.5092 MB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.2877, allocations: 29.7 kB / 1.226 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.2878, allocations: 207.7 kB / 1.226 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.589e-05/0.2879, allocations: 11.89 kB / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.808e-05/0.2879, allocations: 61.64 kB / 1.226 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.2881, allocations: 342.8 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.2882, allocations: 71.95 kB / 1.227 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.2883, allocations: 89.56 kB / 1.227 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.2885, allocations: 113.6 kB / 1.227 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2885, allocations: 0 / 1.227 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003056/0.2888, allocations: 205.4 kB / 1.227 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2888, allocations: 4 kB / 1.227 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2889, allocations: 16.11 kB / 1.227 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2889, allocations: 3.938 kB / 1.227 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.289, allocations: 31.92 kB / 1.227 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.289, allocations: 0 / 1.227 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.204e-05/0.2891, allocations: 39.69 kB / 1.227 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.2892, allocations: 7.938 kB / 1.227 GB, free: 6.688 MB / 0.9825 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.0001825/0.2893, allocations: 207.9 kB / 1.227 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.2894, allocations: 31.81 kB / 1.227 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002056/0.2896, allocations: 118 kB / 1.228 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2896, allocations: 3.938 kB / 1.228 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2897, allocations: 0 / 1.228 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2897, allocations: 0 / 1.228 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005197/0.2902, allocations: 0.6682 MB / 1.228 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2902, allocations: 0 / 1.228 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.207e-05/0.2902, allocations: 7.938 kB / 1.228 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.2902, allocations: 0 / 1.228 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.2903, allocations: 8 kB / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.2903, allocations: 0 / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2903, allocations: 0 / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.2904, allocations: 131.6 kB / 1.228 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.2905, allocations: 120.9 kB / 1.228 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.2906, allocations: 3.984 kB / 1.228 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.344e-05/0.2906, allocations: 4 kB / 1.228 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.2907, allocations: 12.36 kB / 1.228 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.2907, allocations: 0 / 1.228 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004111/0.2911, allocations: 395 kB / 1.229 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.5e-07/0.2911, allocations: 0 / 1.229 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002621/0.2914, allocations: 39.89 kB / 1.229 GB, free: 4.824 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.000405/0.2918, allocations: 0.6849 MB / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002104/0.292, allocations: 103.9 kB / 1.23 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.292, allocations: 0 / 1.23 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.731e-05/0.2921, allocations: 15.94 kB / 1.23 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.2923, allocations: 35.58 kB / 1.23 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.2953, allocations: 2.905 MB / 1.233 GB, free: 0.9336 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.2956, allocations: 0.787 MB / 1.233 GB, free: 124 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001109/0.2957, allocations: 58.92 kB / 1.233 GB, free: 68 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.2959, allocations: 99.48 kB / 1.233 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of SimCode: time 4.51e-07/0.2959, allocations: 0 / 1.233 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/0.3171, allocations: 5.671 MB / 1.239 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/7.918, allocations: 7.922 kB / 1.239 GB, free: 10.44 MB / 0.9981 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