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.001564/0.001563, 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.001587/0.001587, allocations: 193.7 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.603/2.603, allocations: 461.9 MB / 0.7346 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 63.17 kB / 0.8992 GB, free: 36.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2985, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003751/0.3023, allocations: 1.973 MB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002952/0.3053, allocations: 1.981 MB / 1.057 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004996/0.3058, allocations: 31.81 kB / 1.057 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003665/0.3062, allocations: 127 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.3064, allocations: 35.72 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.3075, allocations: 350.6 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009564/0.3085, allocations: 0.7892 MB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007016/0.3092, allocations: 471.8 kB / 1.059 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/0.3096, allocations: 259.3 kB / 1.059 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004088/0.31, allocations: 247 kB / 1.059 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.3101, allocations: 67.94 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.3103, allocations: 75.98 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.3105, allocations: 143.6 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003354/0.3108, allocations: 274.7 kB / 1.06 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007323/0.3116, allocations: 0.7946 MB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3116, allocations: 0 / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3116, allocations: 7.875 kB / 1.06 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.304e-05/0.3116, allocations: 4 kB / 1.06 GB, free: 0.6719 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.001729/0.3134, allocations: 0.8972 MB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3134, allocations: 12.62 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/0.3135, allocations: 86.7 kB / 1.061 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.3137, allocations: 60.28 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007116/0.3144, allocations: 460.1 kB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.3145, allocations: 41.38 kB / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.3146, allocations: 56.36 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009489/0.3155, allocations: 0.5495 MB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.3156, allocations: 3.938 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.3156, allocations: 16 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.3156, allocations: 8 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007412/0.3164, allocations: 463.6 kB / 1.063 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.3183, allocations: 1.301 MB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006734/0.319, allocations: 426.1 kB / 1.065 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/0.3193, allocations: 184.7 kB / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.3193, allocations: 11.94 kB / 1.065 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004656/0.3198, allocations: 323.3 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=36): time 1.683e-06/0.3198, allocations: 0 / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36): time 0.001207/0.321, allocations: 0.6413 MB / 1.066 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.3211, allocations: 55.41 kB / 1.066 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003443/0.3214, allocations: 330.2 kB / 1.066 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.161e-05/0.3215, allocations: 37.7 kB / 1.066 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.3217, allocations: 233 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.89e-05/0.3218, allocations: 78.88 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.322, allocations: 134 kB / 1.067 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3221, allocations: 342.8 kB / 1.067 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.3225, allocations: 268.1 kB / 1.067 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.323, allocations: 348 kB / 1.067 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006432/0.3237, allocations: 448.9 kB / 1.068 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3237, allocations: 3.938 kB / 1.068 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001045/0.3247, allocations: 0.6807 MB / 1.069 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.975e-05/0.3248, allocations: 71.39 kB / 1.069 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3248, allocations: 0 / 1.069 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.3249, allocations: 4 kB / 1.069 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.3251, allocations: 43.89 kB / 1.069 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.3251, allocations: 4.125 kB / 1.069 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.3256, allocations: 111.6 kB / 1.069 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.3256, allocations: 20 kB / 1.069 GB, free: 7.688 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.0002878/0.3259, allocations: 253.8 kB / 1.069 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.326, allocations: 31.62 kB / 1.069 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.631e-05/0.3261, allocations: 42.89 kB / 1.069 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3261, allocations: 4 kB / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.3261, allocations: 0 / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3261, allocations: 0 / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.3277, allocations: 1.093 MB / 1.07 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3277, allocations: 0 / 1.07 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.3279, allocations: 43.89 kB / 1.07 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.3279, allocations: 4 kB / 1.07 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.98e-05/0.328, allocations: 15.92 kB / 1.07 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.328, allocations: 0 / 1.07 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.328, allocations: 0 / 1.07 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.3292, allocations: 0.7838 MB / 1.071 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.092e-05/0.3293, allocations: 104.7 kB / 1.071 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.559e-05/0.3293, allocations: 11.94 kB / 1.071 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.3295, allocations: 35.89 kB / 1.071 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.3296, allocations: 59.84 kB / 1.071 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.969e-05/0.3297, allocations: 15.98 kB / 1.071 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001889/0.3299, allocations: 209.9 kB / 1.071 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3299, allocations: 0 / 1.071 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003845/0.3303, allocations: 123.5 kB / 1.072 GB, free: 4.766 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.001444/0.3317, allocations: 1.348 MB / 1.073 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001079/0.3328, allocations: 0.7051 MB / 1.074 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3328, allocations: 0 / 1.074 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.3332, allocations: 231.6 kB / 1.074 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.3338, allocations: 148.3 kB / 1.074 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00582/0.3397, allocations: 4.39 MB / 1.078 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005637/0.3402, allocations: 0.8852 MB / 1.079 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002565/0.3405, allocations: 75.23 kB / 1.079 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.3408, allocations: 155.4 kB / 1.079 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of SimCode: time 2.235e-06/0.3408, allocations: 4 kB / 1.079 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.3725, allocations: 10.39 MB / 1.089 GB, free: 2.5 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.157/7.53, allocations: 16.3 kB / 1.089 GB, free: 2.488 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)