Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.0008655/0.0008655, allocations: 80.52 kB / 19.96 MB, free: 4.586 MB / 18.57 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.0008642/0.0008642, allocations: 169.2 kB / 23.24 MB, free: 1.309 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.9225/0.9225, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.829/1.829, allocations: 389.6 MB / 0.6343 GB, free: 12.59 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.116e-06/3.116e-06, allocations: 0 / 1.001 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.414e-05/2.725e-05, allocations: 2.281 kB / 1.001 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002018/0.002046, allocations: 0.6997 MB / 1.001 GB, free: 12.8 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0003577/0.002403, allocations: 51.78 kB / 1.001 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.002515, allocations: 4 kB / 1.001 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.002652, allocations: 15.86 kB / 1.001 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.002795, allocations: 15.86 kB / 1.001 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 6.479e-05/0.00286, allocations: 23.91 kB / 1.001 GB, free: 12.7 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000242/0.003102, allocations: 191.5 kB / 1.002 GB, free: 12.51 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002833/0.003385, allocations: 141.3 kB / 1.002 GB, free: 12.37 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.003546, allocations: 147.7 kB / 1.002 GB, free: 12.23 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.003692, allocations: 99.77 kB / 1.002 GB, free: 12.13 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 5.236e-05/0.003744, allocations: 24 kB / 1.002 GB, free: 12.11 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.296e-05/0.003787, allocations: 28 kB / 1.002 GB, free: 12.08 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 8.573e-05/0.003873, allocations: 67.77 kB / 1.002 GB, free: 12.01 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 9.787e-05/0.003971, allocations: 79.77 kB / 1.002 GB, free: 11.93 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.004447, allocations: 382.7 kB / 1.003 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.004453, allocations: 0 / 1.003 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.523e-06/0.004454, allocations: 0 / 1.003 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 8.066e-06/0.004463, allocations: 0 / 1.003 GB, free: 11.56 MB / 0.9636 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.0007186/0.005181, allocations: 489.5 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.005234, allocations: 9.344 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.49e-05/0.005319, allocations: 62.73 kB / 1.003 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.047e-05/0.005379, allocations: 32.75 kB / 1.003 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.005806, allocations: 258.8 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.005868, allocations: 33.02 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.792e-05/0.005906, allocations: 28.31 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.00645, allocations: 336.3 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.006463, allocations: 192 / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.006495, allocations: 16.36 kB / 1.004 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.006508, allocations: 8.125 kB / 1.004 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000398/0.006906, allocations: 255.8 kB / 1.004 GB, free: 9.98 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.008147, allocations: 0.8319 MB / 1.005 GB, free: 9.102 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 9.052e-05/0.008237, allocations: 58.02 kB / 1.005 GB, free: 9.027 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.327e-05/0.00828, allocations: 33.77 kB / 1.005 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.008307, allocations: 11.92 kB / 1.005 GB, free: 8.977 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.008328, allocations: 34.5 kB / 1.005 GB, free: 8.934 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.593e-06/0.00833, allocations: 0 / 1.005 GB, free: 8.934 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0002905/0.00862, allocations: 137.3 kB / 1.005 GB, free: 8.793 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.008668, allocations: 77.11 kB / 1.005 GB, free: 8.699 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005483/0.009216, allocations: 485.4 kB / 1.006 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.009233, allocations: 25.7 kB / 1.006 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.009372, allocations: 179.8 kB / 1.006 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.003e-05/0.009382, allocations: 8.203 kB / 1.006 GB, free: 8 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.84e-05/0.00946, allocations: 53.62 kB / 1.006 GB, free: 7.941 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.009606, allocations: 342.8 kB / 1.006 GB, free: 7.598 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.72e-05/0.009703, allocations: 55.95 kB / 1.006 GB, free: 7.543 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.009811, allocations: 73.67 kB / 1.006 GB, free: 7.465 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.00995, allocations: 105.6 kB / 1.006 GB, free: 7.355 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.009952, allocations: 0 / 1.006 GB, free: 7.355 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002578/0.01021, allocations: 181.4 kB / 1.007 GB, free: 7.172 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.01023, allocations: 13.81 kB / 1.007 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.01024, allocations: 0 / 1.007 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.01026, allocations: 0 / 1.007 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.01041, allocations: 31.92 kB / 1.007 GB, free: 7.129 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.01042, allocations: 8 kB / 1.007 GB, free: 7.121 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.501e-05/0.01049, allocations: 31.73 kB / 1.007 GB, free: 7.09 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.01051, allocations: 4 kB / 1.007 GB, free: 7.086 MB / 0.9636 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.0001952/0.0107, allocations: 189.8 kB / 1.007 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.614e-05/0.01077, allocations: 27.81 kB / 1.007 GB, free: 6.863 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.01096, allocations: 172.5 kB / 1.007 GB, free: 6.684 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.118e-05/0.01102, allocations: 180.3 kB / 1.007 GB, free: 6.5 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.089e-05/0.01108, allocations: 184.2 kB / 1.007 GB, free: 6.312 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.926e-05/0.01114, allocations: 180.3 kB / 1.008 GB, free: 6.129 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003587/0.0115, allocations: 488.2 kB / 1.008 GB, free: 5.602 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.671e-05/0.01153, allocations: 109 kB / 1.008 GB, free: 5.488 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.391e-05/0.01157, allocations: 101 kB / 1.008 GB, free: 5.383 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.078e-05/0.01163, allocations: 180.2 kB / 1.008 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.0117, allocations: 184.2 kB / 1.009 GB, free: 5.012 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.126e-05/0.01176, allocations: 180.2 kB / 1.009 GB, free: 4.828 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.759e-05/0.01182, allocations: 176.3 kB / 1.009 GB, free: 4.648 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.01197, allocations: 335.6 kB / 1.009 GB, free: 4.297 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.01208, allocations: 144.8 kB / 1.009 GB, free: 4.148 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.658e-05/0.01216, allocations: 188.1 kB / 1.01 GB, free: 3.957 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.01228, allocations: 105 kB / 1.01 GB, free: 3.848 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.01235, allocations: 180.3 kB / 1.01 GB, free: 3.664 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.01239, allocations: 112.9 kB / 1.01 GB, free: 3.547 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0004049/0.0128, allocations: 363.1 kB / 1.01 GB, free: 3.191 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.1e-07/0.0128, allocations: 0 / 1.01 GB, free: 3.191 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000312/0.01311, allocations: 27.95 kB / 1.01 GB, free: 3.164 MB / 0.9636 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.0004063/0.01351, allocations: 0.8358 MB / 1.011 GB, free: 2.297 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001886/0.0137, allocations: 79.88 kB / 1.011 GB, free: 2.219 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.0137, allocations: 4 kB / 1.011 GB, free: 2.215 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 2.214e-06/0.01371, allocations: 0 / 1.011 GB, free: 2.215 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005319/0.01424, allocations: 481.1 kB / 1.012 GB, free: 1.742 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.01744, allocations: 2.821 MB / 1.014 GB, free: 14.83 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.01762, allocations: 173.7 kB / 1.015 GB, free: 14.64 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.0001117/0.01773, allocations: 54.25 kB / 1.015 GB, free: 14.59 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.01785, allocations: 80.47 kB / 1.015 GB, free: 14.51 MB / 0.9792 GB Notification: Performance of SimCode: time 1.773e-06/0.01786, allocations: 0 / 1.015 GB, free: 14.51 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0782/0.09606, allocations: 5.723 MB / 1.02 GB, free: 8.945 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.344/7.44, allocations: 9.25 kB / 1.02 GB, free: 8.938 MB / 0.9792 GB " [Timeout remaining time 292] (rm -f Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu) > Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe ; mkfifo Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu) > Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.981961128301919]