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.001771/0.00177, allocations: 108 kB / 15.6 MB, free: 132 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.001974/0.001974, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 469.4 MB / 0.742 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 65.48 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2527, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002367/0.2551, allocations: 0.9457 MB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001873/0.257, allocations: 1.408 MB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2571, allocations: 4 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003048/0.2574, allocations: 67.66 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.2576, allocations: 55.69 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008337/0.2584, allocations: 324.2 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004927/0.2589, allocations: 447.3 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.2591, allocations: 53.66 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.2593, allocations: 171.6 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002643/0.2596, allocations: 143.5 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.121e-05/0.2597, allocations: 36 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001603/0.2598, allocations: 67.92 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.26, allocations: 83.78 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.2602, allocations: 147.4 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004415/0.2606, allocations: 419.1 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2606, allocations: 4 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2606, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.2606, allocations: 0 / 1.068 GB, free: 10.15 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.0008731/0.2615, allocations: 0.6574 MB / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.2616, allocations: 8.031 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.25e-05/0.2616, allocations: 46.73 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.409e-05/0.2617, allocations: 36.59 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003712/0.2621, allocations: 296.9 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.2621, allocations: 16.38 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.415e-05/0.2622, allocations: 24.36 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.2625, allocations: 185.4 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2625, allocations: 3.938 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.2625, allocations: 11.98 kB / 1.069 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2626, allocations: 0 / 1.069 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.2628, allocations: 115.9 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009298/0.2637, allocations: 0.6367 MB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004139/0.2641, allocations: 238.5 kB / 1.07 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.2643, allocations: 156.9 kB / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.2644, allocations: 7.938 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003674/0.2647, allocations: 239.8 kB / 1.07 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 1.774e-06/0.2647, allocations: 0 / 1.07 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.0007767/0.2655, allocations: 0.5155 MB / 1.071 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.2656, allocations: 122.8 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.2658, allocations: 247.9 kB / 1.071 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/0.2659, allocations: 45.69 kB / 1.071 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.266, allocations: 132.7 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.952e-05/0.2661, allocations: 55.34 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.2663, allocations: 97.66 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2664, allocations: 338.8 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.2667, allocations: 167.9 kB / 1.072 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.267, allocations: 297.9 kB / 1.072 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004951/0.2675, allocations: 492 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2676, allocations: 0 / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008345/0.2684, allocations: 0.5895 MB / 1.073 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.249e-05/0.2685, allocations: 138.8 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.2685, allocations: 4 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.2685, allocations: 4 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.736e-05/0.2686, allocations: 23.98 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.2687, allocations: 11.88 kB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006148/0.2693, allocations: 95.98 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-05/0.2693, allocations: 23.92 kB / 1.074 GB, free: 3.691 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.0002284/0.2696, allocations: 248.3 kB / 1.074 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.328e-05/0.2696, allocations: 27.72 kB / 1.074 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.401e-05/0.2697, allocations: 22.56 kB / 1.074 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2697, allocations: 0 / 1.074 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.2697, allocations: 7.984 kB / 1.074 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2697, allocations: 0 / 1.074 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.2707, allocations: 0.849 MB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.2708, allocations: 0 / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.472e-05/0.2708, allocations: 8 kB / 1.075 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.2708, allocations: 8 kB / 1.075 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.2708, allocations: 15.92 kB / 1.075 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.2709, allocations: 0 / 1.075 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2709, allocations: 0 / 1.075 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005936/0.2715, allocations: 0.5426 MB / 1.075 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.432e-05/0.2715, allocations: 92.83 kB / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.2716, allocations: 19.92 kB / 1.076 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.2718, allocations: 19.98 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.2719, allocations: 51.89 kB / 1.076 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.2719, allocations: 16 kB / 1.076 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000152/0.2721, allocations: 173.6 kB / 1.076 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2721, allocations: 0 / 1.076 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003864/0.2725, allocations: 83.94 kB / 1.076 GB, free: 1.387 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.0009687/0.2734, allocations: 1.124 MB / 1.077 GB, free: 228 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008398/0.2743, allocations: 0.7099 MB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2743, allocations: 0 / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003257/0.2746, allocations: 346.6 kB / 1.078 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.2751, allocations: 56.2 kB / 1.078 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00399/0.2791, allocations: 3.431 MB / 1.081 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.2794, allocations: 0.7477 MB / 1.082 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.2795, allocations: 41.86 kB / 1.082 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.421e-05/0.2796, allocations: 63.42 kB / 1.082 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of SimCode: time 2.9e-07/0.2796, allocations: 4 kB / 1.082 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.3032, allocations: 7.001 MB / 1.089 GB, free: 3.762 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.74/8.043, allocations: 11.14 kB / 1.089 GB, free: 3.75 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 & 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