Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.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.Pumps.Primary.Validation.EnableLeadHeadered,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Pumps_Primary_Validation_EnableLeadHeadered",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Pumps_Primary_Validation_EnableLeadHeadered",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.001189/0.001189, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001239/0.001239, allocations: 192.2 kB / 16.25 MB, free: 6.637 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.381/1.381, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.621/2.621, allocations: 461.9 MB / 0.7344 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 66.72 kB / 0.8987 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2663, allocations: 157.4 MB / 1.052 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.002981/0.2693, allocations: 1.989 MB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002594/0.2719, allocations: 1.95 MB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005435/0.2725, allocations: 23.88 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004668/0.2729, allocations: 115.2 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.2731, allocations: 15.88 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008891/0.274, allocations: 321.1 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007935/0.2748, allocations: 0.7931 MB / 1.058 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005868/0.2754, allocations: 463.9 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003003/0.2757, allocations: 255.3 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.2761, allocations: 254.9 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.2762, allocations: 64 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.2763, allocations: 79.92 kB / 1.059 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.2765, allocations: 139.6 kB / 1.059 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000289/0.2768, allocations: 278.7 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006851/0.2775, allocations: 0.7946 MB / 1.06 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2775, allocations: 4 kB / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2775, allocations: 0 / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.522e-05/0.2775, allocations: 0 / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001505/0.279, allocations: 0.9049 MB / 1.061 GB, free: 112 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.2791, allocations: 12.62 kB / 1.061 GB, free: 100 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.78e-05/0.2792, allocations: 82.7 kB / 1.061 GB, free: 8 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.2793, allocations: 64.33 kB / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006322/0.2799, allocations: 460.1 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.28, allocations: 49.36 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.861e-05/0.2801, allocations: 52.38 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000866/0.281, allocations: 0.5456 MB / 1.062 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.281, allocations: 7.938 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.153e-05/0.281, allocations: 19.98 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2811, allocations: 12 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006821/0.2817, allocations: 455.6 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2835, allocations: 1.297 MB / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00066/0.2842, allocations: 426.2 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002793/0.2844, allocations: 184.7 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-05/0.2845, allocations: 4 kB / 1.064 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004772/0.285, allocations: 331.2 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=36): time 1.884e-06/0.285, allocations: 3.938 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36): time 0.001079/0.2861, allocations: 0.6297 MB / 1.065 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2861, allocations: 55.41 kB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.2864, allocations: 338.2 kB / 1.065 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.2865, allocations: 45.62 kB / 1.066 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.2866, allocations: 229 kB / 1.066 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.66e-05/0.2867, allocations: 86.84 kB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/0.2869, allocations: 130 kB / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.287, allocations: 338.8 kB / 1.066 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004406/0.2874, allocations: 272.1 kB / 1.067 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004722/0.2879, allocations: 348 kB / 1.067 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.2886, allocations: 444.9 kB / 1.067 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.2886, allocations: 3.938 kB / 1.067 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001061/0.2896, allocations: 0.6808 MB / 1.068 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.165e-05/0.2897, allocations: 71.39 kB / 1.068 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2897, allocations: 0 / 1.068 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2897, allocations: 4 kB / 1.068 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.2899, allocations: 43.89 kB / 1.068 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.2899, allocations: 4 kB / 1.068 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.2904, allocations: 107.6 kB / 1.068 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.2904, allocations: 23.98 kB / 1.068 GB, free: 8.086 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,enaParMod.lat.y,enaParMod.cloParMod[2].y,enaParMod.cloParMod[1].y,enaParMod.allCloPar.y,enaParMod.anyOpePar.y,enaParTwo.lat.y,enaParTwo.allCloPar.y,enaParTwo.anyOpePar.y,enaSerMod.opeSerMod[2].y,enaSerMod.opeSerMod[1].y,enaSerMod.allOpeSer.y,enaSerMod.anyCloSer.y,enaSerMod.lat.y,enaSerTwo.allOpeSer.y,enaSerTwo.anyCloSer.y,enaSerTwo.lat.y,u1ValIso[2].y,$PRE.u1ValIso[2].y,u1ValIso[1].y,$PRE.u1ValIso[1].y,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 2 * 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.0002519/0.2907, allocations: 245.8 kB / 1.068 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.429e-05/0.2908, allocations: 31.62 kB / 1.068 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.872e-05/0.2908, allocations: 38.95 kB / 1.069 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2909, allocations: 8 kB / 1.069 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2909, allocations: 0 / 1.069 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.2909, allocations: 7.984 kB / 1.069 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.2923, allocations: 1.093 MB / 1.07 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2923, allocations: 0 / 1.07 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.2925, allocations: 43.89 kB / 1.07 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.2925, allocations: 4 kB / 1.07 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.2925, allocations: 11.94 kB / 1.07 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2925, allocations: 3.984 kB / 1.07 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2925, allocations: 4 kB / 1.07 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.2937, allocations: 0.776 MB / 1.07 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.275e-05/0.2937, allocations: 108.7 kB / 1.071 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.2938, allocations: 15.86 kB / 1.071 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.294, allocations: 31.95 kB / 1.071 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.2941, allocations: 51.8 kB / 1.071 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/0.2941, allocations: 19.98 kB / 1.071 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001745/0.2943, allocations: 205.9 kB / 1.071 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2943, allocations: 8 kB / 1.071 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003841/0.2947, allocations: 123.5 kB / 1.071 GB, free: 5.16 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (uValIso[1].y,uValIso[2].y) * Number of discrete variables: 30 (enaSerTwo.anyCloSer.y,enaSerTwo.allOpeSer.y,enaParTwo.anyOpePar.y,enaParTwo.allCloPar.y,enaParMod.anyOpePar.y,enaParMod.allCloPar.y,enaSerMod.anyCloSer.y,enaSerMod.allOpeSer.y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,u1ValIso[1].y,u1ValIso[2].y,enaSerTwo.lat.y,enaSerMod.lat.y,enaSerMod.opeSerMod[1].y,enaSerMod.opeSerMod[2].y,enaParTwo.lat.y,enaParMod.cloParMod[1].y,enaParMod.cloParMod[2].y,enaParMod.lat.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001402/0.2961, allocations: 1.355 MB / 1.072 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00105/0.2972, allocations: 0.6973 MB / 1.073 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2972, allocations: 0 / 1.073 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003541/0.2976, allocations: 239.9 kB / 1.073 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.2982, allocations: 129.7 kB / 1.073 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.3036, allocations: 4.546 MB / 1.078 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.304, allocations: 0.8852 MB / 1.079 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002019/0.3042, allocations: 75.23 kB / 1.079 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.3044, allocations: 151.4 kB / 1.079 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of SimCode: time 4.21e-07/0.3044, allocations: 0 / 1.079 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.981/3.285, allocations: 10.22 MB / 1.089 GB, free: 2.977 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003292/3.286, allocations: 249.7 kB / 1.089 GB, free: 2.715 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/5.321, allocations: 5.688 kB / 1.089 GB, free: 2.711 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Pumps_Primary_Validation_EnableLeadHeadered_fmu --startTime=0 --stopTime=3000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Pumps_Primary_Validation_EnableLeadHeadered.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe 2>&1)