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.0007576/0.0007576, 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.0007539/0.0007539, 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.8644/0.8644, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.672/1.672, allocations: 377.8 MB / 0.6221 GB, free: 8.68 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.LastTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.107e-05/1.29e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.609 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001156/0.001169, allocations: 0.7101 MB / 0.9816 GB, free: 1.902 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0001753/0.001345, allocations: 43.84 kB / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.193e-05/0.001407, allocations: 11.88 kB / 0.9817 GB, free: 1.848 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.001508, allocations: 7.922 kB / 0.9817 GB, free: 1.84 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.001616, allocations: 11.94 kB / 0.9817 GB, free: 1.828 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 4.499e-05/0.001661, allocations: 19.97 kB / 0.9817 GB, free: 1.809 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.001945, allocations: 179.5 kB / 0.9819 GB, free: 1.633 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.002139, allocations: 149.3 kB / 0.982 GB, free: 1.484 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 9.242e-05/0.002231, allocations: 147.7 kB / 0.9822 GB, free: 1.34 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 8.791e-05/0.002319, allocations: 99.78 kB / 0.9823 GB, free: 1.242 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/0.002355, allocations: 28 kB / 0.9823 GB, free: 1.215 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 2.18e-05/0.002376, allocations: 24 kB / 0.9823 GB, free: 1.191 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 5.559e-05/0.002432, allocations: 75.75 kB / 0.9824 GB, free: 1.117 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.253e-05/0.002485, allocations: 71.77 kB / 0.9825 GB, free: 1.047 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.002718, allocations: 378.7 kB / 0.9828 GB, free: 0.6758 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.00272, allocations: 4 kB / 0.9828 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of FrontEnd: time 9.32e-07/0.002721, allocations: 0 / 0.9828 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.002726, allocations: 0 / 0.9828 GB, free: 0.6719 MB / 0.9323 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.0004104/0.003136, allocations: 485.5 kB / 0.9833 GB, free: 168 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.003174, allocations: 12.03 kB / 0.9833 GB, free: 156 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.533e-05/0.003219, allocations: 62.72 kB / 0.9834 GB, free: 84 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.003254, allocations: 40.7 kB / 0.9834 GB, free: 44 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.003591, allocations: 250.9 kB / 0.9836 GB, free: 15.77 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.743e-05/0.003628, allocations: 37.02 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.00365, allocations: 24.38 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.00398, allocations: 344.2 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.003989, allocations: 4.125 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.004004, allocations: 8.375 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.004013, allocations: 12.12 kB / 0.9841 GB, free: 15.34 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002489/0.004262, allocations: 256.3 kB / 0.9843 GB, free: 15.09 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000764/0.005026, allocations: 0.84 MB / 0.9851 GB, free: 14.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.986e-05/0.005086, allocations: 57.14 kB / 0.9852 GB, free: 14.12 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.217e-05/0.005118, allocations: 37.75 kB / 0.9852 GB, free: 14.08 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.005135, allocations: 3.938 kB / 0.9852 GB, free: 14.08 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.005152, allocations: 34.56 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.005153, allocations: 0 / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0001998/0.005353, allocations: 129.3 kB / 0.9854 GB, free: 13.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.005387, allocations: 85.11 kB / 0.9855 GB, free: 13.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.005722, allocations: 477.7 kB / 0.9859 GB, free: 13.32 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.005732, allocations: 29.7 kB / 0.9859 GB, free: 13.29 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.354e-05/0.005825, allocations: 195.7 kB / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 5.751e-06/0.005831, allocations: 0 / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.583e-05/0.005877, allocations: 49.66 kB / 0.9862 GB, free: 13.04 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.587e-05/0.005973, allocations: 338.8 kB / 0.9865 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.856e-05/0.006031, allocations: 55.95 kB / 0.9865 GB, free: 12.64 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.764e-05/0.006099, allocations: 85.59 kB / 0.9866 GB, free: 12.55 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.593e-05/0.006185, allocations: 93.69 kB / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.006187, allocations: 0 / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001647/0.006351, allocations: 189.3 kB / 0.9869 GB, free: 12.27 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.006364, allocations: 7.938 kB / 0.9869 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.006369, allocations: 4 kB / 0.9869 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.006382, allocations: 7.984 kB / 0.9869 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.483e-05/0.006467, allocations: 24 kB / 0.9869 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.006472, allocations: 0 / 0.9869 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.478e-05/0.006516, allocations: 23.78 kB / 0.987 GB, free: 12.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.006528, allocations: 8 kB / 0.987 GB, free: 12.19 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: 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.0001243/0.006653, allocations: 201.4 kB / 0.9872 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.006685, allocations: 31.81 kB / 0.9872 GB, free: 11.95 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.006798, allocations: 168.5 kB / 0.9874 GB, free: 11.78 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.217e-05/0.006841, allocations: 192.2 kB / 0.9875 GB, free: 11.58 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.719e-05/0.006878, allocations: 176.3 kB / 0.9877 GB, free: 11.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.64e-05/0.006914, allocations: 180.2 kB / 0.9879 GB, free: 11.22 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.007123, allocations: 488.2 kB / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/0.007145, allocations: 105 kB / 0.9884 GB, free: 10.58 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.38e-05/0.007168, allocations: 108.9 kB / 0.9885 GB, free: 10.47 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.662e-05/0.007205, allocations: 180.2 kB / 0.9887 GB, free: 10.29 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001713/0.007376, allocations: 184.1 kB / 0.9889 GB, free: 10.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.544e-05/0.007412, allocations: 180.3 kB / 0.9891 GB, free: 9.914 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.444e-05/0.007446, allocations: 184.2 kB / 0.9892 GB, free: 9.727 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.885e-05/0.007545, allocations: 335.6 kB / 0.9896 GB, free: 9.375 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.687e-05/0.007602, allocations: 140.7 kB / 0.9897 GB, free: 9.23 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.337e-05/0.007655, allocations: 192.2 kB / 0.9899 GB, free: 9.035 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.9e-05/0.007714, allocations: 101 kB / 0.99 GB, free: 8.93 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.007758, allocations: 188.2 kB / 0.9902 GB, free: 8.738 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.007779, allocations: 101 kB / 0.9903 GB, free: 8.633 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002402/0.00802, allocations: 367 kB / 0.9906 GB, free: 8.277 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.00802, allocations: 0 / 0.9906 GB, free: 8.277 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001784/0.008198, allocations: 31.95 kB / 0.9906 GB, free: 8.246 MB / 0.948 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.0002643/0.008462, allocations: 0.8503 MB / 0.9915 GB, free: 7.371 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001146/0.008577, allocations: 71.89 kB / 0.9915 GB, free: 7.301 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.008579, allocations: 0 / 0.9915 GB, free: 7.301 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.41e-07/0.00858, allocations: 4 kB / 0.9915 GB, free: 7.297 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.008868, allocations: 477.2 kB / 0.992 GB, free: 6.828 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.01069, allocations: 2.82 MB / 0.9947 GB, free: 3.918 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.733e-05/0.01079, allocations: 165.8 kB / 0.9949 GB, free: 3.734 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.983e-05/0.01085, allocations: 54.25 kB / 0.995 GB, free: 3.684 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.579e-05/0.01093, allocations: 76.47 kB / 0.995 GB, free: 3.609 MB / 0.948 GB Notification: Performance of SimCode: time 4.1e-07/0.01093, allocations: 0 / 0.995 GB, free: 3.609 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.02713, allocations: 5.716 MB / 1.001 GB, free: 14.05 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.604/6.631, allocations: 17.06 kB / 1.001 GB, free: 14.04 MB / 0.9636 GB " [Timeout remaining time 293] (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/jenkins/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: 10.444517277181149]