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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: 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.001682/0.001682, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002205/0.002205, allocations: 195.4 kB / 16.53 MB, free: 6.699 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.44/1.44, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.775/2.775, allocations: 472.6 MB / 0.7451 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001294, allocations: 62.53 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3833, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002319/0.3857, allocations: 0.9377 MB / 1.069 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001834/0.3876, allocations: 1.404 MB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9e-05/0.3877, allocations: 7.938 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.3879, allocations: 67.67 kB / 1.071 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.13e-05/0.388, allocations: 51.69 kB / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008385/0.3889, allocations: 333.6 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004197/0.3893, allocations: 451.2 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.3895, allocations: 49.66 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.3896, allocations: 163.7 kB / 1.072 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.3899, allocations: 151.4 kB / 1.072 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.802e-05/0.3899, allocations: 36 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.3901, allocations: 59.98 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.3902, allocations: 79.78 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.3904, allocations: 151.3 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004468/0.3908, allocations: 435.1 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3909, allocations: 0 / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.143e-06/0.3909, allocations: 0 / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.361e-06/0.3909, allocations: 4 kB / 1.072 GB, free: 6.082 MB / 0.8262 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.0008409/0.3917, allocations: 0.6496 MB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.3918, allocations: 8.031 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.396e-05/0.3919, allocations: 32.66 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.3923, allocations: 300.9 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.3923, allocations: 16.38 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.954e-05/0.3924, allocations: 20.38 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004489/0.3929, allocations: 178.8 kB / 1.074 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3929, allocations: 192 / 1.074 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.393, allocations: 19.92 kB / 1.074 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.393, allocations: 0 / 1.074 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.3933, allocations: 123.9 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.3945, allocations: 0.625 MB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004282/0.395, allocations: 246.4 kB / 1.075 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.3952, allocations: 160.9 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.3952, allocations: 4 kB / 1.075 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003134/0.3955, allocations: 235.8 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/0.3955, allocations: 0 / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.0007309/0.3963, allocations: 0.5096 MB / 1.075 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.076e-05/0.3964, allocations: 122.8 kB / 1.076 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.3966, allocations: 252 kB / 1.076 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/0.3967, allocations: 37.7 kB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.935e-05/0.3968, allocations: 128.7 kB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.054e-05/0.3968, allocations: 63.19 kB / 1.076 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.397, allocations: 101.6 kB / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.3971, allocations: 342.8 kB / 1.076 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/0.3975, allocations: 160.1 kB / 1.077 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003639/0.3978, allocations: 304.7 kB / 1.077 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000463/0.3983, allocations: 0.4903 MB / 1.077 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3983, allocations: 0 / 1.077 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007839/0.3991, allocations: 0.5875 MB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.922e-05/0.3992, allocations: 142.8 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3992, allocations: 4 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.3993, allocations: 4 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.3994, allocations: 23.94 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3994, allocations: 7.984 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006389/0.4, allocations: 83.89 kB / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.093e-05/0.4001, allocations: 27.97 kB / 1.078 GB, free: 15.69 MB / 0.8419 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.0002286/0.4003, allocations: 255.6 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.229e-05/0.4004, allocations: 23.72 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.656e-05/0.4004, allocations: 30.53 kB / 1.079 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.4004, allocations: 0 / 1.079 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.4004, allocations: 4 kB / 1.079 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.4005, allocations: 4 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.4015, allocations: 0.849 MB / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4015, allocations: 0 / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-05/0.4015, allocations: 11.98 kB / 1.079 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.4016, allocations: 4 kB / 1.079 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.4016, allocations: 8 kB / 1.079 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.4016, allocations: 7.875 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4016, allocations: 4 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006557/0.4023, allocations: 0.5337 MB / 1.08 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.4023, allocations: 96.81 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.4024, allocations: 12 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.4025, allocations: 19.92 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.4027, allocations: 51.89 kB / 1.08 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.4027, allocations: 19.94 kB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001539/0.4029, allocations: 185.6 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4029, allocations: 0 / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003755/0.4032, allocations: 83.94 kB / 1.08 GB, free: 13.37 MB / 0.8419 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.0002042/0.4035, allocations: 134 kB / 1.08 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008923/0.4044, allocations: 0.7165 MB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4044, allocations: 4.188 kB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.4047, allocations: 346.6 kB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.4051, allocations: 49.34 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007988/0.406, allocations: 0.5054 MB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.4062, allocations: 0.7402 MB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001073/0.4064, allocations: 41.91 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.083e-05/0.4064, allocations: 23.44 kB / 1.083 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of SimCode: time 5.91e-07/0.4064, allocations: 0 / 1.083 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of Templates: time 0.008455/0.4149, allocations: 4.85 MB / 1.088 GB, free: 5.902 MB / 0.8419 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