Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 190 kB / 16.14 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.169/1.169, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.336/2.336, allocations: 461.9 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 69.39 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2166, allocations: 157.4 MB / 1.052 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001705/0.2183, allocations: 0.78 MB / 1.053 GB, free: 7.453 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001786/0.2185, allocations: 51.78 kB / 1.053 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.528e-05/0.2186, allocations: 0 / 1.053 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.233e-05/0.2187, allocations: 11.92 kB / 1.053 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.077e-05/0.2188, allocations: 11.92 kB / 1.053 GB, free: 7.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.641e-05/0.2189, allocations: 19.98 kB / 1.053 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.219, allocations: 159.6 kB / 1.053 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002783/0.2193, allocations: 256.9 kB / 1.053 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.648e-05/0.2194, allocations: 79.66 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.51e-05/0.2195, allocations: 103.5 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.2195, allocations: 12 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.729e-05/0.2196, allocations: 16 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.442e-05/0.2196, allocations: 55.78 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.056e-05/0.2197, allocations: 111.2 kB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.2199, allocations: 338.9 kB / 1.054 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.22, allocations: 0 / 1.054 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.72e-07/0.22, allocations: 0 / 1.054 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.22, allocations: 0 / 1.054 GB, free: 6.25 MB / 0.8106 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.0005457/0.2205, allocations: 0.5538 MB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2206, allocations: 11.97 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.765e-05/0.2206, allocations: 66.67 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.2207, allocations: 28.56 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.221, allocations: 317.1 kB / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.221, allocations: 28.94 kB / 1.055 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.2211, allocations: 24.38 kB / 1.055 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/0.2215, allocations: 343 kB / 1.055 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2215, allocations: 7.938 kB / 1.055 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.2215, allocations: 11.98 kB / 1.055 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.2216, allocations: 11.94 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003261/0.2219, allocations: 255.8 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009994/0.2229, allocations: 0.9207 MB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.446e-05/0.223, allocations: 53.2 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.953e-05/0.223, allocations: 37.69 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.223, allocations: 0 / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.2231, allocations: 42.5 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.2231, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002229/0.2233, allocations: 125.4 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.2233, allocations: 81.05 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004314/0.2238, allocations: 481.4 kB / 1.057 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.2238, allocations: 25.7 kB / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.2239, allocations: 179.6 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.664e-06/0.2239, allocations: 3.906 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.156e-05/0.224, allocations: 49.95 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.795e-05/0.2241, allocations: 342.8 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.166e-05/0.2242, allocations: 59.95 kB / 1.058 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.538e-05/0.2243, allocations: 69.67 kB / 1.058 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.2244, allocations: 101.7 kB / 1.058 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2244, allocations: 3.938 kB / 1.058 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000225/0.2246, allocations: 181.2 kB / 1.058 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2246, allocations: 13.09 kB / 1.058 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.2246, allocations: 0 / 1.058 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.2247, allocations: 0 / 1.058 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.2248, allocations: 23.94 kB / 1.058 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.2248, allocations: 4 kB / 1.058 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.233e-05/0.2248, allocations: 27.67 kB / 1.058 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.2249, allocations: 4 kB / 1.058 GB, free: 1.547 MB / 0.8106 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.0001472/0.225, allocations: 197.5 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.2251, allocations: 35.56 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.2252, allocations: 168.6 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.563e-05/0.2253, allocations: 176.3 kB / 1.059 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.881e-05/0.2253, allocations: 180.2 kB / 1.059 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.043e-05/0.2254, allocations: 180.2 kB / 1.059 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.2257, allocations: 0.5244 MB / 1.06 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.66e-05/0.2257, allocations: 105 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.901e-05/0.2257, allocations: 105.1 kB / 1.06 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-05/0.2258, allocations: 188.2 kB / 1.06 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/0.2258, allocations: 180.3 kB / 1.06 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.936e-05/0.2259, allocations: 188.3 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.36e-05/0.2259, allocations: 180.2 kB / 1.061 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001186/0.2261, allocations: 335.3 kB / 1.061 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.732e-05/0.2262, allocations: 221.6 kB / 1.061 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.117e-05/0.2262, allocations: 184.2 kB / 1.061 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.25e-05/0.2263, allocations: 109 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.195e-05/0.2264, allocations: 176.3 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.2264, allocations: 104.9 kB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003318/0.2268, allocations: 359.1 kB / 1.062 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2268, allocations: 0 / 1.062 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002328/0.227, allocations: 32 kB / 1.062 GB, free: 13.46 MB / 0.8262 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.0003248/0.2273, allocations: 0.8396 MB / 1.063 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001344/0.2275, allocations: 80.03 kB / 1.063 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.614e-06/0.2275, allocations: 0 / 1.063 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.433e-06/0.2275, allocations: 0 / 1.063 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003867/0.2279, allocations: 0.5474 MB / 1.064 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.2304, allocations: 2.866 MB / 1.066 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.2307, allocations: 0.7755 MB / 1.067 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.654e-05/0.2308, allocations: 54.25 kB / 1.067 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.137e-05/0.2309, allocations: 75.41 kB / 1.067 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2309, allocations: 3.938 kB / 1.067 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.443/0.6738, allocations: 4.677 MB / 1.072 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.6741, allocations: 233.3 kB / 1.072 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/2.515, allocations: 1 kB / 1.072 GB, free: 3.309 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)