Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001307, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 188.4 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.666/1.666, allocations: 292.3 MB / 0.549 GB, free: 12.71 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 63.52 kB / 0.6718 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2083, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004186/0.2125, allocations: 2.994 MB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.2142, allocations: 0.9516 MB / 0.7875 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.2144, allocations: 11.94 kB / 0.7875 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.2147, allocations: 67.31 kB / 0.7875 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.2149, allocations: 83.19 kB / 0.7876 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.2154, allocations: 230.3 kB / 0.7878 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004269/0.2158, allocations: 491.2 kB / 0.7883 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003157/0.2161, allocations: 213.8 kB / 0.7885 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.2163, allocations: 183.2 kB / 0.7887 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.2165, allocations: 179 kB / 0.7889 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.963e-05/0.2166, allocations: 44 kB / 0.7889 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.116e-05/0.2166, allocations: 44 kB / 0.7889 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.571e-05/0.2167, allocations: 91.7 kB / 0.789 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.2169, allocations: 202.8 kB / 0.7892 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004448/0.2173, allocations: 0.4905 MB / 0.7897 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2173, allocations: 0 / 0.7897 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.724e-06/0.2173, allocations: 0 / 0.7897 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.279e-05/0.2173, allocations: 0 / 0.7897 GB, free: 6.988 MB / 0.6075 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.001089/0.2184, allocations: 0.7128 MB / 0.7904 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.2185, allocations: 15.95 kB / 0.7904 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.889e-05/0.2186, allocations: 62.73 kB / 0.7905 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.785e-05/0.2187, allocations: 48.38 kB / 0.7905 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006037/0.2193, allocations: 400.4 kB / 0.7909 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.2193, allocations: 25.03 kB / 0.7909 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/0.2194, allocations: 24.38 kB / 0.7909 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.2199, allocations: 349.2 kB / 0.7913 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2199, allocations: 4 kB / 0.7913 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.2199, allocations: 12 kB / 0.7913 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.22, allocations: 4 kB / 0.7913 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004432/0.2204, allocations: 214.1 kB / 0.7915 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.2218, allocations: 1.174 MB / 0.7927 GB, free: 3.77 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000561/0.2224, allocations: 234.8 kB / 0.7929 GB, free: 3.531 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.2226, allocations: 112.8 kB / 0.793 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.2226, allocations: 7.938 kB / 0.793 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.2227, allocations: 42.88 kB / 0.793 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.754e-06/0.2227, allocations: 0 / 0.793 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0006289/0.2233, allocations: 291.5 kB / 0.7933 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.2234, allocations: 106.8 kB / 0.7934 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.2237, allocations: 345.6 kB / 0.7937 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.2237, allocations: 29.7 kB / 0.7938 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.2239, allocations: 216.2 kB / 0.794 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.721e-05/0.2239, allocations: 86.89 kB / 0.7941 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.946e-05/0.224, allocations: 45.7 kB / 0.7941 GB, free: 2.211 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2241, allocations: 342.8 kB / 0.7944 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.2243, allocations: 79.95 kB / 0.7945 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.2245, allocations: 147.6 kB / 0.7946 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.2249, allocations: 216.8 kB / 0.7949 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2249, allocations: 3.938 kB / 0.7949 GB, free: 1.383 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000523/0.2255, allocations: 287.1 kB / 0.7951 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.2255, allocations: 4.938 kB / 0.7951 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2255, allocations: 8.188 kB / 0.7951 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2255, allocations: 3.938 kB / 0.7951 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/0.2258, allocations: 55.91 kB / 0.7952 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2258, allocations: 0 / 0.7952 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.226, allocations: 31.77 kB / 0.7952 GB, free: 0.9961 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.226, allocations: 12 kB / 0.7952 GB, free: 0.9844 MB / 0.6075 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.0001555/0.2262, allocations: 161.7 kB / 0.7954 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.2262, allocations: 35.53 kB / 0.7954 GB, free: 0.7812 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.32e-05/0.2263, allocations: 43.36 kB / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.2263, allocations: 0 / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.2263, allocations: 0 / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2263, allocations: 7.984 kB / 0.7955 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/0.2267, allocations: 397.2 kB / 0.7959 GB, free: 296 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2268, allocations: 0 / 0.7959 GB, free: 296 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/0.227, allocations: 39.92 kB / 0.7959 GB, free: 256 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.227, allocations: 0 / 0.7959 GB, free: 256 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.227, allocations: 11.98 kB / 0.7959 GB, free: 244 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.227, allocations: 0 / 0.7959 GB, free: 244 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.227, allocations: 4 kB / 0.7959 GB, free: 240 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006515/0.2277, allocations: 426.1 kB / 0.7963 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.2278, allocations: 128.6 kB / 0.7964 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.342e-05/0.2279, allocations: 11.98 kB / 0.7965 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.228, allocations: 16.05 kB / 0.7965 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.2281, allocations: 15.98 kB / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.2281, allocations: 7.984 kB / 0.7965 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002165/0.2284, allocations: 243.1 kB / 0.7967 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2284, allocations: 3.938 kB / 0.7967 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003109/0.2287, allocations: 63.84 kB / 0.7968 GB, free: 15.3 MB / 0.6231 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.0008632/0.2295, allocations: 0.9657 MB / 0.7977 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004396/0.23, allocations: 199.7 kB / 0.7979 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.23, allocations: 448 / 0.7979 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.2302, allocations: 106.5 kB / 0.798 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.2307, allocations: 71.89 kB / 0.7981 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003694/0.2344, allocations: 3.103 MB / 0.8011 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.2348, allocations: 0.7912 MB / 0.8019 GB, free: 9.91 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000157/0.2349, allocations: 38.95 kB / 0.8019 GB, free: 9.875 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.2351, allocations: 131.3 kB / 0.8021 GB, free: 9.75 MB / 0.6231 GB Notification: Performance of SimCode: time 1.182e-06/0.2351, allocations: 0 / 0.8021 GB, free: 9.75 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03723/0.2723, allocations: 6.57 MB / 0.8085 GB, free: 3.297 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.964/8.236, allocations: 8.531 kB / 0.8085 GB, free: 3.297 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)