Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.436/2.436, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001535, allocations: 174.7 kB / 325.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.303/2.303, allocations: 205.4 MB / 0.5764 GB, free: 20.78 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 93.56 kB / 0.6809 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004552/0.0004554, allocations: 15.72 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2096, allocations: 106.3 MB / 0.8988 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2355/0.4452, allocations: 138.3 MB / 1.034 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003372/0.4456, allocations: 79.95 kB / 1.034 GB, free: 6.902 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0296/0.4752, allocations: 6.96 MB / 1.041 GB, free: 15.91 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.607e-06/0.4752, allocations: 0 / 1.041 GB, free: 15.91 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.165e-05/0.4753, allocations: 15.94 kB / 1.041 GB, free: 15.9 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001486/0.4768, allocations: 0.6465 MB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.4769, allocations: 8.25 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/0.477, allocations: 70.55 kB / 1.041 GB, free: 15.12 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.4771, allocations: 59.33 kB / 1.042 GB, free: 15.06 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007893/0.4779, allocations: 387.2 kB / 1.042 GB, free: 14.64 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.478, allocations: 20.66 kB / 1.042 GB, free: 14.62 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-05/0.4781, allocations: 31.91 kB / 1.042 GB, free: 14.59 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009718/0.4791, allocations: 363 kB / 1.042 GB, free: 14.21 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.4791, allocations: 0 / 1.042 GB, free: 14.21 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.467e-05/0.4792, allocations: 16 kB / 1.042 GB, free: 14.19 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.4792, allocations: 4 kB / 1.042 GB, free: 14.19 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008681/0.4801, allocations: 254 kB / 1.043 GB, free: 13.94 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.4825, allocations: 1.233 MB / 1.044 GB, free: 12.63 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.4836, allocations: 289.1 kB / 1.044 GB, free: 12.34 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.243e-05/0.4836, allocations: 4.188 kB / 1.044 GB, free: 12.34 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.4837, allocations: 34.7 kB / 1.044 GB, free: 12.29 MB / 0.698 GB Notification: Performance of pre-optimization done (n=22): time 2.535e-06/0.4837, allocations: 4 kB / 1.044 GB, free: 12.29 MB / 0.698 GB Notification: Performance of matching and sorting (n=22): time 0.001249/0.485, allocations: 357.9 kB / 1.044 GB, free: 11.94 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.4851, allocations: 154.2 kB / 1.045 GB, free: 11.75 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005368/0.4856, allocations: 308.9 kB / 1.045 GB, free: 11.44 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.4857, allocations: 33.7 kB / 1.045 GB, free: 11.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.4859, allocations: 212.3 kB / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.486, allocations: 82.84 kB / 1.045 GB, free: 11.11 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/0.4861, allocations: 4 kB / 1.045 GB, free: 11.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.4863, allocations: 342.8 kB / 1.045 GB, free: 10.76 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.4866, allocations: 91.97 kB / 1.046 GB, free: 10.67 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/0.4871, allocations: 167.6 kB / 1.046 GB, free: 10.48 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/0.4874, allocations: 96.64 kB / 1.046 GB, free: 10.38 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.4875, allocations: 0 / 1.046 GB, free: 10.38 MB / 0.698 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009581/0.4884, allocations: 308.9 kB / 1.046 GB, free: 10.07 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.4885, allocations: 4 kB / 1.046 GB, free: 10.07 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4885, allocations: 48 / 1.046 GB, free: 10.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.4885, allocations: 16.06 kB / 1.046 GB, free: 10.05 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004508/0.489, allocations: 59.91 kB / 1.046 GB, free: 9.996 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.489, allocations: 0 / 1.046 GB, free: 9.996 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/0.4894, allocations: 43.81 kB / 1.046 GB, free: 9.953 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.4895, allocations: 11.94 kB / 1.046 GB, free: 9.941 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002768/0.4897, allocations: 161.8 kB / 1.046 GB, free: 9.773 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.485e-05/0.4898, allocations: 35.53 kB / 1.046 GB, free: 9.738 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.49, allocations: 39.47 kB / 1.046 GB, free: 9.699 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.49, allocations: 7.953 kB / 1.046 GB, free: 9.691 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.49, allocations: 0 / 1.046 GB, free: 9.691 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/0.49, allocations: 3.984 kB / 1.046 GB, free: 9.688 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006789/0.4907, allocations: 409.3 kB / 1.047 GB, free: 9.238 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4907, allocations: 0 / 1.047 GB, free: 9.238 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004426/0.4912, allocations: 51.97 kB / 1.047 GB, free: 9.188 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.4912, allocations: 0 / 1.047 GB, free: 9.188 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.4912, allocations: 4 kB / 1.047 GB, free: 9.184 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.4913, allocations: 0 / 1.047 GB, free: 9.184 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.4913, allocations: 3.953 kB / 1.047 GB, free: 9.18 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.4926, allocations: 483.6 kB / 1.047 GB, free: 8.691 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.4928, allocations: 132.6 kB / 1.048 GB, free: 8.543 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.653e-05/0.4929, allocations: 15.98 kB / 1.048 GB, free: 8.527 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003837/0.4933, allocations: 39.92 kB / 1.048 GB, free: 8.488 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.44e-05/0.4934, allocations: 19.97 kB / 1.048 GB, free: 8.469 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.4934, allocations: 7.953 kB / 1.048 GB, free: 8.461 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004101/0.4939, allocations: 247.2 kB / 1.048 GB, free: 8.227 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.91e-07/0.4939, allocations: 0 / 1.048 GB, free: 8.227 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000513/0.4944, allocations: 67.84 kB / 1.048 GB, free: 8.16 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001672/0.4961, allocations: 1.024 MB / 1.049 GB, free: 7.109 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008272/0.4969, allocations: 232 kB / 1.049 GB, free: 6.883 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4969, allocations: 0 / 1.049 GB, free: 6.883 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.4973, allocations: 119.9 kB / 1.049 GB, free: 6.766 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.4981, allocations: 65.52 kB / 1.049 GB, free: 6.695 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005567/0.5036, allocations: 2.725 MB / 1.052 GB, free: 3.91 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000545/0.5042, allocations: 0.8031 MB / 1.053 GB, free: 3.078 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003051/0.5046, allocations: 42.94 kB / 1.053 GB, free: 3.031 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.5049, allocations: 127.4 kB / 1.053 GB, free: 2.906 MB / 0.698 GB Notification: Performance of SimCode: time 1.142e-06/0.5049, allocations: 0 / 1.053 GB, free: 2.906 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5939/1.099, allocations: 6.698 MB / 1.059 GB, free: 149.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003135/1.099, allocations: 183 kB / 1.06 GB, free: 149.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.074/4.174, allocations: 0.9844 kB / 1.06 GB, free: 149.3 MB / 0.698 GB