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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 217.5 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.392/3.392, allocations: 0.505 GB / 0.8101 GB, free: 22.02 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 66.53 kB / 1.177 GB, free: 17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3555, allocations: 180.2 MB / 1.353 GB, free: 8.422 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.00236/0.3578, allocations: 0.9474 MB / 1.354 GB, free: 7.477 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002204/0.3601, allocations: 1.448 MB / 1.355 GB, free: 6.016 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.3602, allocations: 0 / 1.355 GB, free: 6.016 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0003731/0.3606, allocations: 71.61 kB / 1.355 GB, free: 5.945 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.3607, allocations: 55.69 kB / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.3618, allocations: 339.5 kB / 1.356 GB, free: 5.566 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0007044/0.3625, allocations: 439.2 kB / 1.356 GB, free: 5.137 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.3626, allocations: 45.98 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/0.363, allocations: 167.6 kB / 1.356 GB, free: 4.926 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004072/0.3634, allocations: 171.5 kB / 1.356 GB, free: 4.758 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.3635, allocations: 36 kB / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.3637, allocations: 71.97 kB / 1.357 GB, free: 4.652 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.3639, allocations: 83.78 kB / 1.357 GB, free: 4.57 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.3642, allocations: 147.4 kB / 1.357 GB, free: 4.426 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006438/0.3648, allocations: 438.6 kB / 1.357 GB, free: 3.996 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3648, allocations: 4 kB / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.645e-06/0.3648, allocations: 0 / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.765e-05/0.3648, allocations: 0 / 1.357 GB, free: 3.992 MB / 1.045 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.001284/0.3661, allocations: 0.5858 MB / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3662, allocations: 12.03 kB / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.347e-05/0.3662, allocations: 42.69 kB / 1.358 GB, free: 3.285 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.3664, allocations: 36.78 kB / 1.358 GB, free: 3.25 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.3669, allocations: 246.9 kB / 1.358 GB, free: 2.98 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.3669, allocations: 20.38 kB / 1.358 GB, free: 2.961 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/0.367, allocations: 24.38 kB / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003562/0.3674, allocations: 190.6 kB / 1.358 GB, free: 2.746 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3674, allocations: 3.938 kB / 1.358 GB, free: 2.742 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.3674, allocations: 4 kB / 1.358 GB, free: 2.738 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3674, allocations: 0 / 1.358 GB, free: 2.738 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.3676, allocations: 127.9 kB / 1.358 GB, free: 2.613 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.3687, allocations: 0.5969 MB / 1.359 GB, free: 1.973 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004485/0.3692, allocations: 202.6 kB / 1.359 GB, free: 1.766 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.3694, allocations: 124.8 kB / 1.359 GB, free: 1.641 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.3694, allocations: 4 kB / 1.359 GB, free: 1.637 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003938/0.3698, allocations: 242.8 kB / 1.36 GB, free: 1.387 MB / 1.045 GB Notification: Performance of pre-optimization done (n=27): time 4.268e-06/0.3698, allocations: 3.984 kB / 1.36 GB, free: 1.383 MB / 1.045 GB Notification: Performance of matching and sorting (n=27): time 0.0008595/0.3707, allocations: 0.5195 MB / 1.36 GB, free: 0.8477 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.833e-05/0.3708, allocations: 122.8 kB / 1.36 GB, free: 0.7031 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003489/0.3711, allocations: 252 kB / 1.36 GB, free: 460 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.047e-05/0.3712, allocations: 37.7 kB / 1.36 GB, free: 416 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3713, allocations: 124.7 kB / 1.361 GB, free: 288 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.833e-05/0.3714, allocations: 71.52 kB / 1.361 GB, free: 216 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.3715, allocations: 97.66 kB / 1.361 GB, free: 112 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3717, allocations: 342.8 kB / 1.361 GB, free: 15.77 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.372, allocations: 163.9 kB / 1.361 GB, free: 15.61 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/0.3724, allocations: 297.5 kB / 1.361 GB, free: 15.27 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005615/0.373, allocations: 487.5 kB / 1.362 GB, free: 14.72 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.373, allocations: 0 / 1.362 GB, free: 14.72 MB / 1.061 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000909/0.3739, allocations: 0.5945 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.374, allocations: 138.8 kB / 1.363 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.374, allocations: 0 / 1.363 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.374, allocations: 4 kB / 1.363 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.3741, allocations: 31.92 kB / 1.363 GB, free: 13.9 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.3741, allocations: 4 kB / 1.363 GB, free: 13.89 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005552/0.3747, allocations: 93.58 kB / 1.363 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.849e-05/0.3747, allocations: 23.92 kB / 1.363 GB, free: 13.78 MB / 1.061 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.0002752/0.375, allocations: 247.6 kB / 1.363 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/0.3751, allocations: 27.86 kB / 1.363 GB, free: 13.49 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.052e-05/0.3751, allocations: 22.66 kB / 1.363 GB, free: 13.46 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3751, allocations: 4 kB / 1.363 GB, free: 13.46 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.3751, allocations: 4 kB / 1.363 GB, free: 13.45 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3751, allocations: 3.984 kB / 1.363 GB, free: 13.45 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.3763, allocations: 0.8249 MB / 1.364 GB, free: 12.56 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.3763, allocations: 4 kB / 1.364 GB, free: 12.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.835e-05/0.3764, allocations: 11.98 kB / 1.364 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3764, allocations: 0 / 1.364 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.3764, allocations: 15.94 kB / 1.364 GB, free: 12.53 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3764, allocations: 0 / 1.364 GB, free: 12.53 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3764, allocations: 0 / 1.364 GB, free: 12.53 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006808/0.3771, allocations: 0.5421 MB / 1.364 GB, free: 11.96 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.3772, allocations: 23.8 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.138e-05/0.3772, allocations: 19.92 kB / 1.365 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.3774, allocations: 12 kB / 1.365 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3775, allocations: 47.94 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.3775, allocations: 20 kB / 1.365 GB, free: 11.84 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001789/0.3777, allocations: 169.8 kB / 1.365 GB, free: 11.67 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3777, allocations: 0 / 1.365 GB, free: 11.67 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004234/0.3781, allocations: 91.89 kB / 1.365 GB, free: 11.58 MB / 1.061 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.001194/0.3793, allocations: 1.123 MB / 1.366 GB, free: 10.41 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009199/0.3802, allocations: 0.6263 MB / 1.367 GB, free: 9.738 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3802, allocations: 0 / 1.367 GB, free: 9.738 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.3806, allocations: 278.7 kB / 1.367 GB, free: 9.441 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.381, allocations: 56.16 kB / 1.367 GB, free: 9.391 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005285/0.3863, allocations: 3.463 MB / 1.37 GB, free: 5.77 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004688/0.3868, allocations: 0.7402 MB / 1.371 GB, free: 5.004 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001314/0.3869, allocations: 37.92 kB / 1.371 GB, free: 4.969 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.387, allocations: 71.41 kB / 1.371 GB, free: 4.898 MB / 1.061 GB Notification: Performance of SimCode: time 1.172e-06/0.387, allocations: 0 / 1.371 GB, free: 4.898 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03879/0.4258, allocations: 7.313 MB / 1.378 GB, free: 13.77 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.37, allocations: 7.344 kB / 1.378 GB, free: 13.77 MB / 1.076 GB " [Timeout remaining time 288] (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 --stepSize=0.002 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.463844225974753]