Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.668/1.668, allocations: 252 MB / 267.3 MB, free: 10.85 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.001149/0.001149, allocations: 175.8 kB / 327 MB, free: 2.098 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.043/2.043, allocations: 205.4 MB / 0.578 GB, free: 20.13 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.001119/0.001119, allocations: 86.34 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003718, allocations: 8.062 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2671, allocations: 106.3 MB / 0.9009 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003475/0.2706, allocations: 2.642 MB / 0.9035 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002036/0.2727, allocations: 0.9202 MB / 0.9044 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005732/0.2733, allocations: 15.88 kB / 0.9044 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003412/0.2737, allocations: 47.58 kB / 0.9044 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004118/0.2741, allocations: 75.42 kB / 0.9045 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006718/0.2748, allocations: 193.8 kB / 0.9047 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006165/0.2754, allocations: 455.2 kB / 0.9051 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004547/0.2759, allocations: 205.2 kB / 0.9053 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/0.2762, allocations: 127.2 kB / 0.9055 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.2765, allocations: 139 kB / 0.9056 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.2766, allocations: 12 kB / 0.9056 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.128e-05/0.2767, allocations: 16 kB / 0.9056 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.949e-05/0.2767, allocations: 51.64 kB / 0.9057 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.2769, allocations: 188.6 kB / 0.9058 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004231/0.2774, allocations: 442.6 kB / 0.9063 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2774, allocations: 0 / 0.9063 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.925e-06/0.2774, allocations: 0 / 0.9063 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.841e-05/0.2774, allocations: 0 / 0.9063 GB, free: 57.88 MB / 0.6042 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.001357/0.2788, allocations: 0.6467 MB / 0.9069 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.244e-05/0.2789, allocations: 12.02 kB / 0.9069 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.279, allocations: 62.73 kB / 0.907 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.2791, allocations: 48.38 kB / 0.907 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007095/0.2798, allocations: 400.3 kB / 0.9074 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.2799, allocations: 21.03 kB / 0.9074 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.651e-05/0.28, allocations: 32.38 kB / 0.9074 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006307/0.2806, allocations: 345.2 kB / 0.9078 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.2806, allocations: 0 / 0.9078 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.2807, allocations: 12 kB / 0.9078 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.2807, allocations: 12 kB / 0.9078 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004914/0.2812, allocations: 218.1 kB / 0.908 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.2829, allocations: 1.194 MB / 0.9092 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005676/0.2835, allocations: 233.5 kB / 0.9094 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.2837, allocations: 120.8 kB / 0.9095 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.2837, allocations: 0 / 0.9095 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.2837, allocations: 38.94 kB / 0.9095 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=22): time 1.522e-06/0.2838, allocations: 0 / 0.9095 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22): time 0.0006671/0.2844, allocations: 305.9 kB / 0.9098 GB, free: 53.99 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.2845, allocations: 106.8 kB / 0.9099 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.2848, allocations: 333.7 kB / 0.9103 GB, free: 53.53 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.2849, allocations: 33.7 kB / 0.9103 GB, free: 53.49 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.285, allocations: 224.1 kB / 0.9105 GB, free: 53.26 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.558e-05/0.285, allocations: 78.94 kB / 0.9106 GB, free: 53.18 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.2851, allocations: 11.94 kB / 0.9106 GB, free: 53.17 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.916e-05/0.2852, allocations: 342.8 kB / 0.9109 GB, free: 52.83 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.2853, allocations: 79.91 kB / 0.911 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.2855, allocations: 143.7 kB / 0.9111 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.2859, allocations: 216.8 kB / 0.9113 GB, free: 52.35 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2859, allocations: 3.938 kB / 0.9113 GB, free: 52.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004828/0.2864, allocations: 288.9 kB / 0.9116 GB, free: 52.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.2865, allocations: 4 kB / 0.9116 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.2865, allocations: 7.938 kB / 0.9116 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.2865, allocations: 0 / 0.9116 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.2867, allocations: 59.91 kB / 0.9117 GB, free: 51.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.2867, allocations: 4 kB / 0.9117 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.2869, allocations: 35.98 kB / 0.9117 GB, free: 51.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.287, allocations: 8 kB / 0.9117 GB, free: 51.94 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001667/0.2872, allocations: 165.9 kB / 0.9119 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.238e-05/0.2872, allocations: 35.53 kB / 0.9119 GB, free: 51.73 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.142e-05/0.2873, allocations: 43.34 kB / 0.912 GB, free: 51.69 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2873, allocations: 4 kB / 0.912 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.2873, allocations: 0 / 0.912 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.2873, allocations: 0 / 0.912 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.2877, allocations: 397.2 kB / 0.9123 GB, free: 51.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2877, allocations: 0 / 0.9123 GB, free: 51.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.288, allocations: 43.91 kB / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.288, allocations: 0 / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.288, allocations: 8 kB / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.288, allocations: 0 / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.288, allocations: 0 / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006242/0.2886, allocations: 434.1 kB / 0.9128 GB, free: 50.76 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.2888, allocations: 132.6 kB / 0.9129 GB, free: 50.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.2888, allocations: 4 kB / 0.9129 GB, free: 50.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.289, allocations: 23.98 kB / 0.913 GB, free: 50.58 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/0.2891, allocations: 20.03 kB / 0.913 GB, free: 50.56 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.2891, allocations: 8 kB / 0.913 GB, free: 50.55 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002194/0.2893, allocations: 243.1 kB / 0.9132 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2893, allocations: 0 / 0.9132 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003313/0.2897, allocations: 71.69 kB / 0.9133 GB, free: 50.25 MB / 0.6042 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 (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.000785/0.2904, allocations: 0.9647 MB / 0.9142 GB, free: 49.26 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004023/0.2909, allocations: 208.2 kB / 0.9144 GB, free: 49.05 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2909, allocations: 0 / 0.9144 GB, free: 49.05 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.2911, allocations: 107.2 kB / 0.9145 GB, free: 48.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005528/0.2916, allocations: 77.38 kB / 0.9146 GB, free: 48.88 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003735/0.2954, allocations: 3.336 MB / 0.9179 GB, free: 45.43 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.2956, allocations: 0.7912 MB / 0.9186 GB, free: 44.61 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.000178/0.2958, allocations: 34.95 kB / 0.9187 GB, free: 44.58 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.296, allocations: 123.4 kB / 0.9188 GB, free: 44.46 MB / 0.6042 GB Notification: Performance of SimCode: time 7.21e-07/0.296, allocations: 4 kB / 0.9188 GB, free: 44.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.3132, allocations: 6.124 MB / 0.9248 GB, free: 38.49 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002551/0.3135, allocations: 211.5 kB / 0.925 GB, free: 38.24 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.402/2.716, allocations: 0 / 0.925 GB, free: 38.24 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)