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.649/1.649, allocations: 249.3 MB / 261.8 MB, free: 5.824 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.001111, allocations: 170.2 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.2 MB / 0.572 GB, free: 10.67 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.0008085/0.0008085, allocations: 88.62 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.705e-05/3.716e-05, allocations: 7.984 kB / 0.788 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2287, allocations: 106.3 MB / 0.8919 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6792/0.9079, allocations: 138.4 MB / 1.027 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.9082, allocations: 81.62 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01825/0.9265, allocations: 6.937 MB / 1.034 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9265, allocations: 0 / 1.034 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.686e-05/0.9266, allocations: 15.31 kB / 1.034 GB, free: 6.574 MB / 0.6511 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.0009554/0.9275, allocations: 0.5974 MB / 1.034 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.9276, allocations: 11.97 kB / 1.034 GB, free: 5.945 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.901e-05/0.9277, allocations: 64.41 kB / 1.035 GB, free: 5.891 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.863e-05/0.9278, allocations: 51.39 kB / 1.035 GB, free: 5.84 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005811/0.9283, allocations: 377.8 kB / 1.035 GB, free: 5.484 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.9284, allocations: 23.41 kB / 1.035 GB, free: 5.473 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.567e-05/0.9284, allocations: 27.25 kB / 1.035 GB, free: 5.453 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005681/0.929, allocations: 348 kB / 1.035 GB, free: 5.184 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.9291, allocations: 0 / 1.035 GB, free: 5.184 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.727e-05/0.9291, allocations: 14.56 kB / 1.035 GB, free: 5.18 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.9291, allocations: 8 kB / 1.035 GB, free: 5.172 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003767/0.9295, allocations: 205.5 kB / 1.036 GB, free: 5.047 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.9313, allocations: 1.242 MB / 1.037 GB, free: 3.953 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004922/0.9318, allocations: 244.9 kB / 1.037 GB, free: 3.789 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.932, allocations: 96.98 kB / 1.037 GB, free: 3.73 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.932, allocations: 192 / 1.037 GB, free: 3.73 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.9321, allocations: 42.12 kB / 1.037 GB, free: 3.684 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=22): time 3.496e-06/0.9321, allocations: 4 kB / 1.037 GB, free: 3.68 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22): time 0.0004202/0.9325, allocations: 221 kB / 1.037 GB, free: 3.512 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.608e-05/0.9326, allocations: 158.2 kB / 1.037 GB, free: 3.32 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.9329, allocations: 303.3 kB / 1.038 GB, free: 3.078 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.933, allocations: 32.83 kB / 1.038 GB, free: 3.043 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.9331, allocations: 210.4 kB / 1.038 GB, free: 2.891 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.205e-05/0.9332, allocations: 81.08 kB / 1.038 GB, free: 2.82 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.9332, allocations: 3.125 kB / 1.038 GB, free: 2.82 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.9334, allocations: 346.8 kB / 1.038 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.9335, allocations: 76.12 kB / 1.038 GB, free: 2.441 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.9337, allocations: 143.7 kB / 1.039 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.9338, allocations: 83.77 kB / 1.039 GB, free: 2.262 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.9339, allocations: 0 / 1.039 GB, free: 2.262 MB / 0.6511 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004002/0.9343, allocations: 259.4 kB / 1.039 GB, free: 2.066 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.9343, allocations: 8 kB / 1.039 GB, free: 2.059 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.9343, allocations: 0 / 1.039 GB, free: 2.059 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.9343, allocations: 7.953 kB / 1.039 GB, free: 2.051 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/0.9346, allocations: 56.03 kB / 1.039 GB, free: 1.996 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.9346, allocations: 4 kB / 1.039 GB, free: 1.992 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.9348, allocations: 47.12 kB / 1.039 GB, free: 1.949 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.9349, allocations: 7.188 kB / 1.039 GB, free: 1.945 MB / 0.6511 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 () * 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.0001488/0.935, allocations: 120.1 kB / 1.039 GB, free: 1.828 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.404e-05/0.9351, allocations: 35.62 kB / 1.039 GB, free: 1.793 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.706e-05/0.9352, allocations: 41.67 kB / 1.039 GB, free: 1.77 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.9352, allocations: 4 kB / 1.039 GB, free: 1.766 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.9352, allocations: 3.953 kB / 1.039 GB, free: 1.762 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.9352, allocations: 0 / 1.039 GB, free: 1.762 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004464/0.9357, allocations: 407.8 kB / 1.04 GB, free: 1.406 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.9357, allocations: 4 kB / 1.04 GB, free: 1.402 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.9359, allocations: 50.97 kB / 1.04 GB, free: 1.355 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.936, allocations: 8.031 kB / 1.04 GB, free: 1.348 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.936, allocations: 11.73 kB / 1.04 GB, free: 1.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.936, allocations: 4 kB / 1.04 GB, free: 1.336 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.936, allocations: 0 / 1.04 GB, free: 1.336 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005639/0.9366, allocations: 420.3 kB / 1.04 GB, free: 1.016 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.9367, allocations: 133.4 kB / 1.04 GB, free: 0.8828 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.427e-05/0.9368, allocations: 3.5 kB / 1.04 GB, free: 0.8828 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.937, allocations: 38.75 kB / 1.04 GB, free: 0.8477 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.07e-05/0.9371, allocations: 18.53 kB / 1.04 GB, free: 0.832 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.9371, allocations: 7 kB / 1.04 GB, free: 0.8281 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002453/0.9373, allocations: 243.8 kB / 1.041 GB, free: 0.6367 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9374, allocations: 0 / 1.041 GB, free: 0.6367 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000317/0.9377, allocations: 78.66 kB / 1.041 GB, free: 0.5664 MB / 0.6511 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) * 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.0008728/0.9386, allocations: 0.9593 MB / 1.042 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003107/0.9389, allocations: 196.9 kB / 1.042 GB, free: 15.56 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9389, allocations: 0 / 1.042 GB, free: 15.56 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.9391, allocations: 98.73 kB / 1.042 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.9395, allocations: 76.42 kB / 1.042 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.9408, allocations: 0.5677 MB / 1.042 GB, free: 14.91 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.9412, allocations: 0.7992 MB / 1.043 GB, free: 14.08 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001733/0.9414, allocations: 38.95 kB / 1.043 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.9415, allocations: 125.4 kB / 1.043 GB, free: 14 MB / 0.6667 GB Notification: Performance of SimCode: time 6.31e-07/0.9415, allocations: 0 / 1.043 GB, free: 14 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.9675, allocations: 6.596 MB / 1.05 GB, free: 7.539 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000311/0.9679, allocations: 166.4 kB / 1.05 GB, free: 7.312 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/3.059, allocations: 3.938 kB / 1.05 GB, free: 7.309 MB / 0.6667 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)