Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.001238/0.001238, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 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.001377/0.001377, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 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 1.503/1.503, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.019/3.019, allocations: 0.49 GB / 0.7923 GB, free: 1.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.LastTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 64.19 kB / 1.15 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9214/0.9235, allocations: 176.1 MB / 1.321 GB, free: 24.78 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001774/0.9252, allocations: 0.7249 MB / 1.322 GB, free: 24.32 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0001933/0.9254, allocations: 44.08 kB / 1.322 GB, free: 24.29 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.51e-05/0.9255, allocations: 2.812 kB / 1.322 GB, free: 24.29 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.9256, allocations: 18.67 kB / 1.322 GB, free: 24.28 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.9257, allocations: 6.75 kB / 1.322 GB, free: 24.28 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 5.26e-05/0.9258, allocations: 21.8 kB / 1.322 GB, free: 24.27 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.926, allocations: 180.9 kB / 1.322 GB, free: 24.18 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002651/0.9262, allocations: 208.1 kB / 1.323 GB, free: 24.11 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.086e-05/0.9263, allocations: 106.2 kB / 1.323 GB, free: 24.05 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 9.786e-05/0.9264, allocations: 109 kB / 1.323 GB, free: 24 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.9264, allocations: 24.59 kB / 1.323 GB, free: 24 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.248e-05/0.9265, allocations: 26.09 kB / 1.323 GB, free: 24 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.5e-05/0.9265, allocations: 78.19 kB / 1.323 GB, free: 23.95 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.635e-05/0.9266, allocations: 122.4 kB / 1.323 GB, free: 23.86 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.9269, allocations: 376.7 kB / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.9269, allocations: 0 / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9269, allocations: 0 / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.9269, allocations: 0 / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0005309/0.9275, allocations: 0.56 MB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.9275, allocations: 15.11 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.023e-05/0.9275, allocations: 6.219 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.535e-05/0.9276, allocations: 68.42 kB / 1.324 GB, free: 23.15 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.195e-05/0.9276, allocations: 36.91 kB / 1.324 GB, free: 23.13 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.9279, allocations: 322.6 kB / 1.324 GB, free: 22.86 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/0.928, allocations: 27.41 kB / 1.324 GB, free: 22.85 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.928, allocations: 22.94 kB / 1.324 GB, free: 22.84 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.9285, allocations: 344 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.9285, allocations: 2.844 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.9285, allocations: 12 kB / 1.325 GB, free: 22.68 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.9285, allocations: 8.438 kB / 1.325 GB, free: 22.68 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.9288, allocations: 263.5 kB / 1.325 GB, free: 22.61 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009023/0.9297, allocations: 0.9041 MB / 1.326 GB, free: 22.03 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 6.259e-05/0.9298, allocations: 62.5 kB / 1.326 GB, free: 21.96 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.298e-05/0.9298, allocations: 35.92 kB / 1.326 GB, free: 21.94 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.9298, allocations: 3.375 kB / 1.326 GB, free: 21.94 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.19e-05/0.9299, allocations: 33.34 kB / 1.326 GB, free: 21.9 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.9299, allocations: 0 / 1.326 GB, free: 21.9 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0002416/0.9301, allocations: 128.7 kB / 1.326 GB, free: 21.83 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.9301, allocations: 77.36 kB / 1.326 GB, free: 21.73 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005363/0.9307, allocations: 484.6 kB / 1.327 GB, free: 21.51 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.227e-06/0.9307, allocations: 26.48 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.9308, allocations: 184.9 kB / 1.327 GB, free: 21.32 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.188e-05/0.9308, allocations: 9.5 kB / 1.327 GB, free: 21.32 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.261e-05/0.9309, allocations: 46.75 kB / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.158e-05/0.9309, allocations: 342.2 kB / 1.327 GB, free: 20.96 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.454e-05/0.931, allocations: 53.75 kB / 1.327 GB, free: 20.95 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.9311, allocations: 82.59 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.9313, allocations: 100.1 kB / 1.328 GB, free: 20.85 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.9313, allocations: 0 / 1.328 GB, free: 20.85 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002597/0.9315, allocations: 192.6 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.9315, allocations: 5.656 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.9315, allocations: 1 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.9316, allocations: 1.094 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.9317, allocations: 27.44 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.9317, allocations: 1.219 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.777e-05/0.9318, allocations: 36.55 kB / 1.328 GB, free: 20.72 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.9318, allocations: 8.688 kB / 1.328 GB, free: 20.72 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001717/0.932, allocations: 197.7 kB / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.932, allocations: 23.55 kB / 1.328 GB, free: 20.56 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.9322, allocations: 158.4 kB / 1.328 GB, free: 20.42 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-05/0.9322, allocations: 184.8 kB / 1.328 GB, free: 20.23 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.748e-05/0.9322, allocations: 188.7 kB / 1.329 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.388e-05/0.9323, allocations: 178.7 kB / 1.329 GB, free: 19.87 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.9325, allocations: 0.5196 MB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.9326, allocations: 101 kB / 1.329 GB, free: 19.28 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.915e-05/0.9326, allocations: 106.5 kB / 1.329 GB, free: 19.17 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.76e-05/0.9326, allocations: 188.2 kB / 1.33 GB, free: 18.98 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.9326, allocations: 181.3 kB / 1.33 GB, free: 18.8 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.26e-05/0.9327, allocations: 177.5 kB / 1.33 GB, free: 18.62 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.502e-05/0.9327, allocations: 176.9 kB / 1.33 GB, free: 18.44 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/0.9328, allocations: 346.2 kB / 1.33 GB, free: 18.09 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.9329, allocations: 219.2 kB / 1.331 GB, free: 17.87 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.9329, allocations: 178.5 kB / 1.331 GB, free: 17.69 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.56e-05/0.933, allocations: 103 kB / 1.331 GB, free: 17.59 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.9331, allocations: 185.5 kB / 1.331 GB, free: 17.4 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.9331, allocations: 105.5 kB / 1.331 GB, free: 17.29 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004253/0.9335, allocations: 366.2 kB / 1.332 GB, free: 17.13 MB / 1.061 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9335, allocations: 1 kB / 1.332 GB, free: 17.13 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002774/0.9338, allocations: 33.77 kB / 1.332 GB, free: 17.12 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0003155/0.9341, allocations: 0.8392 MB / 1.332 GB, free: 16.3 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.9343, allocations: 79.11 kB / 1.332 GB, free: 16.27 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.9343, allocations: 0.5625 kB / 1.332 GB, free: 16.27 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.256e-06/0.9343, allocations: 1.156 kB / 1.332 GB, free: 16.27 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003801/0.9347, allocations: 474.4 kB / 1.333 GB, free: 15.81 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003116/0.9378, allocations: 2.82 MB / 1.336 GB, free: 13.99 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.9381, allocations: 0.779 MB / 1.336 GB, free: 13.28 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001176/0.9382, allocations: 58.75 kB / 1.336 GB, free: 13.27 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.9383, allocations: 77.02 kB / 1.337 GB, free: 13.21 MB / 1.061 GB Notification: Performance of SimCode: time 3.41e-07/0.9383, allocations: 3.938 kB / 1.337 GB, free: 13.21 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.9631, allocations: 5.011 MB / 1.341 GB, free: 12.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.444/9.407, allocations: 12.94 kB / 1.341 GB, free: 12.59 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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: 16.00012284499826]