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.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.001149/0.001149, allocations: 80.94 kB / 19.94 MB, free: 4.539 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.001459/0.001459, allocations: 173 kB / 23.36 MB, free: 1.125 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 1.05/1.05, allocations: 177.1 MB / 203.8 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.563/2.563, allocations: 438.8 MB / 0.6826 GB, free: 13.63 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.265e-05/2.46e-05, allocations: 4.562 kB / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001676/0.001701, allocations: 0.9079 MB / 0.8395 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0002879/0.001989, allocations: 131.4 kB / 0.8396 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.571e-05/0.002064, allocations: 4 kB / 0.8396 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.002183, allocations: 27.72 kB / 0.8397 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.002291, allocations: 15.86 kB / 0.8397 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001231/0.002415, allocations: 47.95 kB / 0.8397 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.002638, allocations: 287.3 kB / 0.84 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.002937, allocations: 258.5 kB / 0.8402 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.003162, allocations: 255.6 kB / 0.8405 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.00331, allocations: 147.6 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.614e-05/0.003356, allocations: 44 kB / 0.8407 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 3.28e-05/0.003389, allocations: 40 kB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 8.422e-05/0.003473, allocations: 115.7 kB / 0.8408 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.003551, allocations: 115.7 kB / 0.8409 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.003849, allocations: 338.7 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.003851, allocations: 0 / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.82e-07/0.003852, allocations: 4 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.003857, allocations: 3.938 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0004833/0.004341, allocations: 0.5468 MB / 0.8418 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.004373, allocations: 8.031 kB / 0.8418 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.243e-05/0.004445, allocations: 64.89 kB / 0.8419 GB, free: 10.85 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.004746, allocations: 249 kB / 0.8421 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.004788, allocations: 41.36 kB / 0.8421 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.004826, allocations: 44.38 kB / 0.8422 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003617/0.005188, allocations: 334.1 kB / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.0052, allocations: 4.188 kB / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.005225, allocations: 20.36 kB / 0.8425 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.005234, allocations: 12.38 kB / 0.8425 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.005393, allocations: 136.5 kB / 0.8427 GB, free: 9.98 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008461/0.006239, allocations: 0.7701 MB / 0.8434 GB, free: 9.184 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.766e-05/0.006317, allocations: 65.08 kB / 0.8435 GB, free: 9.102 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.154e-05/0.006349, allocations: 29.7 kB / 0.8435 GB, free: 9.066 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.006366, allocations: 0 / 0.8435 GB, free: 9.066 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.00639, allocations: 46.5 kB / 0.8435 GB, free: 9.012 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.122e-06/0.006391, allocations: 0 / 0.8435 GB, free: 9.012 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0002005/0.006591, allocations: 118.3 kB / 0.8437 GB, free: 8.891 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.006698, allocations: 81.09 kB / 0.8437 GB, free: 8.793 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.006871, allocations: 276.6 kB / 0.844 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.006884, allocations: 25.7 kB / 0.844 GB, free: 8.48 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.006967, allocations: 208.2 kB / 0.8442 GB, free: 8.273 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.007, allocations: 55.52 kB / 0.8443 GB, free: 8.219 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.926e-05/0.007079, allocations: 89.78 kB / 0.8444 GB, free: 8.121 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.794e-05/0.007157, allocations: 330.8 kB / 0.8447 GB, free: 7.789 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.986e-05/0.007197, allocations: 28.45 kB / 0.8447 GB, free: 7.762 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.874e-05/0.007246, allocations: 54.59 kB / 0.8448 GB, free: 7.703 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.789e-05/0.007334, allocations: 77.39 kB / 0.8448 GB, free: 7.625 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.007336, allocations: 0 / 0.8448 GB, free: 7.625 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001342/0.00747, allocations: 125.6 kB / 0.8449 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.007484, allocations: 7.938 kB / 0.845 GB, free: 7.488 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.007489, allocations: 4 kB / 0.845 GB, free: 7.484 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.007501, allocations: 0 / 0.845 GB, free: 7.484 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.007638, allocations: 51.91 kB / 0.845 GB, free: 7.434 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.00764, allocations: 0 / 0.845 GB, free: 7.434 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.965e-05/0.00768, allocations: 35.72 kB / 0.845 GB, free: 7.398 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.007694, allocations: 7.984 kB / 0.845 GB, free: 7.391 MB / 0.8073 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 (idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.y,idxLasTru.booToInt[6].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[1].y,idxLasTru.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001032/0.007798, allocations: 140.6 kB / 0.8452 GB, free: 7.242 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.072e-05/0.007838, allocations: 23.92 kB / 0.8452 GB, free: 7.219 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.007992, allocations: 115.3 kB / 0.8453 GB, free: 7.102 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.007994, allocations: 4 kB / 0.8453 GB, free: 7.098 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.007996, allocations: 0 / 0.8453 GB, free: 7.098 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.007999, allocations: 4 kB / 0.8453 GB, free: 7.094 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000519/0.008518, allocations: 0.6429 MB / 0.846 GB, free: 6.375 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.008522, allocations: 4.5 kB / 0.846 GB, free: 6.371 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.876e-05/0.008591, allocations: 31.97 kB / 0.846 GB, free: 6.34 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.008595, allocations: 12 kB / 0.846 GB, free: 6.328 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.008606, allocations: 4 kB / 0.846 GB, free: 6.324 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.008612, allocations: 15.86 kB / 0.846 GB, free: 6.309 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.008615, allocations: 4 kB / 0.846 GB, free: 6.305 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.008769, allocations: 217.8 kB / 0.8462 GB, free: 6.027 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.051e-05/0.00879, allocations: 23.84 kB / 0.8462 GB, free: 6.004 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.008809, allocations: 15.98 kB / 0.8463 GB, free: 5.988 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.475e-05/0.008854, allocations: 19.88 kB / 0.8463 GB, free: 5.969 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/0.008903, allocations: 23.97 kB / 0.8463 GB, free: 5.945 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.008914, allocations: 12 kB / 0.8463 GB, free: 5.934 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.435e-05/0.008969, allocations: 70.78 kB / 0.8464 GB, free: 5.859 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.008969, allocations: 4 kB / 0.8464 GB, free: 5.855 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001756/0.009144, allocations: 75.61 kB / 0.8465 GB, free: 5.781 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 2 (idxLasTru.y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 9.049e-05/0.009235, allocations: 92.28 kB / 0.8465 GB, free: 5.68 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001341/0.009369, allocations: 111.3 kB / 0.8467 GB, free: 5.574 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.009374, allocations: 4 kB / 0.8467 GB, free: 5.57 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.552e-05/0.00943, allocations: 52.7 kB / 0.8467 GB, free: 5.516 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.009603, allocations: 37.8 kB / 0.8467 GB, free: 5.48 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007084/0.01031, allocations: 0.6201 MB / 0.8474 GB, free: 4.789 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.468e-05/0.01038, allocations: 112.1 kB / 0.8475 GB, free: 4.66 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.897e-05/0.01044, allocations: 26.28 kB / 0.8475 GB, free: 4.637 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.291e-05/0.01053, allocations: 87.36 kB / 0.8476 GB, free: 4.551 MB / 0.8073 GB Notification: Performance of SimCode: time 1.182e-06/0.01053, allocations: 3.938 kB / 0.8476 GB, free: 4.547 MB / 0.8073 GB Notification: Performance of Templates: time 0.004247/0.01478, allocations: 2.088 MB / 0.8496 GB, free: 2.5 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.482893410138786]