Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000779/0.000779, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007428/0.0007428, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8729/0.8729, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.687/1.687, allocations: 377.9 MB / 0.6221 GB, free: 8.66 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 0.9809 GB, free: 2.621 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.161e-05/1.378e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001277/0.001291, allocations: 0.8462 MB / 0.9818 GB, free: 1.773 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002217/0.001512, allocations: 91.7 kB / 0.9819 GB, free: 1.684 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.811e-05/0.00159, allocations: 7.875 kB / 0.9819 GB, free: 1.676 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.001702, allocations: 27.78 kB / 0.9819 GB, free: 1.648 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.001823, allocations: 11.81 kB / 0.9819 GB, free: 1.637 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 7.255e-05/0.001895, allocations: 47.94 kB / 0.9819 GB, free: 1.59 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.000202/0.002097, allocations: 255.4 kB / 0.9822 GB, free: 1.34 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.002325, allocations: 170.9 kB / 0.9824 GB, free: 1.168 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.002459, allocations: 191.6 kB / 0.9825 GB, free: 0.9805 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.00258, allocations: 123.6 kB / 0.9827 GB, free: 0.8594 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 4.061e-05/0.002621, allocations: 36 kB / 0.9827 GB, free: 0.8242 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 2.56e-05/0.002647, allocations: 32 kB / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 5.701e-05/0.002704, allocations: 91.67 kB / 0.9828 GB, free: 0.7031 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 6.427e-05/0.002768, allocations: 91.77 kB / 0.9829 GB, free: 0.6133 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.003074, allocations: 466.4 kB / 0.9833 GB, free: 160 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.003076, allocations: 0 / 0.9833 GB, free: 160 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.083e-06/0.003077, allocations: 0 / 0.9833 GB, free: 160 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.89e-06/0.003082, allocations: 4 kB / 0.9833 GB, free: 156 kB / 0.9323 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.0004605/0.003542, allocations: 0.5234 MB / 0.9839 GB, free: 15.59 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.003577, allocations: 12.02 kB / 0.9839 GB, free: 15.58 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.867e-05/0.003626, allocations: 70.72 kB / 0.9839 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.936e-05/0.003666, allocations: 40.7 kB / 0.984 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.003938, allocations: 270.4 kB / 0.9842 GB, free: 15.18 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.053e-05/0.003978, allocations: 45.02 kB / 0.9843 GB, free: 15.13 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.004003, allocations: 28.38 kB / 0.9843 GB, free: 15.11 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.004393, allocations: 404.2 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.004403, allocations: 192 / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.004422, allocations: 16.38 kB / 0.9847 GB, free: 14.68 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.004433, allocations: 12.12 kB / 0.9847 GB, free: 14.67 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002944/0.004727, allocations: 299.6 kB / 0.985 GB, free: 14.38 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009202/0.005647, allocations: 0.9541 MB / 0.9859 GB, free: 13.38 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.005754, allocations: 93.16 kB / 0.986 GB, free: 13.27 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.454e-05/0.005799, allocations: 49.73 kB / 0.9861 GB, free: 13.21 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.005816, allocations: 3.938 kB / 0.9861 GB, free: 13.21 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.005835, allocations: 38.55 kB / 0.9861 GB, free: 13.16 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.005836, allocations: 0 / 0.9861 GB, free: 13.16 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002356/0.006072, allocations: 173.3 kB / 0.9863 GB, free: 12.98 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.006108, allocations: 81.11 kB / 0.9864 GB, free: 12.89 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000363/0.006471, allocations: 0.5207 MB / 0.9869 GB, free: 12.36 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.368e-06/0.006481, allocations: 25.7 kB / 0.9869 GB, free: 12.32 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.883e-05/0.006579, allocations: 207.7 kB / 0.9871 GB, free: 12.12 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.186e-06/0.006588, allocations: 15.91 kB / 0.9871 GB, free: 12.1 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.848e-05/0.006636, allocations: 53.7 kB / 0.9871 GB, free: 12.04 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.413e-05/0.00672, allocations: 346.8 kB / 0.9875 GB, free: 11.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.69e-05/0.006787, allocations: 63.95 kB / 0.9875 GB, free: 11.63 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.517e-05/0.006862, allocations: 89.66 kB / 0.9876 GB, free: 11.54 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.006965, allocations: 113.6 kB / 0.9877 GB, free: 11.42 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.006967, allocations: 0 / 0.9877 GB, free: 11.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001837/0.007151, allocations: 213.3 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.007163, allocations: 4 kB / 0.9879 GB, free: 11.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.007169, allocations: 4 kB / 0.9879 GB, free: 11.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.00718, allocations: 4 kB / 0.9879 GB, free: 11.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.76e-05/0.007267, allocations: 31.92 kB / 0.988 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.007272, allocations: 0 / 0.988 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.92e-05/0.007321, allocations: 43.61 kB / 0.988 GB, free: 11.12 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.007332, allocations: 4 kB / 0.988 GB, free: 11.12 MB / 0.948 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.0001214/0.007453, allocations: 199.8 kB / 0.9882 GB, free: 10.91 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.007487, allocations: 31.77 kB / 0.9882 GB, free: 10.88 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.007619, allocations: 122.1 kB / 0.9884 GB, free: 10.75 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.00762, allocations: 0 / 0.9884 GB, free: 10.75 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.007624, allocations: 0 / 0.9884 GB, free: 10.75 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.007627, allocations: 3.938 kB / 0.9884 GB, free: 10.75 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003291/0.007956, allocations: 0.6087 MB / 0.989 GB, free: 10.08 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.007958, allocations: 3.984 kB / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.128e-05/0.007969, allocations: 4 kB / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.007973, allocations: 3.938 kB / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.671e-06/0.007978, allocations: 4 kB / 0.989 GB, free: 10.06 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.007979, allocations: 4.188 kB / 0.989 GB, free: 10.06 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.00798, allocations: 3.938 kB / 0.989 GB, free: 10.05 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.994e-05/0.00806, allocations: 127.5 kB / 0.9891 GB, free: 9.902 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.008101, allocations: 51.69 kB / 0.9892 GB, free: 9.852 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.008119, allocations: 8 kB / 0.9892 GB, free: 9.844 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.906e-05/0.008148, allocations: 4 kB / 0.9892 GB, free: 9.84 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.628e-05/0.008164, allocations: 7.984 kB / 0.9892 GB, free: 9.832 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-06/0.008166, allocations: 0 / 0.9892 GB, free: 9.832 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002604/0.008426, allocations: 391 kB / 0.9895 GB, free: 9.453 MB / 0.948 GB Notification: Performance of sort global known variables: time 8.1e-08/0.008426, allocations: 0 / 0.9895 GB, free: 9.453 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001529/0.008579, allocations: 43.95 kB / 0.9896 GB, free: 9.41 MB / 0.948 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.0002397/0.008819, allocations: 0.6703 MB / 0.9902 GB, free: 8.703 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001388/0.008958, allocations: 116.2 kB / 0.9904 GB, free: 8.59 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.00896, allocations: 3.938 kB / 0.9904 GB, free: 8.586 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.465e-05/0.008974, allocations: 12 kB / 0.9904 GB, free: 8.574 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/0.009137, allocations: 30.2 kB / 0.9904 GB, free: 8.547 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.0111, allocations: 2.91 MB / 0.9932 GB, free: 5.531 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.01121, allocations: 183.5 kB / 0.9934 GB, free: 5.336 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.73e-05/0.01127, allocations: 58.94 kB / 0.9935 GB, free: 5.277 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.877e-05/0.01136, allocations: 92.47 kB / 0.9936 GB, free: 5.188 MB / 0.948 GB Notification: Performance of SimCode: time 4.61e-07/0.01136, allocations: 4 kB / 0.9936 GB, free: 5.184 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01557/0.02693, allocations: 6.469 MB / 0.9999 GB, free: 14.89 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.532/6.559, allocations: 10.12 kB / 0.9999 GB, free: 14.88 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable idxFirTru.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTru.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! Error: Could not read variable idxFirTruAllFal.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTruAllFal.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.463471773080528]