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.505/1.505, allocations: 251.9 MB / 266.9 MB, free: 11 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.001041/0.001041, allocations: 189.8 kB / 326.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.0008442/0.0008442, allocations: 94.34 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003838, allocations: 9.125 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2308, allocations: 106.3 MB / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.4042, allocations: 138.5 MB / 1.035 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.4045, allocations: 79.97 kB / 1.035 GB, free: 5.094 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01843/0.423, allocations: 6.98 MB / 1.042 GB, free: 14.09 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.195e-06/0.423, allocations: 0 / 1.042 GB, free: 14.09 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.804e-05/0.4231, allocations: 12 kB / 1.042 GB, free: 14.07 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.001249/0.4243, allocations: 0.6546 MB / 1.043 GB, free: 13.37 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.336e-05/0.4244, allocations: 8.031 kB / 1.043 GB, free: 13.36 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.4246, allocations: 70.53 kB / 1.043 GB, free: 13.29 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.4247, allocations: 51.39 kB / 1.043 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008525/0.4256, allocations: 375.2 kB / 1.043 GB, free: 12.83 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.047e-05/0.4257, allocations: 28.66 kB / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.938e-05/0.4257, allocations: 28 kB / 1.043 GB, free: 12.77 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007895/0.4265, allocations: 362 kB / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.4266, allocations: 0 / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.992e-05/0.4266, allocations: 16 kB / 1.044 GB, free: 12.38 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.4266, allocations: 8 kB / 1.044 GB, free: 12.37 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000619/0.4273, allocations: 246.1 kB / 1.044 GB, free: 12.12 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.4294, allocations: 1.248 MB / 1.045 GB, free: 10.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000706/0.4301, allocations: 291.2 kB / 1.046 GB, free: 10.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.4302, allocations: 4.188 kB / 1.046 GB, free: 10.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.4302, allocations: 30.75 kB / 1.046 GB, free: 10.46 MB / 0.698 GB Notification: Performance of pre-optimization done (n=22): time 2.104e-06/0.4302, allocations: 0 / 1.046 GB, free: 10.46 MB / 0.698 GB Notification: Performance of matching and sorting (n=22): time 0.0007884/0.431, allocations: 349.7 kB / 1.046 GB, free: 10.12 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.4311, allocations: 158.2 kB / 1.046 GB, free: 9.926 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.4315, allocations: 308.9 kB / 1.046 GB, free: 9.617 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.4315, allocations: 37.7 kB / 1.046 GB, free: 9.574 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.4317, allocations: 212.3 kB / 1.047 GB, free: 9.363 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.417e-05/0.4318, allocations: 74.86 kB / 1.047 GB, free: 9.289 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.4318, allocations: 7.938 kB / 1.047 GB, free: 9.281 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.432, allocations: 346.8 kB / 1.047 GB, free: 8.934 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.4322, allocations: 91.95 kB / 1.047 GB, free: 8.844 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.4324, allocations: 167.6 kB / 1.047 GB, free: 8.652 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.4327, allocations: 100.6 kB / 1.047 GB, free: 8.555 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.4327, allocations: 0 / 1.047 GB, free: 8.555 MB / 0.698 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005433/0.4332, allocations: 303.2 kB / 1.048 GB, free: 8.254 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.4333, allocations: 6.969 kB / 1.048 GB, free: 8.25 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4333, allocations: 0 / 1.048 GB, free: 8.25 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.4333, allocations: 11.92 kB / 1.048 GB, free: 8.238 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.4336, allocations: 55.88 kB / 1.048 GB, free: 8.184 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.4336, allocations: 8.109 kB / 1.048 GB, free: 8.176 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.4338, allocations: 39.83 kB / 1.048 GB, free: 8.137 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.4339, allocations: 12 kB / 1.048 GB, free: 8.125 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.0001829/0.434, allocations: 161.8 kB / 1.048 GB, free: 7.957 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.4341, allocations: 35.53 kB / 1.048 GB, free: 7.922 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.007e-05/0.4342, allocations: 43.47 kB / 1.048 GB, free: 7.879 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.4342, allocations: 4 kB / 1.048 GB, free: 7.875 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4342, allocations: 3.953 kB / 1.048 GB, free: 7.871 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.4342, allocations: 0 / 1.048 GB, free: 7.871 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004535/0.4347, allocations: 417.3 kB / 1.048 GB, free: 7.414 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.4347, allocations: 4 kB / 1.048 GB, free: 7.41 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002437/0.435, allocations: 47.92 kB / 1.048 GB, free: 7.363 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.852e-06/0.435, allocations: 3.984 kB / 1.048 GB, free: 7.359 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.435, allocations: 0 / 1.048 GB, free: 7.359 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.435, allocations: 8 kB / 1.048 GB, free: 7.352 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.435, allocations: 0 / 1.048 GB, free: 7.352 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007621/0.4358, allocations: 488.1 kB / 1.049 GB, free: 6.863 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.436, allocations: 136.6 kB / 1.049 GB, free: 6.711 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.922e-05/0.436, allocations: 8 kB / 1.049 GB, free: 6.703 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.4363, allocations: 36.03 kB / 1.049 GB, free: 6.668 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.4363, allocations: 23.91 kB / 1.049 GB, free: 6.645 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.4364, allocations: 4 kB / 1.049 GB, free: 6.641 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002707/0.4366, allocations: 243.2 kB / 1.049 GB, free: 6.406 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4366, allocations: 0 / 1.049 GB, free: 6.406 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003494/0.437, allocations: 75.8 kB / 1.049 GB, free: 6.332 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.001083/0.4381, allocations: 1.017 MB / 1.05 GB, free: 5.285 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004714/0.4386, allocations: 227.7 kB / 1.051 GB, free: 5.062 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4386, allocations: 320 / 1.051 GB, free: 5.062 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.4388, allocations: 123.9 kB / 1.051 GB, free: 4.941 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.4393, allocations: 68.27 kB / 1.051 GB, free: 4.871 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.4431, allocations: 2.733 MB / 1.053 GB, free: 2.074 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.4436, allocations: 0.7992 MB / 1.054 GB, free: 1.25 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001863/0.4438, allocations: 38.95 kB / 1.054 GB, free: 1.207 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.444, allocations: 123.4 kB / 1.054 GB, free: 1.086 MB / 0.698 GB Notification: Performance of SimCode: time 2.11e-07/0.444, allocations: 0 / 1.054 GB, free: 1.086 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4113/0.8553, allocations: 6.682 MB / 1.061 GB, free: 148.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.8555, allocations: 195 kB / 1.061 GB, free: 148 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.16/3.015, allocations: 0 / 1.061 GB, free: 148 MB / 0.698 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)