Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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 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: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00129/0.00129, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.4 MB / 222.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6601/0.6601, allocations: 95.58 MB / 366 MB, free: 10.36 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005606/0.0005607, allocations: 15.91 kB / 446.8 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2838, allocations: 70.35 MB / 0.505 GB, free: 16.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002193/0.286, allocations: 2.473 MB / 0.5074 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.2878, allocations: 0.9207 MB / 0.5083 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002981/0.2881, allocations: 12 kB / 0.5083 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.741e-05/0.2882, allocations: 35.59 kB / 0.5084 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003749/0.2886, allocations: 99.69 kB / 0.5085 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.2889, allocations: 167.2 kB / 0.5086 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.2893, allocations: 296 kB / 0.5089 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.2895, allocations: 153.1 kB / 0.509 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.2897, allocations: 131.3 kB / 0.5092 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.2898, allocations: 127.2 kB / 0.5093 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.2899, allocations: 15.94 kB / 0.5093 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.048e-05/0.2899, allocations: 12 kB / 0.5093 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.696e-05/0.29, allocations: 51.77 kB / 0.5094 GB, free: 12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.267e-05/0.29, allocations: 89.45 kB / 0.5094 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.2902, allocations: 389 kB / 0.5098 GB, free: 11.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.2903, allocations: 0 / 0.5098 GB, free: 11.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2903, allocations: 0 / 0.5098 GB, free: 11.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2903, allocations: 0 / 0.5098 GB, free: 11.53 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0007935/0.2911, allocations: 0.6582 MB / 0.5105 GB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2911, allocations: 15.98 kB / 0.5105 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.823e-05/0.2912, allocations: 51.34 kB / 0.5105 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.2916, allocations: 365.1 kB / 0.5109 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.2916, allocations: 28.55 kB / 0.5109 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.743e-05/0.2917, allocations: 32 kB / 0.5109 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.2922, allocations: 364.4 kB / 0.5113 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2922, allocations: 0 / 0.5113 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.2923, allocations: 12 kB / 0.5113 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.2923, allocations: 11.94 kB / 0.5113 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004236/0.2927, allocations: 258.5 kB / 0.5115 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.294, allocations: 1.209 MB / 0.5127 GB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.2945, allocations: 263.4 kB / 0.513 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.2945, allocations: 8.125 kB / 0.513 GB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.2945, allocations: 42.73 kB / 0.513 GB, free: 8.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.2945, allocations: 0 / 0.513 GB, free: 8.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.000605/0.2951, allocations: 346.1 kB / 0.5134 GB, free: 7.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.2952, allocations: 136.5 kB / 0.5135 GB, free: 7.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.2955, allocations: 361.6 kB / 0.5138 GB, free: 7.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.2955, allocations: 29.7 kB / 0.5139 GB, free: 7.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.2956, allocations: 224.3 kB / 0.5141 GB, free: 6.918 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.65e-05/0.2957, allocations: 82.83 kB / 0.5142 GB, free: 6.836 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.245e-05/0.2957, allocations: 8 kB / 0.5142 GB, free: 6.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.276e-05/0.2958, allocations: 346.8 kB / 0.5145 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.2959, allocations: 88.44 kB / 0.5146 GB, free: 6.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.2961, allocations: 150.8 kB / 0.5147 GB, free: 6.227 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.2963, allocations: 107.9 kB / 0.5148 GB, free: 6.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2963, allocations: 4 kB / 0.5148 GB, free: 6.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004212/0.2968, allocations: 297 kB / 0.5151 GB, free: 5.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/0.2969, allocations: 360 kB / 0.5155 GB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.2969, allocations: 8 kB / 0.5155 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2969, allocations: 0 / 0.5155 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.2971, allocations: 51.97 kB / 0.5155 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.2971, allocations: 7.938 kB / 0.5155 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.2973, allocations: 43.83 kB / 0.5156 GB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.2973, allocations: 4 kB / 0.5156 GB, free: 5.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/0.2973, allocations: 6.5 kB / 0.5156 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002818/0.2976, allocations: 199.8 kB / 0.5158 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-06/0.2976, allocations: 4 kB / 0.5158 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-06/0.2977, allocations: 7.891 kB / 0.5158 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.2978, allocations: 47.92 kB / 0.5158 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.186e-06/0.2978, allocations: 8.094 kB / 0.5158 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.298, allocations: 39.67 kB / 0.5159 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.298, allocations: 11.98 kB / 0.5159 GB, free: 5.012 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001353/0.2982, allocations: 233.1 kB / 0.5161 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.205e-05/0.2982, allocations: 39.53 kB / 0.5161 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.759e-05/0.2983, allocations: 47.41 kB / 0.5162 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.2983, allocations: 3.953 kB / 0.5162 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2983, allocations: 4 kB / 0.5162 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2983, allocations: 0 / 0.5162 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000327/0.2987, allocations: 429.2 kB / 0.5166 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2987, allocations: 0 / 0.5166 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.2989, allocations: 47.91 kB / 0.5166 GB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2989, allocations: 0 / 0.5166 GB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.2989, allocations: 8 kB / 0.5167 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2989, allocations: 3.984 kB / 0.5167 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2989, allocations: 7.953 kB / 0.5167 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005753/0.2995, allocations: 475 kB / 0.5171 GB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.477e-05/0.2996, allocations: 136.6 kB / 0.5172 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.2997, allocations: 7.984 kB / 0.5173 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.2999, allocations: 31.92 kB / 0.5173 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.2999, allocations: 23.98 kB / 0.5173 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.3, allocations: 4 kB / 0.5173 GB, free: 3.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002071/0.3002, allocations: 255.2 kB / 0.5176 GB, free: 3.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3002, allocations: 0 / 0.5176 GB, free: 3.195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003893/0.3006, allocations: 123.5 kB / 0.5177 GB, free: 3.074 MB / 382.1 MB 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 8.447e-05/0.3007, allocations: 111.2 kB / 0.5178 GB, free: 2.953 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.3012, allocations: 338.5 kB / 0.5181 GB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3012, allocations: 0 / 0.5181 GB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.3014, allocations: 124.2 kB / 0.5182 GB, free: 2.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.3019, allocations: 73.48 kB / 0.5183 GB, free: 2.434 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.3029, allocations: 0.8664 MB / 0.5191 GB, free: 1.547 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.3031, allocations: 0.8109 MB / 0.5199 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.3032, allocations: 34.97 kB / 0.52 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/0.3033, allocations: 23.44 kB / 0.52 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3033, allocations: 4 kB / 0.52 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of Templates: time 0.006459/0.3098, allocations: 3.287 MB / 0.5232 GB, free: 13.39 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) Environment - environmentSimulation: