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.0007713/0.0007713, 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.000798/0.000798, 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.8897/0.8897, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.684/1.684, allocations: 377.8 MB / 0.6221 GB, free: 8.656 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 2.164e-06/2.164e-06, allocations: 0 / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.126e-05, allocations: 6.281 kB / 0.9809 GB, free: 2.605 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001393/0.001414, allocations: 0.7139 MB / 0.9816 GB, free: 1.895 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0001861/0.0016, allocations: 55.77 kB / 0.9817 GB, free: 1.84 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.51e-05/0.001665, allocations: 4 kB / 0.9817 GB, free: 1.836 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 9.624e-05/0.001761, allocations: 15.86 kB / 0.9817 GB, free: 1.82 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.001868, allocations: 7.938 kB / 0.9817 GB, free: 1.812 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 4.65e-05/0.001915, allocations: 23.97 kB / 0.9817 GB, free: 1.789 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001586/0.002073, allocations: 179.5 kB / 0.9819 GB, free: 1.613 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.002269, allocations: 149.3 kB / 0.9821 GB, free: 1.465 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 9.681e-05/0.002366, allocations: 147.7 kB / 0.9822 GB, free: 1.32 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 9.267e-05/0.002458, allocations: 103.7 kB / 0.9823 GB, free: 1.219 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.002494, allocations: 28 kB / 0.9823 GB, free: 1.191 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 2.122e-05/0.002515, allocations: 24 kB / 0.9823 GB, free: 1.168 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 4.924e-05/0.002565, allocations: 67.77 kB / 0.9824 GB, free: 1.102 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.292e-05/0.002618, allocations: 75.77 kB / 0.9825 GB, free: 1.027 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.002845, allocations: 370.8 kB / 0.9828 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.002846, allocations: 0 / 0.9828 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.293e-06/0.002848, allocations: 3.938 kB / 0.9828 GB, free: 0.6602 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.002852, allocations: 0 / 0.9828 GB, free: 0.6602 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.0004263/0.003278, allocations: 499.3 kB / 0.9833 GB, free: 144 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.003313, allocations: 8.031 kB / 0.9833 GB, free: 136 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.299e-05/0.003356, allocations: 66.72 kB / 0.9834 GB, free: 60 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.003391, allocations: 36.7 kB / 0.9834 GB, free: 24 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.003657, allocations: 242.9 kB / 0.9836 GB, free: 15.76 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.003694, allocations: 37.02 kB / 0.9837 GB, free: 15.72 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.003715, allocations: 24.38 kB / 0.9837 GB, free: 15.7 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.004034, allocations: 348.2 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.004043, allocations: 4.188 kB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.004061, allocations: 12.38 kB / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.004068, allocations: 8.125 kB / 0.9841 GB, free: 15.32 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.004303, allocations: 256.4 kB / 0.9843 GB, free: 15.07 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007493/0.005053, allocations: 0.8438 MB / 0.9851 GB, free: 14.18 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.79e-05/0.00511, allocations: 53.2 kB / 0.9852 GB, free: 14.11 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.962e-05/0.00514, allocations: 33.7 kB / 0.9852 GB, free: 14.07 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.005157, allocations: 11.98 kB / 0.9852 GB, free: 14.06 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.005175, allocations: 34.5 kB / 0.9853 GB, free: 14.02 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.005176, allocations: 0 / 0.9853 GB, free: 14.02 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0001913/0.005367, allocations: 133.3 kB / 0.9854 GB, free: 13.88 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.0054, allocations: 77.11 kB / 0.9855 GB, free: 13.79 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.005724, allocations: 485.4 kB / 0.9859 GB, free: 13.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.005734, allocations: 25.7 kB / 0.9859 GB, free: 13.27 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.005824, allocations: 187.7 kB / 0.9861 GB, free: 13.08 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 6.843e-06/0.005831, allocations: 4 kB / 0.9861 GB, free: 13.08 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.005877, allocations: 49.91 kB / 0.9862 GB, free: 13.02 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.064e-05/0.005958, allocations: 342.8 kB / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.081e-05/0.006018, allocations: 55.95 kB / 0.9866 GB, free: 12.62 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.503e-05/0.006083, allocations: 81.66 kB / 0.9866 GB, free: 12.54 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.667e-05/0.00617, allocations: 93.62 kB / 0.9867 GB, free: 12.44 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.006172, allocations: 0 / 0.9867 GB, free: 12.44 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001628/0.006335, allocations: 185.5 kB / 0.9869 GB, free: 12.25 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.00635, allocations: 11.94 kB / 0.9869 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.006354, allocations: 0 / 0.9869 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.006364, allocations: 0 / 0.9869 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.446e-05/0.006449, allocations: 27.92 kB / 0.9869 GB, free: 12.21 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.006455, allocations: 4 kB / 0.9869 GB, free: 12.21 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.219e-05/0.006497, allocations: 31.78 kB / 0.987 GB, free: 12.18 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.006508, allocations: 4 kB / 0.987 GB, free: 12.18 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.0001174/0.006625, allocations: 197.5 kB / 0.9872 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.946e-05/0.006655, allocations: 27.81 kB / 0.9872 GB, free: 11.95 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.006772, allocations: 172.5 kB / 0.9874 GB, free: 11.77 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-05/0.006813, allocations: 188.2 kB / 0.9875 GB, free: 11.57 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.595e-05/0.006859, allocations: 188.2 kB / 0.9877 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.649e-05/0.006896, allocations: 176.3 kB / 0.9879 GB, free: 11.2 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.007113, allocations: 488.2 kB / 0.9883 GB, free: 10.68 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/0.007139, allocations: 108.9 kB / 0.9885 GB, free: 10.56 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.309e-05/0.007162, allocations: 105 kB / 0.9886 GB, free: 10.45 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.981e-05/0.007201, allocations: 184.2 kB / 0.9887 GB, free: 10.27 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.938e-05/0.007241, allocations: 184.2 kB / 0.9889 GB, free: 10.08 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.594e-05/0.007277, allocations: 176.3 kB / 0.9891 GB, free: 9.898 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.624e-05/0.007313, allocations: 184.2 kB / 0.9892 GB, free: 9.711 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.007413, allocations: 331.6 kB / 0.9896 GB, free: 9.363 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.915e-05/0.007472, allocations: 140.8 kB / 0.9897 GB, free: 9.219 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.253e-05/0.007525, allocations: 184.2 kB / 0.9899 GB, free: 9.031 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.285e-05/0.007588, allocations: 116.9 kB / 0.99 GB, free: 8.91 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.007628, allocations: 180.3 kB / 0.9902 GB, free: 8.727 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.007653, allocations: 112.9 kB / 0.9903 GB, free: 8.609 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002417/0.007895, allocations: 363.1 kB / 0.9906 GB, free: 8.258 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007895, allocations: 0 / 0.9906 GB, free: 8.258 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001718/0.008067, allocations: 31.95 kB / 0.9906 GB, free: 8.227 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.000263/0.00833, allocations: 0.8359 MB / 0.9915 GB, free: 7.363 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001126/0.008442, allocations: 71.89 kB / 0.9915 GB, free: 7.293 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.008444, allocations: 0 / 0.9915 GB, free: 7.293 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.683e-06/0.008446, allocations: 8 kB / 0.9915 GB, free: 7.285 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.008729, allocations: 481.2 kB / 0.992 GB, free: 6.812 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.01054, allocations: 2.819 MB / 0.9947 GB, free: 3.906 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001002/0.01064, allocations: 161.8 kB / 0.9949 GB, free: 3.727 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.158e-05/0.0107, allocations: 58.25 kB / 0.995 GB, free: 3.672 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.789e-05/0.01078, allocations: 76.47 kB / 0.995 GB, free: 3.598 MB / 0.948 GB Notification: Performance of SimCode: time 7.81e-07/0.01078, allocations: 0 / 0.995 GB, free: 3.598 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.02713, allocations: 5.725 MB / 1.001 GB, free: 14.03 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.592/6.619, allocations: 3 kB / 1.001 GB, free: 14.03 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_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_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.csv","/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] "Error: Could not read variable idxLasTru.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTru.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! Error: Could not read variable idxLasTruAllFal.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTruAllFal.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.608668236993253]