Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",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.00111/0.00111, allocations: 105.4 kB / 15.7 MB, free: 24 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.001153/0.001153, allocations: 194.6 kB / 16.64 MB, free: 6.453 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.264/1.264, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.718/1.718, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001661/0.001662, allocations: 73.09 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2181, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004762/0.2229, allocations: 3.149 MB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001924/0.2248, allocations: 1.01 MB / 0.7877 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003879/0.2253, allocations: 11.94 kB / 0.7877 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.2256, allocations: 75.25 kB / 0.7878 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003019/0.2259, allocations: 95.09 kB / 0.7879 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006073/0.2265, allocations: 242.7 kB / 0.7881 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000616/0.2271, allocations: 0.5466 MB / 0.7886 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004303/0.2276, allocations: 259.7 kB / 0.7889 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002927/0.2279, allocations: 199.1 kB / 0.7891 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.2282, allocations: 210.9 kB / 0.7893 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.194e-05/0.2283, allocations: 52 kB / 0.7893 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.498e-05/0.2283, allocations: 52 kB / 0.7894 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.297e-05/0.2284, allocations: 111.6 kB / 0.7895 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.2286, allocations: 234.7 kB / 0.7897 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005554/0.2292, allocations: 0.5761 MB / 0.7903 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2292, allocations: 0 / 0.7903 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.744e-06/0.2292, allocations: 0 / 0.7903 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.716e-05/0.2293, allocations: 0 / 0.7903 GB, free: 6.434 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001294/0.2305, allocations: 0.766 MB / 0.791 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2306, allocations: 8.031 kB / 0.791 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.051e-05/0.2307, allocations: 74.72 kB / 0.7911 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.2308, allocations: 56.28 kB / 0.7911 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006519/0.2314, allocations: 416.6 kB / 0.7915 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.2315, allocations: 33.38 kB / 0.7916 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.819e-05/0.2316, allocations: 40.31 kB / 0.7916 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006351/0.2322, allocations: 397.8 kB / 0.792 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2322, allocations: 0 / 0.792 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.2323, allocations: 16 kB / 0.792 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.2323, allocations: 16 kB / 0.792 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000545/0.2328, allocations: 259.8 kB / 0.7923 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.2346, allocations: 1.312 MB / 0.7935 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006622/0.2352, allocations: 316.2 kB / 0.7938 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.2355, allocations: 148.7 kB / 0.794 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.2355, allocations: 4 kB / 0.794 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.2359, allocations: 169.6 kB / 0.7941 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=33): time 1.904e-06/0.2359, allocations: 0 / 0.7941 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=33): time 0.0007695/0.2367, allocations: 386.8 kB / 0.7945 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.2367, allocations: 85.09 kB / 0.7946 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.2371, allocations: 353.6 kB / 0.7949 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.2371, allocations: 33.7 kB / 0.795 GB, free: 1.348 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.2373, allocations: 240.8 kB / 0.7952 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.215e-05/0.2374, allocations: 106.5 kB / 0.7953 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.2375, allocations: 66.06 kB / 0.7954 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.2377, allocations: 354.8 kB / 0.7957 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.2379, allocations: 96.7 kB / 0.7958 GB, free: 492 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.2382, allocations: 168.4 kB / 0.796 GB, free: 296 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.2386, allocations: 263.8 kB / 0.7962 GB, free: 12 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2386, allocations: 3.938 kB / 0.7962 GB, free: 8 kB / 0.6075 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000622/0.2392, allocations: 350.7 kB / 0.7965 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.2393, allocations: 4 kB / 0.7965 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2393, allocations: 4 kB / 0.7965 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2393, allocations: 4 kB / 0.7966 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.2396, allocations: 63.91 kB / 0.7966 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.2396, allocations: 11.92 kB / 0.7966 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.2398, allocations: 35.67 kB / 0.7967 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.2398, allocations: 12 kB / 0.7967 GB, free: 15.52 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0001801/0.24, allocations: 177.8 kB / 0.7968 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/0.24, allocations: 35.53 kB / 0.7969 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.585e-05/0.2401, allocations: 48.25 kB / 0.7969 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2402, allocations: 0 / 0.7969 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.2402, allocations: 4 kB / 0.7969 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2402, allocations: 3.984 kB / 0.7969 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.2412, allocations: 0.8157 MB / 0.7977 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.2413, allocations: 4 kB / 0.7977 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.2415, allocations: 51.91 kB / 0.7978 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.2415, allocations: 0 / 0.7978 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.2416, allocations: 11.98 kB / 0.7978 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2416, allocations: 0 / 0.7978 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.2416, allocations: 3.938 kB / 0.7978 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007955/0.2424, allocations: 0.5083 MB / 0.7983 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.2425, allocations: 136.6 kB / 0.7984 GB, free: 13.63 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/0.2426, allocations: 8 kB / 0.7984 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.2428, allocations: 15.98 kB / 0.7984 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.503e-05/0.2428, allocations: 31.94 kB / 0.7985 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.2429, allocations: 8 kB / 0.7985 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002395/0.2431, allocations: 247.1 kB / 0.7987 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.372e-06/0.2431, allocations: 4.062 kB / 0.7987 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003306/0.2435, allocations: 87.62 kB / 0.7988 GB, free: 13.24 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001052/0.2445, allocations: 1.072 MB / 0.7999 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00053/0.2451, allocations: 264 kB / 0.8001 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2451, allocations: 4 kB / 0.8001 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.2453, allocations: 131.8 kB / 0.8002 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.2458, allocations: 84.33 kB / 0.8003 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004359/0.2502, allocations: 3.431 MB / 0.8037 GB, free: 8.133 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.2506, allocations: 0.8113 MB / 0.8045 GB, free: 7.293 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001721/0.2508, allocations: 47.25 kB / 0.8045 GB, free: 7.25 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.251, allocations: 135.4 kB / 0.8046 GB, free: 7.117 MB / 0.6231 GB Notification: Performance of SimCode: time 5.61e-07/0.251, allocations: 4 kB / 0.8046 GB, free: 7.113 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02568/0.2767, allocations: 7.329 MB / 0.8118 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.458/9.734, allocations: 2.812 kB / 0.8118 GB, free: 15.91 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)