Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.788/1.788, allocations: 288.2 MB / 303.2 MB, free: 8.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00128/0.00128, allocations: 187.5 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.4 MB / 0.6305 GB, free: 10.01 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 86.92 kB / 0.7439 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004123/0.0004124, allocations: 10.28 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2601, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002838/0.263, allocations: 2.493 MB / 0.9819 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.2644, allocations: 0.8818 MB / 0.9828 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.2647, allocations: 11.94 kB / 0.9828 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 6.406e-05/0.2647, allocations: 31.64 kB / 0.9828 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004006/0.2651, allocations: 111.6 kB / 0.9829 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003829/0.2655, allocations: 157.9 kB / 0.9831 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.2659, allocations: 304 kB / 0.9833 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.2662, allocations: 153 kB / 0.9835 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001772/0.2664, allocations: 131.4 kB / 0.9836 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.2665, allocations: 127.2 kB / 0.9837 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.071e-05/0.2666, allocations: 8 kB / 0.9837 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 3.316e-05/0.2666, allocations: 12 kB / 0.9838 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.021e-05/0.2666, allocations: 55.69 kB / 0.9838 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.2667, allocations: 89.52 kB / 0.9839 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.267, allocations: 371.2 kB / 0.9842 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.267, allocations: 0 / 0.9842 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.543e-06/0.267, allocations: 0 / 0.9842 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.267, allocations: 0 / 0.9842 GB, free: 22.68 MB / 0.6198 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.0009216/0.2679, allocations: 0.6436 MB / 0.9849 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.268, allocations: 16.02 kB / 0.9849 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.248e-05/0.2681, allocations: 70.47 kB / 0.985 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.996e-05/0.2681, allocations: 47.44 kB / 0.985 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.2686, allocations: 383.3 kB / 0.9854 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.2687, allocations: 28.59 kB / 0.9854 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.2687, allocations: 28 kB / 0.9854 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004826/0.2692, allocations: 329.2 kB / 0.9857 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.2692, allocations: 11.94 kB / 0.9857 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.2693, allocations: 11.98 kB / 0.9858 GB, free: 21 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2693, allocations: 8 kB / 0.9858 GB, free: 21 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004019/0.2697, allocations: 214.1 kB / 0.986 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.2709, allocations: 1.194 MB / 0.9871 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005121/0.2715, allocations: 241 kB / 0.9874 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.2715, allocations: 192 / 0.9874 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.2715, allocations: 42.69 kB / 0.9874 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 9.52e-07/0.2716, allocations: 0 / 0.9874 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.0005995/0.2722, allocations: 294.9 kB / 0.9877 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.2722, allocations: 118.8 kB / 0.9878 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.2725, allocations: 337.6 kB / 0.9881 GB, free: 18.46 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.2725, allocations: 29.7 kB / 0.9882 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.2727, allocations: 224.2 kB / 0.9884 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.928e-05/0.2727, allocations: 70.91 kB / 0.9884 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.347e-05/0.2728, allocations: 8 kB / 0.9884 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.333e-05/0.2728, allocations: 346.8 kB / 0.9888 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.273, allocations: 79.97 kB / 0.9888 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.2732, allocations: 135.7 kB / 0.989 GB, free: 17.53 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.2734, allocations: 97.28 kB / 0.9891 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2734, allocations: 0 / 0.9891 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004236/0.2738, allocations: 285.9 kB / 0.9893 GB, free: 17.15 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.2738, allocations: 5.562 kB / 0.9893 GB, free: 17.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2739, allocations: 0 / 0.9893 GB, free: 17.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2739, allocations: 4 kB / 0.9894 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.2741, allocations: 55.91 kB / 0.9894 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.2741, allocations: 3.953 kB / 0.9894 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.2743, allocations: 47.86 kB / 0.9895 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.2743, allocations: 19.98 kB / 0.9895 GB, free: 17.02 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 31 * 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.0001331/0.2745, allocations: 161.8 kB / 0.9896 GB, free: 16.85 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.2745, allocations: 31.62 kB / 0.9897 GB, free: 16.82 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.784e-05/0.2746, allocations: 35.36 kB / 0.9897 GB, free: 16.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2746, allocations: 4 kB / 0.9897 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.2746, allocations: 0 / 0.9897 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2746, allocations: 7.953 kB / 0.9897 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003295/0.275, allocations: 397.2 kB / 0.9901 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.275, allocations: 7.922 kB / 0.9901 GB, free: 16.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.2752, allocations: 47.91 kB / 0.9901 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2752, allocations: 0 / 0.9901 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.2752, allocations: 8 kB / 0.9901 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2752, allocations: 0 / 0.9901 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2752, allocations: 0 / 0.9901 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005783/0.2758, allocations: 430.8 kB / 0.9906 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.331e-05/0.2759, allocations: 132.7 kB / 0.9907 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.257e-05/0.276, allocations: 8 kB / 0.9907 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.2762, allocations: 23.98 kB / 0.9907 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.2762, allocations: 19.97 kB / 0.9907 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.2762, allocations: 7.984 kB / 0.9907 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001937/0.2764, allocations: 235.2 kB / 0.991 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2764, allocations: 0 / 0.991 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003/0.2768, allocations: 71.75 kB / 0.991 GB, free: 15.33 MB / 0.6198 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.0007357/0.2775, allocations: 0.9662 MB / 0.992 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003925/0.2779, allocations: 204 kB / 0.9922 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2779, allocations: 0 / 0.9922 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.2781, allocations: 103.9 kB / 0.9923 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.2786, allocations: 65.58 kB / 0.9923 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002993/0.2816, allocations: 2.916 MB / 0.9952 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.2818, allocations: 0.7992 MB / 0.996 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000168/0.282, allocations: 42.95 kB / 0.996 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.2821, allocations: 119.4 kB / 0.9961 GB, free: 10 MB / 0.6198 GB Notification: Performance of SimCode: time 4.91e-07/0.2821, allocations: 0 / 0.9961 GB, free: 10 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.3004, allocations: 6.196 MB / 1.002 GB, free: 3.973 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/0.3007, allocations: 198 kB / 1.002 GB, free: 3.73 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.28/2.581, allocations: 7.938 kB / 1.002 GB, free: 3.723 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)