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.229/1.229, allocations: 251.5 MB / 266.7 MB, free: 11.06 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.0008431/0.0008427, allocations: 170.3 kB / 325.8 MB, free: 2.691 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.277/1.277, allocations: 205 MB / 0.576 GB, free: 20.92 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.0006561/0.0006561, allocations: 93.17 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000259/0.0002591, allocations: 11.2 kB / 0.7932 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1375, allocations: 105.4 MB / 0.8962 GB, free: 68.07 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002256/0.1398, allocations: 2.71 MB / 0.8988 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1408, allocations: 0.928 MB / 0.8997 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.141, allocations: 11.94 kB / 0.8998 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1412, allocations: 47.58 kB / 0.8998 GB, free: 64.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.1413, allocations: 71.42 kB / 0.8999 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003523/0.1417, allocations: 204.1 kB / 0.9001 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.142, allocations: 451.2 kB / 0.9005 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1422, allocations: 197.2 kB / 0.9007 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.1423, allocations: 131.2 kB / 0.9008 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.1424, allocations: 131.1 kB / 0.9009 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.083e-05/0.1425, allocations: 15.94 kB / 0.9009 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.859e-05/0.1425, allocations: 12 kB / 0.901 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.214e-05/0.1425, allocations: 59.62 kB / 0.901 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.194e-05/0.1426, allocations: 154.9 kB / 0.9012 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.1429, allocations: 450.2 kB / 0.9016 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1429, allocations: 7.938 kB / 0.9016 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.192e-06/0.1429, allocations: 0 / 0.9016 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.1429, allocations: 0 / 0.9016 GB, free: 62.5 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.0006598/0.1435, allocations: 0.6429 MB / 0.9022 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.1436, allocations: 8.031 kB / 0.9022 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.1436, allocations: 66.72 kB / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.1437, allocations: 48.36 kB / 0.9023 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.1441, allocations: 396.3 kB / 0.9027 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.1441, allocations: 29.03 kB / 0.9028 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.1442, allocations: 28.38 kB / 0.9028 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.1446, allocations: 341.2 kB / 0.9031 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1446, allocations: 3.938 kB / 0.9031 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.1446, allocations: 20 kB / 0.9031 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.1446, allocations: 8 kB / 0.9031 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003621/0.145, allocations: 210.1 kB / 0.9033 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.146, allocations: 1.197 MB / 0.9045 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004332/0.1464, allocations: 234.7 kB / 0.9047 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1466, allocations: 124 kB / 0.9048 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.1467, allocations: 4 kB / 0.9048 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.188e-05/0.1467, allocations: 30.94 kB / 0.9049 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.1467, allocations: 0 / 0.9049 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22): time 0.0005042/0.1472, allocations: 301 kB / 0.9052 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.1472, allocations: 110.8 kB / 0.9053 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.1475, allocations: 333.7 kB / 0.9056 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.1475, allocations: 37.69 kB / 0.9056 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.967e-05/0.1476, allocations: 220.1 kB / 0.9058 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.1476, allocations: 78.94 kB / 0.9059 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.1477, allocations: 29.7 kB / 0.9059 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.72e-05/0.1477, allocations: 346.8 kB / 0.9063 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.1479, allocations: 79.97 kB / 0.9063 GB, free: 57.35 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.148, allocations: 139.7 kB / 0.9065 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.1483, allocations: 220.7 kB / 0.9067 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1484, allocations: 3.938 kB / 0.9067 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003874/0.1487, allocations: 281 kB / 0.907 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.1488, allocations: 4.188 kB / 0.907 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1488, allocations: 8 kB / 0.907 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1488, allocations: 0 / 0.907 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.149, allocations: 55.91 kB / 0.907 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.149, allocations: 0 / 0.907 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.1492, allocations: 43.75 kB / 0.9071 GB, free: 56.56 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.1492, allocations: 15.98 kB / 0.9071 GB, free: 56.54 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 (con.hys.y,$PRE.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.0001079/0.1493, allocations: 161.9 kB / 0.9072 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.664e-05/0.1494, allocations: 39.53 kB / 0.9073 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.205e-05/0.1494, allocations: 39.3 kB / 0.9073 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1494, allocations: 4 kB / 0.9073 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1494, allocations: 0 / 0.9073 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1494, allocations: 3.984 kB / 0.9073 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.1497, allocations: 393.2 kB / 0.9077 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1497, allocations: 3.984 kB / 0.9077 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.1499, allocations: 47.92 kB / 0.9077 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1499, allocations: 0 / 0.9077 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.15, allocations: 4 kB / 0.9077 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.15, allocations: 0 / 0.9077 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.15, allocations: 3.984 kB / 0.9078 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.1505, allocations: 434.7 kB / 0.9082 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.189e-05/0.1506, allocations: 132.6 kB / 0.9083 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.1506, allocations: 4 kB / 0.9083 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.1508, allocations: 23.97 kB / 0.9083 GB, free: 55.18 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.1508, allocations: 19.98 kB / 0.9083 GB, free: 55.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.1508, allocations: 7.984 kB / 0.9083 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001564/0.151, allocations: 239.2 kB / 0.9086 GB, free: 54.92 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.151, allocations: 0 / 0.9086 GB, free: 54.92 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002578/0.1513, allocations: 67.75 kB / 0.9086 GB, free: 54.85 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.0006269/0.1519, allocations: 0.9666 MB / 0.9096 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000354/0.1523, allocations: 207.7 kB / 0.9098 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1523, allocations: 448 / 0.9098 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.1524, allocations: 107.9 kB / 0.9099 GB, free: 53.55 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.1529, allocations: 70.08 kB / 0.91 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.1559, allocations: 3.298 MB / 0.9132 GB, free: 50.08 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.1561, allocations: 0.7912 MB / 0.9139 GB, free: 49.26 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001327/0.1562, allocations: 34.95 kB / 0.914 GB, free: 49.23 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1563, allocations: 127.3 kB / 0.9141 GB, free: 49.1 MB / 0.6042 GB Notification: Performance of SimCode: time 2.81e-07/0.1563, allocations: 0 / 0.9141 GB, free: 49.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3879/0.5442, allocations: 6.124 MB / 0.9201 GB, free: 43.14 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.5444, allocations: 213 kB / 0.9203 GB, free: 42.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.477, allocations: 0 / 0.9203 GB, free: 42.89 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)