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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 108 kB / 16.4 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 191.7 kB / 19.36 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 245.1 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.13/3.13, allocations: 489 MB / 0.7678 GB, free: 29.23 MB / 0.6231 GB " [Timeout remaining time 177] 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: "" <> 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 67.89 kB / 1.101 GB, free: 5.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.815/0.817, allocations: 163.8 MB / 1.261 GB, free: 7.07 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002226/0.8193, allocations: 0.8698 MB / 1.262 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003079/0.8196, allocations: 87.7 kB / 1.262 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.842e-05/0.8197, allocations: 8 kB / 1.262 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.8199, allocations: 27.72 kB / 1.262 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.82, allocations: 11.88 kB / 1.262 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001011/0.8201, allocations: 39.95 kB / 1.262 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.8205, allocations: 251.5 kB / 1.262 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004852/0.821, allocations: 298.3 kB / 1.263 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.8211, allocations: 131.5 kB / 1.263 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.8213, allocations: 139.3 kB / 1.263 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.708e-05/0.8214, allocations: 35.94 kB / 1.263 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.232e-05/0.8215, allocations: 32 kB / 1.263 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.8216, allocations: 87.75 kB / 1.263 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.8218, allocations: 155.1 kB / 1.263 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005141/0.8223, allocations: 464.7 kB / 1.264 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.8223, allocations: 0 / 1.264 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.979e-06/0.8223, allocations: 0 / 1.264 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.8223, allocations: 3.938 kB / 1.264 GB, free: 4.465 MB / 0.9669 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.0008458/0.8232, allocations: 0.6038 MB / 1.264 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.8232, allocations: 12.02 kB / 1.264 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.794e-05/0.8233, allocations: 74.72 kB / 1.264 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.138e-05/0.8234, allocations: 40.7 kB / 1.264 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004591/0.8239, allocations: 340.2 kB / 1.265 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.818e-05/0.8239, allocations: 33.03 kB / 1.265 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.824, allocations: 32.38 kB / 1.265 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006393/0.8246, allocations: 396.2 kB / 1.265 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.8247, allocations: 3.938 kB / 1.265 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.8247, allocations: 12 kB / 1.265 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.8247, allocations: 12 kB / 1.265 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005076/0.8252, allocations: 315.3 kB / 1.265 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.8268, allocations: 1.05 MB / 1.266 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.8269, allocations: 89.16 kB / 1.266 GB, free: 1.293 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.11e-05/0.827, allocations: 45.8 kB / 1.267 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.827, allocations: 15.97 kB / 1.267 GB, free: 1.227 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.8271, allocations: 30.56 kB / 1.267 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.804e-06/0.8271, allocations: 0 / 1.267 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0003753/0.8275, allocations: 173.3 kB / 1.267 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.8275, allocations: 81.11 kB / 1.267 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006299/0.8282, allocations: 0.5052 MB / 1.267 GB, free: 412 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.8282, allocations: 29.7 kB / 1.267 GB, free: 376 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.8284, allocations: 207.7 kB / 1.268 GB, free: 164 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.8284, allocations: 11.95 kB / 1.268 GB, free: 152 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.629e-05/0.8285, allocations: 61.64 kB / 1.268 GB, free: 84 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002172/0.8288, allocations: 338.8 kB / 1.268 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.8289, allocations: 67.95 kB / 1.268 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.829, allocations: 93.59 kB / 1.268 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.8293, allocations: 113.6 kB / 1.268 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.8293, allocations: 4 kB / 1.268 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003707/0.8297, allocations: 209.3 kB / 1.268 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.8297, allocations: 4 kB / 1.268 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.8297, allocations: 0 / 1.268 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.8297, allocations: 7.938 kB / 1.268 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.8299, allocations: 23.98 kB / 1.268 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.8299, allocations: 7.938 kB / 1.268 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.199e-05/0.83, allocations: 39.61 kB / 1.268 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.83, allocations: 8 kB / 1.268 GB, free: 15.16 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.0002459/0.8303, allocations: 204 kB / 1.269 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.864e-05/0.8303, allocations: 31.77 kB / 1.269 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/0.8306, allocations: 114 kB / 1.269 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.8306, allocations: 3.938 kB / 1.269 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.8306, allocations: 4.375 kB / 1.269 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.8306, allocations: 192 / 1.269 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006661/0.8313, allocations: 0.6565 MB / 1.269 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.716e-06/0.8313, allocations: 7.938 kB / 1.269 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.246e-05/0.8313, allocations: 4 kB / 1.269 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.8314, allocations: 3.984 kB / 1.269 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.8314, allocations: 0 / 1.269 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.8314, allocations: 4 kB / 1.269 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8314, allocations: 4.125 kB / 1.269 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.8316, allocations: 131.3 kB / 1.27 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.8317, allocations: 120.9 kB / 1.27 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.8317, allocations: 4 kB / 1.27 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.379e-05/0.8318, allocations: 11.98 kB / 1.27 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.217e-05/0.8318, allocations: 8 kB / 1.27 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.8318, allocations: 4 kB / 1.27 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004615/0.8323, allocations: 391 kB / 1.27 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8323, allocations: 0 / 1.27 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002412/0.8325, allocations: 39.89 kB / 1.27 GB, free: 13.3 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.0005846/0.8331, allocations: 0.6733 MB / 1.271 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002412/0.8334, allocations: 107.9 kB / 1.271 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.8334, allocations: 0 / 1.271 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.927e-05/0.8334, allocations: 16.12 kB / 1.271 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.8337, allocations: 35.16 kB / 1.271 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.8373, allocations: 2.911 MB / 1.274 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.8378, allocations: 0.7831 MB / 1.275 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001309/0.8379, allocations: 62.92 kB / 1.275 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.8381, allocations: 91.41 kB / 1.275 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of SimCode: time 6.91e-07/0.8381, allocations: 0 / 1.275 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.8659, allocations: 5.672 MB / 1.28 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.254/9.12, allocations: 27.72 kB / 1.28 GB, free: 2.922 MB / 0.9825 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.091269535943866]