Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|truArrConSam.u|truArrConSam.uIdx.1.|truArrConSam.uIdx.2.|truArrConSam.y1.1.|truArrConSam.y1.2.|truArrConGre.y1.1.|truArrConGre.y1.2.|truArrConGre.y1.3.|truArrConGre.y1.4.",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|truArrConSam.u|truArrConSam.uIdx.1.|truArrConSam.uIdx.2.|truArrConSam.y1.1.|truArrConSam.y1.2.|truArrConGre.y1.1.|truArrConGre.y1.2.|truArrConGre.y1.3.|truArrConGre.y1.4.",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001153, 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.001209/0.001209, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.406/1.406, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.831/2.831, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.77 kB / 0.8984 GB, free: 37.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3838, allocations: 157.4 MB / 1.052 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.00234/0.3862, allocations: 0.9881 MB / 1.053 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001906/0.3881, allocations: 1.459 MB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.638e-05/0.3882, allocations: 0 / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003414/0.3886, allocations: 67.8 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.618e-05/0.3887, allocations: 47.75 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.3894, allocations: 293.4 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.3898, allocations: 387.1 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.3899, allocations: 53.64 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.3901, allocations: 135.7 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.3903, allocations: 139.5 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.287e-05/0.3904, allocations: 20 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.3905, allocations: 43.98 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.3907, allocations: 79.72 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.3908, allocations: 127.4 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004011/0.3912, allocations: 411.1 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3912, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3913, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.3913, allocations: 0 / 1.056 GB, free: 4.621 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008579/0.3921, allocations: 0.6535 MB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3922, allocations: 16.03 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.168e-05/0.3923, allocations: 24.75 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.3926, allocations: 304.8 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.3927, allocations: 16.38 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.3927, allocations: 20.38 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.393, allocations: 178.1 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3931, allocations: 192 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.3931, allocations: 11.94 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.3931, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.3933, allocations: 131.8 kB / 1.058 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009363/0.3942, allocations: 0.6328 MB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004286/0.3947, allocations: 234.5 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.3949, allocations: 166 kB / 1.059 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.3949, allocations: 0 / 1.059 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003923/0.3953, allocations: 232.5 kB / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 1.353e-06/0.3953, allocations: 0 / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.0007598/0.3961, allocations: 0.5116 MB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.3962, allocations: 130.7 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.3964, allocations: 251.9 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.084e-05/0.3965, allocations: 41.7 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.3966, allocations: 124.7 kB / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.273e-05/0.3967, allocations: 55.34 kB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.3968, allocations: 105.6 kB / 1.06 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.397, allocations: 334.8 kB / 1.06 GB, free: 228 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.3972, allocations: 163.9 kB / 1.06 GB, free: 64 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.3976, allocations: 297.6 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/0.3981, allocations: 495.3 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3981, allocations: 0 / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008259/0.399, allocations: 0.5825 MB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.3991, allocations: 139.9 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3991, allocations: 4.312 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3991, allocations: 8 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.3992, allocations: 31.92 kB / 1.062 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.3992, allocations: 3.938 kB / 1.062 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005656/0.3998, allocations: 99.64 kB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.3999, allocations: 20 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.truArrConSam.u,$PRE.truArrConGre.u,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,truArrConGre.iIdx,truArrConGre.iTru,truArrConGre.y1[4],truArrConGre.y1[3],truArrConGre.y1[2],truArrConGre.y1[1],truArrConGre.uIdx[2],truArrConGre.uIdx[1],truArrConGre.u,uTru.idx,$PRE.uTru.idx,uTru.y[1],$PRE.uTru.y[1],uIdx2.booPul.y,$PRE.uIdx2.booPul.y,uIdx1.booPul.y,$PRE.uIdx1.booPul.y,truArrConSam.iIdx,truArrConSam.iTru,truArrConSam.y1[2],truArrConSam.y1[1],truArrConSam.uIdx[2],truArrConSam.uIdx[1],truArrConSam.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 4 * 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.0002451/0.4001, allocations: 257 kB / 1.062 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-05/0.4002, allocations: 23.72 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.527e-05/0.4002, allocations: 30.48 kB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.4002, allocations: 4 kB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4002, allocations: 0 / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4003, allocations: 0 / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.4013, allocations: 0.849 MB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.4013, allocations: 0 / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.997e-05/0.4014, allocations: 19.92 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.4014, allocations: 0 / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.4014, allocations: 8 kB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.4014, allocations: 7.938 kB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4014, allocations: 0 / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006333/0.4021, allocations: 0.5336 MB / 1.064 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.4021, allocations: 104.8 kB / 1.064 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.4022, allocations: 12 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.4024, allocations: 23.86 kB / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.4025, allocations: 47.89 kB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.4026, allocations: 19.98 kB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001683/0.4027, allocations: 173.6 kB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4027, allocations: 0 / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003726/0.4031, allocations: 83.94 kB / 1.064 GB, free: 11.91 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: 27 (truArrConSam.u,truArrConGre.u,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,truArrConSam.uIdx[1],truArrConSam.uIdx[2],truArrConSam.y1[1],truArrConSam.y1[2],truArrConSam.iTru,truArrConSam.iIdx,uIdx1.booPul.y,uIdx2.booPul.y,uTru.y[1],uTru.idx,truArrConGre.uIdx[1],truArrConGre.uIdx[2],truArrConGre.y1[1],truArrConGre.y1[2],truArrConGre.y1[3],truArrConGre.y1[4],truArrConGre.iTru,truArrConGre.iIdx) * Number of discrete states: 10 (truArrConGre.y1[4],truArrConGre.y1[3],truArrConGre.y1[2],truArrConGre.y1[1],truArrConGre.iIdx,truArrConGre.iTru,truArrConSam.y1[2],truArrConSam.y1[1],truArrConSam.iIdx,truArrConSam.iTru) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0002237/0.4033, allocations: 144.5 kB / 1.064 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008274/0.4042, allocations: 0.6938 MB / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4042, allocations: 0 / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00035/0.4045, allocations: 342.6 kB / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.405, allocations: 54.52 kB / 1.065 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008719/0.4059, allocations: 0.5386 MB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.4062, allocations: 0.7443 MB / 1.067 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000114/0.4063, allocations: 37.92 kB / 1.067 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.768e-05/0.4064, allocations: 27.38 kB / 1.067 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.4064, allocations: 0 / 1.067 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of Templates: time 0.008296/0.4147, allocations: 4.616 MB / 1.071 GB, free: 4.664 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_TrueArrayConditional.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches