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: "" <> 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.001053/0.001053, 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.001317/0.001318, allocations: 197 kB / 16.53 MB, free: 6.664 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.225/1.225, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.495/2.495, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 64.81 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2946, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002528/0.2972, allocations: 0.9514 MB / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00202/0.2993, allocations: 1.412 MB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.2994, allocations: 8 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003606/0.2998, allocations: 67.67 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.3, allocations: 51.62 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008995/0.3009, allocations: 329.3 kB / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005565/0.3014, allocations: 443.2 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.3016, allocations: 57.59 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.3019, allocations: 159.7 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/0.3022, allocations: 151.4 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.3023, allocations: 36 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.3025, allocations: 67.97 kB / 1.057 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.3027, allocations: 79.8 kB / 1.057 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.3029, allocations: 151.4 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004849/0.3034, allocations: 431 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3034, allocations: 0 / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3034, allocations: 0 / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.617e-05/0.3034, allocations: 0 / 1.057 GB, free: 3.898 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.000949/0.3044, allocations: 0.6496 MB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3044, allocations: 12.56 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.587e-05/0.3045, allocations: 50.73 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.3046, allocations: 32.66 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.305, allocations: 293 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.305, allocations: 24.3 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.513e-05/0.3051, allocations: 24.38 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.3054, allocations: 174.1 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3054, allocations: 3.938 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.3054, allocations: 8 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.3054, allocations: 4 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.3056, allocations: 115.9 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009418/0.3066, allocations: 0.6328 MB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.307, allocations: 238.5 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.3072, allocations: 168.8 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.3072, allocations: 0 / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003636/0.3076, allocations: 236.8 kB / 1.06 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 1.883e-06/0.3076, allocations: 0 / 1.06 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.0007562/0.3084, allocations: 0.5123 MB / 1.06 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.3085, allocations: 122.8 kB / 1.06 GB, free: 388 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002419/0.3087, allocations: 259.9 kB / 1.061 GB, free: 120 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.3088, allocations: 37.7 kB / 1.061 GB, free: 76 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.3089, allocations: 128.7 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.295e-05/0.309, allocations: 55.34 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.3091, allocations: 101.7 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3092, allocations: 334.8 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000269/0.3095, allocations: 167.9 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.3099, allocations: 298.9 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/0.3104, allocations: 491.4 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3104, allocations: 4 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008005/0.3112, allocations: 0.5824 MB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.854e-05/0.3113, allocations: 139.9 kB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3113, allocations: 4.062 kB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3113, allocations: 8.25 kB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.652e-05/0.3114, allocations: 35.92 kB / 1.063 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3114, allocations: 4 kB / 1.063 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.312, allocations: 83.69 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.3121, allocations: 31.92 kB / 1.063 GB, free: 13.45 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.0002217/0.3123, allocations: 247.8 kB / 1.063 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.646e-05/0.3124, allocations: 27.72 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.389e-05/0.3124, allocations: 22.55 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3124, allocations: 4 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3124, allocations: 0 / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3124, allocations: 0 / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.3135, allocations: 0.8568 MB / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3135, allocations: 0 / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.3135, allocations: 12 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3135, allocations: 0 / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.3136, allocations: 19.92 kB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.3136, allocations: 3.984 kB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3136, allocations: 0 / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005684/0.3142, allocations: 0.5336 MB / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.3142, allocations: 104.8 kB / 1.065 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.679e-05/0.3143, allocations: 15.94 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.3144, allocations: 19.92 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.3146, allocations: 43.95 kB / 1.065 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.3146, allocations: 16 kB / 1.065 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001536/0.3148, allocations: 173.6 kB / 1.065 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.886e-06/0.3148, allocations: 0 / 1.065 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003905/0.3152, allocations: 91.86 kB / 1.065 GB, free: 11.14 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.0009879/0.3162, allocations: 1.124 MB / 1.066 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000822/0.317, allocations: 0.7098 MB / 1.067 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.317, allocations: 4.625 kB / 1.067 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003112/0.3173, allocations: 346.6 kB / 1.067 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.3178, allocations: 48.41 kB / 1.067 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003924/0.3217, allocations: 3.429 MB / 1.071 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.322, allocations: 0.7515 MB / 1.071 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.3221, allocations: 37.92 kB / 1.071 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.732e-05/0.3222, allocations: 67.41 kB / 1.071 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.3222, allocations: 4 kB / 1.071 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3547/0.6769, allocations: 6.989 MB / 1.078 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.885, allocations: 21.92 kB / 1.078 GB, free: 13.51 MB / 0.8419 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_TrueArrayConditional_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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