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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.004488/0.004488, allocations: 96.69 kB / 15.73 MB, free: 6.484 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.001341/0.001341, allocations: 192.2 kB / 16.67 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.313/1.313, 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 12.0.0-master/package.mo): time 2.75/2.75, allocations: 482.6 MB / 0.755 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001778, allocations: 63.89 kB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3207, allocations: 162.3 MB / 1.242 GB, free: 9.887 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002083/0.3229, allocations: 0.9331 MB / 1.243 GB, free: 8.953 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.3247, allocations: 1.412 MB / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.648e-05/0.3247, allocations: 0 / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003044/0.3251, allocations: 67.67 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.502e-05/0.3252, allocations: 51.69 kB / 1.244 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007587/0.3259, allocations: 333.7 kB / 1.245 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005/0.3264, allocations: 455.2 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.3266, allocations: 61.62 kB / 1.245 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.3268, allocations: 167.6 kB / 1.245 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.3271, allocations: 167.4 kB / 1.245 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.35e-05/0.3271, allocations: 36 kB / 1.245 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.3273, allocations: 63.97 kB / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3274, allocations: 83.78 kB / 1.246 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.3276, allocations: 143.4 kB / 1.246 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004742/0.3281, allocations: 438.5 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3281, allocations: 0 / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3281, allocations: 0 / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.3281, allocations: 0 / 1.246 GB, free: 5.508 MB / 0.9981 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.0008595/0.329, allocations: 0.6611 MB / 1.247 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.329, allocations: 12.03 kB / 1.247 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.114e-05/0.3291, allocations: 42.73 kB / 1.247 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.374e-05/0.3292, allocations: 32.8 kB / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.3296, allocations: 312.7 kB / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.3296, allocations: 16.38 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.3297, allocations: 24.38 kB / 1.247 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.33, allocations: 182.1 kB / 1.247 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.33, allocations: 7.938 kB / 1.247 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.33, allocations: 7.984 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3301, allocations: 0 / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002121/0.3303, allocations: 127.9 kB / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000905/0.3312, allocations: 0.6251 MB / 1.248 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004103/0.3316, allocations: 238.7 kB / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.3318, allocations: 158.8 kB / 1.248 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.3318, allocations: 4 kB / 1.248 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003419/0.3322, allocations: 227.9 kB / 1.249 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/0.3322, allocations: 0 / 1.249 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.000787/0.333, allocations: 0.5217 MB / 1.249 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/0.3331, allocations: 126.8 kB / 1.249 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.3333, allocations: 249.3 kB / 1.25 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.41e-05/0.3334, allocations: 41.69 kB / 1.25 GB, free: 1.664 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3335, allocations: 132.7 kB / 1.25 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.3336, allocations: 59.59 kB / 1.25 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.3338, allocations: 93.66 kB / 1.25 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3339, allocations: 342.8 kB / 1.25 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.3342, allocations: 163.9 kB / 1.25 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.3346, allocations: 291.8 kB / 1.251 GB, free: 0.5391 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5218/0.8564, allocations: 495.2 kB / 1.251 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.8564, allocations: 1 kB / 1.251 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0009835/0.8574, allocations: 0.5865 MB / 1.252 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/0.8575, allocations: 140.4 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.8575, allocations: 3.703 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.8576, allocations: 5 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.8577, allocations: 25.86 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.8577, allocations: 4.438 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/0.8582, allocations: 85.42 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/0.8583, allocations: 32.08 kB / 1.252 GB, free: 13.9 MB / 0.9981 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.0002098/0.8585, allocations: 244.9 kB / 1.252 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.423e-05/0.8586, allocations: 25.86 kB / 1.252 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.199e-05/0.8586, allocations: 25.55 kB / 1.252 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.8586, allocations: 3.641 kB / 1.252 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.8586, allocations: 1.656 kB / 1.252 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.8586, allocations: 2.906 kB / 1.252 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009622/0.8596, allocations: 0.8478 MB / 1.253 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.8596, allocations: 1.594 kB / 1.253 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-05/0.8597, allocations: 14.47 kB / 1.253 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.8597, allocations: 3.266 kB / 1.253 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.8597, allocations: 10.58 kB / 1.253 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.8597, allocations: 7.734 kB / 1.253 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8597, allocations: 1.406 kB / 1.253 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005431/0.8603, allocations: 0.5419 MB / 1.254 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.526e-05/0.8603, allocations: 101.3 kB / 1.254 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.045e-05/0.8604, allocations: 17.03 kB / 1.254 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.8605, allocations: 17.92 kB / 1.254 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.8606, allocations: 46.06 kB / 1.254 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.8607, allocations: 15.36 kB / 1.254 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000144/0.8608, allocations: 177 kB / 1.254 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.162e-06/0.8608, allocations: 0.8438 kB / 1.254 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003626/0.8612, allocations: 88.53 kB / 1.254 GB, free: 12.98 MB / 0.9981 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.0008016/0.862, allocations: 1.126 MB / 1.255 GB, free: 12.24 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007649/0.8628, allocations: 0.685 MB / 1.256 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.8628, allocations: 0 / 1.256 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.8631, allocations: 342.3 kB / 1.256 GB, free: 11.85 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.8635, allocations: 57.72 kB / 1.256 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.8671, allocations: 3.453 MB / 1.26 GB, free: 9.758 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/0.8672, allocations: 0.7438 MB / 1.26 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001042/0.8674, allocations: 37.69 kB / 1.26 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.265e-05/0.8674, allocations: 73.23 kB / 1.26 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of SimCode: time 2.81e-07/0.8674, allocations: 0 / 1.26 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4492/1.317, allocations: 7.045 MB / 1.267 GB, free: 8.301 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.044/10.36, allocations: 9.031 kB / 1.267 GB, free: 8.301 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 & /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=400 --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