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.00193/0.00193, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001983/0.001983, allocations: 207.6 kB / 22.24 MB, free: 5.262 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.793 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.325/3.325, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 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.002102/0.002102, allocations: 71.59 kB / 1.186 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3336, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002337/0.3359, allocations: 0.9062 MB / 1.364 GB, free: 13.2 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002246/0.3382, allocations: 1.413 MB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.3383, allocations: 7.938 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0004031/0.3387, allocations: 67.67 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.3389, allocations: 59.69 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009417/0.3398, allocations: 337.3 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0006017/0.3404, allocations: 439.2 kB / 1.367 GB, free: 10.89 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.3405, allocations: 33.78 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002738/0.3408, allocations: 171.6 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/0.3412, allocations: 159.5 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.3413, allocations: 36 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.3414, allocations: 67.98 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.3416, allocations: 91.7 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.3418, allocations: 127.5 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005618/0.3423, allocations: 434.8 kB / 1.368 GB, free: 9.789 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.3424, allocations: 0 / 1.368 GB, free: 9.789 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.664e-06/0.3424, allocations: 11.88 kB / 1.368 GB, free: 9.777 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.778e-06/0.3424, allocations: 0 / 1.368 GB, free: 9.777 MB / 1.061 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.001014/0.3434, allocations: 0.578 MB / 1.368 GB, free: 9.141 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3434, allocations: 12.03 kB / 1.368 GB, free: 9.129 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.698e-05/0.3435, allocations: 46.73 kB / 1.368 GB, free: 9.074 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.498e-05/0.3436, allocations: 28.8 kB / 1.368 GB, free: 9.047 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005382/0.3441, allocations: 243.2 kB / 1.368 GB, free: 8.781 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.3441, allocations: 20.36 kB / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/0.3442, allocations: 24.31 kB / 1.369 GB, free: 8.738 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004069/0.3446, allocations: 270.5 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3446, allocations: 3.938 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.3446, allocations: 8 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-06/0.3447, allocations: 4 kB / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.3449, allocations: 207.3 kB / 1.369 GB, free: 8.227 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.346, allocations: 0.5345 MB / 1.37 GB, free: 7.648 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000534/0.3465, allocations: 282 kB / 1.37 GB, free: 7.352 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.3468, allocations: 216.2 kB / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.3468, allocations: 0 / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004652/0.3473, allocations: 311.3 kB / 1.37 GB, free: 6.793 MB / 1.061 GB Notification: Performance of pre-optimization done (n=27): time 1.894e-06/0.3473, allocations: 4 kB / 1.37 GB, free: 6.789 MB / 1.061 GB Notification: Performance of matching and sorting (n=27): time 0.001117/0.3484, allocations: 0.7019 MB / 1.371 GB, free: 6.047 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.3485, allocations: 118.8 kB / 1.371 GB, free: 5.906 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.3488, allocations: 260 kB / 1.371 GB, free: 5.637 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.423e-05/0.3489, allocations: 37.7 kB / 1.371 GB, free: 5.594 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.349, allocations: 124.7 kB / 1.371 GB, free: 5.469 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.739e-05/0.3491, allocations: 63.58 kB / 1.372 GB, free: 5.406 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.3493, allocations: 97.66 kB / 1.372 GB, free: 5.305 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000186/0.3495, allocations: 342.8 kB / 1.372 GB, free: 4.961 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.3499, allocations: 314.7 kB / 1.372 GB, free: 4.629 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006487/0.3506, allocations: 0.563 MB / 1.373 GB, free: 3.961 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006304/0.3512, allocations: 0.5196 MB / 1.373 GB, free: 3.371 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3512, allocations: 4 kB / 1.373 GB, free: 3.367 MB / 1.061 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001111/0.3523, allocations: 0.7552 MB / 1.374 GB, free: 2.559 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001352/0.3524, allocations: 134.8 kB / 1.374 GB, free: 2.402 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3524, allocations: 0 / 1.374 GB, free: 2.402 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.3525, allocations: 4 kB / 1.374 GB, free: 2.398 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.3526, allocations: 31.92 kB / 1.374 GB, free: 2.367 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.3526, allocations: 4 kB / 1.374 GB, free: 2.363 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/0.3532, allocations: 88.06 kB / 1.374 GB, free: 2.277 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.602e-05/0.3532, allocations: 27.92 kB / 1.374 GB, free: 2.25 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.0003002/0.3535, allocations: 239.7 kB / 1.375 GB, free: 1.996 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.3536, allocations: 31.84 kB / 1.375 GB, free: 1.965 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.078e-05/0.3536, allocations: 26.66 kB / 1.375 GB, free: 1.941 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3536, allocations: 0 / 1.375 GB, free: 1.941 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3537, allocations: 0 / 1.375 GB, free: 1.941 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3537, allocations: 0 / 1.375 GB, free: 1.941 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00134/0.355, allocations: 0.9041 MB / 1.376 GB, free: 0.9609 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.355, allocations: 64 / 1.376 GB, free: 0.9609 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.169e-05/0.355, allocations: 19.98 kB / 1.376 GB, free: 0.9414 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3551, allocations: 0 / 1.376 GB, free: 0.9414 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.3551, allocations: 7.938 kB / 1.376 GB, free: 0.9336 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.3551, allocations: 7.938 kB / 1.376 GB, free: 0.9258 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3551, allocations: 0 / 1.376 GB, free: 0.9258 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007563/0.3558, allocations: 0.6469 MB / 1.376 GB, free: 244 kB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.932e-05/0.3559, allocations: 23.8 kB / 1.376 GB, free: 220 kB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/0.3559, allocations: 19.92 kB / 1.376 GB, free: 200 kB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.3561, allocations: 12 kB / 1.376 GB, free: 188 kB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.3562, allocations: 55.92 kB / 1.376 GB, free: 132 kB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.3562, allocations: 12 kB / 1.376 GB, free: 120 kB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001869/0.3564, allocations: 177.6 kB / 1.376 GB, free: 15.95 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.3564, allocations: 0 / 1.376 GB, free: 15.95 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000402/0.3568, allocations: 87.92 kB / 1.377 GB, free: 15.86 MB / 1.076 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.001237/0.3581, allocations: 1.209 MB / 1.378 GB, free: 14.6 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001067/0.3591, allocations: 0.8547 MB / 1.379 GB, free: 13.66 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3591, allocations: 0 / 1.379 GB, free: 13.66 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.3595, allocations: 362 kB / 1.379 GB, free: 13.27 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.36, allocations: 61.89 kB / 1.379 GB, free: 13.21 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005093/0.3651, allocations: 4.164 MB / 1.383 GB, free: 8.773 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.3652, allocations: 144.6 kB / 1.383 GB, free: 8.609 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 9.729e-05/0.3653, allocations: 33.94 kB / 1.383 GB, free: 8.578 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.3654, allocations: 67.41 kB / 1.383 GB, free: 8.512 MB / 1.076 GB Notification: Performance of SimCode: time 4.91e-07/0.3654, allocations: 0 / 1.383 GB, free: 8.512 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.4018, allocations: 8.135 MB / 1.391 GB, free: 0.625 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.72, allocations: 9.562 kB / 1.391 GB, free: 0.6172 MB / 1.076 GB " [Timeout remaining time 287] (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.49040020024404]