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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_TrueArrayConditional",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_TrueArrayConditional",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.00551/0.00551, allocations: 95.44 kB / 15.73 MB, free: 6.051 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.001537/0.001537, allocations: 199.6 kB / 16.68 MB, free: 5.973 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.918/2.918, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.88 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2851, allocations: 162.2 MB / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002114/0.2873, allocations: 0.9371 MB / 1.242 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001801/0.2891, allocations: 1.404 MB / 1.244 GB, free: 7.863 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.866e-05/0.2892, allocations: 7.938 kB / 1.244 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002904/0.2895, allocations: 67.66 kB / 1.244 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.128e-05/0.2896, allocations: 55.69 kB / 1.244 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007933/0.2904, allocations: 317.6 kB / 1.244 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000508/0.2909, allocations: 451.3 kB / 1.245 GB, free: 6.988 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.291, allocations: 69.62 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.2912, allocations: 167.6 kB / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002716/0.2915, allocations: 159.4 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.617e-05/0.2916, allocations: 36 kB / 1.245 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.2917, allocations: 71.95 kB / 1.245 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.2919, allocations: 87.72 kB / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.2921, allocations: 147.4 kB / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004836/0.2926, allocations: 434.6 kB / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2926, allocations: 0 / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2926, allocations: 0 / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.2926, allocations: 0 / 1.246 GB, free: 5.84 MB / 0.9981 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.0008982/0.2935, allocations: 0.6649 MB / 1.246 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2936, allocations: 12.03 kB / 1.246 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.668e-05/0.2936, allocations: 46.73 kB / 1.246 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.815e-05/0.2937, allocations: 36.8 kB / 1.246 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.2941, allocations: 304.8 kB / 1.247 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.2942, allocations: 20.36 kB / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.894e-05/0.2943, allocations: 24.38 kB / 1.247 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.2946, allocations: 182 kB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2946, allocations: 3.938 kB / 1.247 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.2946, allocations: 8 kB / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2946, allocations: 0 / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.2948, allocations: 123.9 kB / 1.247 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009676/0.2958, allocations: 0.6251 MB / 1.248 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004376/0.2963, allocations: 238.5 kB / 1.248 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.2965, allocations: 156.9 kB / 1.248 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.2965, allocations: 4 kB / 1.248 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003575/0.2969, allocations: 237.8 kB / 1.248 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.2969, allocations: 0 / 1.248 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.000827/0.2977, allocations: 0.5217 MB / 1.249 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.146e-05/0.2978, allocations: 122.8 kB / 1.249 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/0.2981, allocations: 249.4 kB / 1.249 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.368e-05/0.2982, allocations: 37.7 kB / 1.249 GB, free: 1.996 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.2983, allocations: 132.7 kB / 1.249 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.963e-05/0.2984, allocations: 59.58 kB / 1.249 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.2985, allocations: 97.66 kB / 1.249 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2987, allocations: 338.8 kB / 1.25 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.299, allocations: 163.9 kB / 1.25 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004324/0.2995, allocations: 298.4 kB / 1.25 GB, free: 0.8594 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005638/0.3, allocations: 491.4 kB / 1.251 GB, free: 316 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3, allocations: 0 / 1.251 GB, free: 316 kB / 0.9981 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.4724/0.7724, allocations: 0.5819 MB / 1.251 GB, free: 15 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.859e-05/0.7725, allocations: 143.8 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.7726, allocations: 3.125 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.7726, allocations: 3.219 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.7727, allocations: 24.73 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.7727, allocations: 7.141 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005921/0.7733, allocations: 82.55 kB / 1.252 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.7734, allocations: 26.98 kB / 1.252 GB, free: 14.88 MB / 0.9981 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.000219/0.7736, allocations: 244.4 kB / 1.252 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.608e-05/0.7737, allocations: 28.22 kB / 1.252 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.395e-05/0.7737, allocations: 26.05 kB / 1.252 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.7737, allocations: 2.094 kB / 1.252 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.7737, allocations: 3.188 kB / 1.252 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.7738, allocations: 0.6562 kB / 1.252 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.7748, allocations: 0.8575 MB / 1.253 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.7748, allocations: 0 / 1.253 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.7748, allocations: 14.36 kB / 1.253 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.7748, allocations: 0.6875 kB / 1.253 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.7749, allocations: 12.09 kB / 1.253 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.7749, allocations: 6.922 kB / 1.253 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7749, allocations: 3.844 kB / 1.253 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005678/0.7755, allocations: 0.5388 MB / 1.253 GB, free: 14.13 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.792e-05/0.7755, allocations: 106.5 kB / 1.253 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.401e-05/0.7756, allocations: 15.22 kB / 1.253 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.7757, allocations: 18.64 kB / 1.253 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.7759, allocations: 47.61 kB / 1.253 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.7759, allocations: 12.48 kB / 1.253 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001425/0.776, allocations: 176.6 kB / 1.254 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.72e-07/0.776, allocations: 0 / 1.254 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003864/0.7764, allocations: 86.05 kB / 1.254 GB, free: 13.95 MB / 0.9981 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.000835/0.7773, allocations: 1.13 MB / 1.255 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007743/0.7781, allocations: 0.6894 MB / 1.255 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7781, allocations: 0 / 1.255 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.7784, allocations: 338.9 kB / 1.256 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.7788, allocations: 60.11 kB / 1.256 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003686/0.7825, allocations: 3.448 MB / 1.259 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.7827, allocations: 0.7436 MB / 1.26 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001052/0.7828, allocations: 52.98 kB / 1.26 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.645e-05/0.7829, allocations: 66.05 kB / 1.26 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.7829, allocations: 3.5 kB / 1.26 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.8111, allocations: 7.032 MB / 1.267 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.742, allocations: 17.23 kB / 1.267 GB, free: 9.078 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_TrueArrayConditional.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_TrueArrayConditional.csv","/var/lib/jenkins1/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