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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006139/0.00614, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001354/0.001354, allocations: 194.3 kB / 16.67 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.767/2.767, allocations: 469.4 MB / 0.7421 GB, free: 7.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002133, allocations: 72.11 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3038, allocations: 159.1 MB / 1.22 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002203/0.306, allocations: 0.935 MB / 1.221 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001942/0.308, allocations: 1.416 MB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.3081, allocations: 8 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003592/0.3085, allocations: 63.69 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.3086, allocations: 59.67 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009016/0.3096, allocations: 331.5 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000538/0.3101, allocations: 455.3 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.3103, allocations: 53.61 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002362/0.3105, allocations: 171.6 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003304/0.3108, allocations: 163.5 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.927e-05/0.3109, allocations: 36 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.3111, allocations: 63.91 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.3112, allocations: 87.73 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.3114, allocations: 147.4 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.3119, allocations: 442.5 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3119, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.282e-06/0.312, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.116e-05/0.312, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 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.0009747/0.313, allocations: 0.6572 MB / 1.225 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.313, allocations: 8.031 kB / 1.225 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.322e-05/0.3131, allocations: 46.73 kB / 1.225 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.3132, allocations: 32.8 kB / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.3137, allocations: 312.9 kB / 1.225 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.3137, allocations: 12.38 kB / 1.225 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.561e-05/0.3138, allocations: 28.36 kB / 1.225 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.3141, allocations: 186 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3141, allocations: 3.938 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.3141, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.3141, allocations: 4 kB / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.3143, allocations: 125.8 kB / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.3154, allocations: 0.629 MB / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.3158, allocations: 230.5 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.316, allocations: 162.5 kB / 1.226 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.316, allocations: 0 / 1.226 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003353/0.3163, allocations: 239.8 kB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=27): time 2.094e-06/0.3164, allocations: 0 / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of matching and sorting (n=27): time 0.0007597/0.3171, allocations: 0.5124 MB / 1.227 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.3172, allocations: 118.8 kB / 1.227 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.3175, allocations: 252 kB / 1.227 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.8e-05/0.3175, allocations: 37.7 kB / 1.227 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.3176, allocations: 136.7 kB / 1.228 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.3177, allocations: 59.55 kB / 1.228 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.3179, allocations: 105.6 kB / 1.228 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.318, allocations: 338.8 kB / 1.228 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.3183, allocations: 163.9 kB / 1.228 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.3187, allocations: 297.5 kB / 1.229 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004772/0.3192, allocations: 487.4 kB / 1.229 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3192, allocations: 0 / 1.229 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008414/0.32, allocations: 0.5897 MB / 1.23 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.218e-05/0.3201, allocations: 142.8 kB / 1.23 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.3201, allocations: 8 kB / 1.23 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3202, allocations: 4 kB / 1.23 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.3203, allocations: 27.92 kB / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.3203, allocations: 4 kB / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000572/0.3209, allocations: 88.06 kB / 1.23 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.3209, allocations: 31.92 kB / 1.23 GB, free: 3.828 MB / 0.9825 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.0002315/0.3212, allocations: 240 kB / 1.23 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.3212, allocations: 31.86 kB / 1.23 GB, free: 3.543 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.33e-05/0.3213, allocations: 22.55 kB / 1.23 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.3213, allocations: 7.984 kB / 1.23 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3213, allocations: 0 / 1.23 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3213, allocations: 0 / 1.23 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.3224, allocations: 0.857 MB / 1.231 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3224, allocations: 0 / 1.231 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.307e-05/0.3224, allocations: 16 kB / 1.231 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3225, allocations: 0 / 1.231 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.3225, allocations: 11.92 kB / 1.231 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.3225, allocations: 8 kB / 1.231 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3225, allocations: 3.938 kB / 1.231 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006193/0.3231, allocations: 0.5343 MB / 1.232 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.199e-05/0.3232, allocations: 108.9 kB / 1.232 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.3233, allocations: 15.94 kB / 1.232 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.3235, allocations: 11.98 kB / 1.232 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3236, allocations: 47.95 kB / 1.232 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.3236, allocations: 12 kB / 1.232 GB, free: 1.773 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001628/0.3238, allocations: 181.6 kB / 1.232 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3238, allocations: 0 / 1.232 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004002/0.3242, allocations: 79.98 kB / 1.232 GB, free: 1.52 MB / 0.9825 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.0009787/0.3252, allocations: 1.128 MB / 1.233 GB, free: 360 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008193/0.326, allocations: 0.6926 MB / 1.234 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.326, allocations: 0 / 1.234 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003169/0.3263, allocations: 340.5 kB / 1.234 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004345/0.3268, allocations: 66.97 kB / 1.234 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004017/0.3308, allocations: 3.467 MB / 1.238 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.3311, allocations: 0.744 MB / 1.238 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001106/0.3312, allocations: 45.92 kB / 1.238 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.3313, allocations: 67.41 kB / 1.238 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/0.3313, allocations: 0 / 1.238 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.3559, allocations: 7.038 MB / 1.245 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.685, allocations: 10.3 kB / 1.245 GB, free: 3.84 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 50 --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