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.001775/0.001775, allocations: 113.8 kB / 19.73 MB, free: 2.242 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.0027/0.0027, allocations: 219.6 kB / 23.04 MB, free: 5.074 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.547/1.547, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.255/3.255, allocations: 0.49 GB / 0.7959 GB, free: 33.41 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.002069/0.002069, allocations: 67.14 kB / 1.155 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.324, allocations: 176.1 MB / 1.327 GB, free: 1.988 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001912/0.3259, allocations: 0.7262 MB / 1.327 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002007/0.3261, allocations: 43.84 kB / 1.327 GB, free: 1.223 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.743e-05/0.3262, allocations: 4 kB / 1.327 GB, free: 1.219 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.3263, allocations: 15.86 kB / 1.327 GB, free: 1.203 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.3264, allocations: 11.94 kB / 1.327 GB, free: 1.191 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.196e-05/0.3264, allocations: 19.98 kB / 1.327 GB, free: 1.172 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.3267, allocations: 183.5 kB / 1.328 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002783/0.327, allocations: 149.6 kB / 1.328 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.3271, allocations: 99.66 kB / 1.328 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.3272, allocations: 115.5 kB / 1.328 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.322e-05/0.3273, allocations: 24 kB / 1.328 GB, free: 0.6094 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.523e-05/0.3273, allocations: 24 kB / 1.328 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.41e-05/0.3274, allocations: 71.78 kB / 1.328 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.3275, allocations: 127.2 kB / 1.328 GB, free: 400 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.3279, allocations: 374.4 kB / 1.329 GB, free: 24 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3279, allocations: 4 kB / 1.329 GB, free: 20 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3279, allocations: 0 / 1.329 GB, free: 20 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.002e-05/0.3279, allocations: 0 / 1.329 GB, free: 20 kB / 1.014 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.0006594/0.3286, allocations: 497.4 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3286, allocations: 8.031 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.086e-05/0.3286, allocations: 8.844 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.924e-05/0.3287, allocations: 70.72 kB / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.991e-05/0.3287, allocations: 32.75 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.3292, allocations: 255.6 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.856e-05/0.3292, allocations: 28.97 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.3292, allocations: 28.36 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005109/0.3298, allocations: 344 kB / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3298, allocations: 0 / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.3298, allocations: 12 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3298, allocations: 4 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004004/0.3302, allocations: 271.7 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.3315, allocations: 0.8751 MB / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.895e-05/0.3316, allocations: 61.08 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.951e-05/0.3316, allocations: 33.75 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.3316, allocations: 0 / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.3317, allocations: 38.56 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3317, allocations: 0 / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002629/0.3319, allocations: 129.4 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.332, allocations: 77.11 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005523/0.3325, allocations: 481.4 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.3325, allocations: 25.7 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.3327, allocations: 196 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.148e-05/0.3327, allocations: 7.938 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.856e-05/0.3328, allocations: 49.66 kB / 1.332 GB, free: 12.33 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3329, allocations: 338.8 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.98e-05/0.333, allocations: 55.95 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.3331, allocations: 80.28 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.3333, allocations: 93.62 kB / 1.333 GB, free: 11.75 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3333, allocations: 4 kB / 1.333 GB, free: 11.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002759/0.3335, allocations: 189.3 kB / 1.333 GB, free: 11.56 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3336, allocations: 8 kB / 1.333 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3336, allocations: 0 / 1.333 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3336, allocations: 3.984 kB / 1.333 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.3337, allocations: 20 kB / 1.333 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3337, allocations: 4 kB / 1.333 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.203e-05/0.3338, allocations: 27.78 kB / 1.333 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.3338, allocations: 4.156 kB / 1.333 GB, free: 11.49 MB / 1.029 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.0001978/0.334, allocations: 209.4 kB / 1.333 GB, free: 11.28 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.547e-05/0.3341, allocations: 27.81 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.3343, allocations: 164.6 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.469e-05/0.3343, allocations: 184.2 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-05/0.3344, allocations: 180.2 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.157e-05/0.3345, allocations: 180.3 kB / 1.334 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.3349, allocations: 0.4922 MB / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.385e-05/0.3349, allocations: 105 kB / 1.334 GB, free: 9.867 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.441e-05/0.3349, allocations: 108.9 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-05/0.335, allocations: 188.2 kB / 1.335 GB, free: 9.562 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.495e-05/0.3351, allocations: 180.3 kB / 1.335 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.346e-05/0.3352, allocations: 184.2 kB / 1.335 GB, free: 9.191 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.252e-05/0.3353, allocations: 180.2 kB / 1.335 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001803/0.3354, allocations: 339.7 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3356, allocations: 136.8 kB / 1.335 GB, free: 8.512 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.3357, allocations: 196.2 kB / 1.336 GB, free: 8.312 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.3358, allocations: 101 kB / 1.336 GB, free: 8.207 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.189e-05/0.3359, allocations: 188.2 kB / 1.336 GB, free: 8.016 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.643e-05/0.3359, allocations: 101 kB / 1.336 GB, free: 7.91 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004082/0.3363, allocations: 359.1 kB / 1.336 GB, free: 7.559 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3363, allocations: 0 / 1.336 GB, free: 7.559 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002694/0.3366, allocations: 35.94 kB / 1.336 GB, free: 7.523 MB / 1.029 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.0004635/0.337, allocations: 0.8358 MB / 1.337 GB, free: 6.66 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001678/0.3372, allocations: 71.95 kB / 1.337 GB, free: 6.59 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3372, allocations: 0 / 1.337 GB, free: 6.59 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.422e-06/0.3372, allocations: 3.938 kB / 1.337 GB, free: 6.586 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.3377, allocations: 481.2 kB / 1.338 GB, free: 6.113 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/0.3408, allocations: 2.826 MB / 1.341 GB, free: 3.195 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.3412, allocations: 0.7712 MB / 1.341 GB, free: 2.398 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001136/0.3413, allocations: 58.23 kB / 1.341 GB, free: 2.344 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3414, allocations: 71.42 kB / 1.341 GB, free: 2.273 MB / 1.029 GB Notification: Performance of SimCode: time 1.203e-06/0.3414, allocations: 4 kB / 1.341 GB, free: 2.27 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.3688, allocations: 5.15 MB / 1.346 GB, free: 13.29 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.7, allocations: 11.2 kB / 1.346 GB, free: 13.28 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.64945973001886]