Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.606/2.606, allocations: 287.5 MB / 302.4 MB, free: 8.145 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001382/0.001382, allocations: 178.7 kB / 371 MB, free: 10.79 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.4 MB / 0.6297 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001247/0.001246, allocations: 96.72 kB / 0.743 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000635/0.0006353, allocations: 14.89 kB / 0.8659 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2324, allocations: 115.3 MB / 0.9784 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003962/0.2364, allocations: 2.66 MB / 0.981 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002421/0.2389, allocations: 0.9402 MB / 0.982 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003778/0.2393, allocations: 15.94 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002303/0.2395, allocations: 55.5 kB / 0.982 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.2398, allocations: 63.42 kB / 0.9821 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.2405, allocations: 167 kB / 0.9822 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0005651/0.2411, allocations: 491.8 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003903/0.2415, allocations: 179.7 kB / 0.9829 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.2417, allocations: 139.2 kB / 0.983 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.242, allocations: 147.1 kB / 0.9832 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.242, allocations: 12 kB / 0.9832 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.769e-05/0.2421, allocations: 12 kB / 0.9832 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.461e-05/0.2422, allocations: 59.64 kB / 0.9832 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.591e-05/0.2423, allocations: 105.5 kB / 0.9833 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.2428, allocations: 431.1 kB / 0.9838 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2428, allocations: 0 / 0.9838 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.824e-06/0.2428, allocations: 0 / 0.9838 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.747e-06/0.2428, allocations: 0 / 0.9838 GB, free: 22.8 MB / 0.6198 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.001405/0.2442, allocations: 0.6939 MB / 0.9844 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.2443, allocations: 16.02 kB / 0.9844 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.2444, allocations: 74.53 kB / 0.9845 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.2445, allocations: 55.39 kB / 0.9846 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007212/0.2452, allocations: 399.6 kB / 0.985 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.2453, allocations: 36.94 kB / 0.985 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.727e-05/0.2454, allocations: 40 kB / 0.985 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008746/0.2463, allocations: 389.6 kB / 0.9854 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.2463, allocations: 0 / 0.9854 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.2464, allocations: 23.98 kB / 0.9854 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.2464, allocations: 11.94 kB / 0.9854 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008065/0.2472, allocations: 259.8 kB / 0.9857 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.2495, allocations: 1.34 MB / 0.987 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009688/0.2506, allocations: 302.6 kB / 0.9873 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000381/0.251, allocations: 146.9 kB / 0.9874 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.522e-05/0.251, allocations: 8 kB / 0.9874 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004946/0.2515, allocations: 177.5 kB / 0.9876 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=33): time 3.476e-06/0.2516, allocations: 0 / 0.9876 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=33): time 0.001181/0.2527, allocations: 389.8 kB / 0.988 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.2528, allocations: 81.11 kB / 0.988 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004654/0.2533, allocations: 345.6 kB / 0.9884 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.2533, allocations: 37.7 kB / 0.9884 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.2535, allocations: 229 kB / 0.9886 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.497e-05/0.2536, allocations: 110.5 kB / 0.9887 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.368e-05/0.2537, allocations: 8 kB / 0.9887 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.2538, allocations: 350.8 kB / 0.9891 GB, free: 17.07 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.2541, allocations: 104.7 kB / 0.9892 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003782/0.2545, allocations: 164.6 kB / 0.9893 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003674/0.2549, allocations: 117.5 kB / 0.9894 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2549, allocations: 0 / 0.9894 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009191/0.2558, allocations: 355.5 kB / 0.9898 GB, free: 16.31 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.2559, allocations: 8 kB / 0.9898 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2559, allocations: 0 / 0.9898 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.2559, allocations: 4 kB / 0.9898 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.2564, allocations: 63.91 kB / 0.9899 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.2564, allocations: 3.938 kB / 0.9899 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003374/0.2568, allocations: 51.83 kB / 0.9899 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.2568, allocations: 15.98 kB / 0.9899 GB, free: 16.17 MB / 0.6198 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 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.greaterEqualThreshold.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003094/0.2571, allocations: 178.8 kB / 0.9901 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.942e-05/0.2572, allocations: 35.62 kB / 0.9901 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.2574, allocations: 40.25 kB / 0.9902 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.2574, allocations: 4 kB / 0.9902 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.2574, allocations: 3.984 kB / 0.9902 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.2574, allocations: 7.984 kB / 0.9902 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.2589, allocations: 0.8114 MB / 0.991 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.2589, allocations: 0 / 0.991 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004358/0.2594, allocations: 47.91 kB / 0.991 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.2594, allocations: 8 kB / 0.991 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.999e-05/0.2594, allocations: 4 kB / 0.991 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.2595, allocations: 7.984 kB / 0.991 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2595, allocations: 0 / 0.991 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.2614, allocations: 0.5186 MB / 0.9915 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.2618, allocations: 140.5 kB / 0.9917 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.262, allocations: 12 kB / 0.9917 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005429/0.2625, allocations: 19.98 kB / 0.9917 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.2627, allocations: 27.95 kB / 0.9917 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.772e-05/0.2628, allocations: 8 kB / 0.9917 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005601/0.2633, allocations: 243.2 kB / 0.992 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.31e-07/0.2634, allocations: 4.062 kB / 0.992 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001182/0.2646, allocations: 83.69 kB / 0.9921 GB, free: 13.88 MB / 0.6198 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 (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.002554/0.2671, allocations: 1.071 MB / 0.9931 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001449/0.2687, allocations: 272.1 kB / 0.9934 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.2687, allocations: 0 / 0.9934 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0007256/0.2695, allocations: 132.3 kB / 0.9935 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.2707, allocations: 81.39 kB / 0.9936 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006247/0.277, allocations: 2.284 MB / 0.9958 GB, free: 9.957 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.2774, allocations: 0.8152 MB / 0.9966 GB, free: 9.113 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003071/0.2777, allocations: 51.25 kB / 0.9966 GB, free: 9.062 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.278, allocations: 139.4 kB / 0.9968 GB, free: 8.926 MB / 0.6198 GB Notification: Performance of SimCode: time 1.412e-06/0.278, allocations: 0 / 0.9968 GB, free: 8.926 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03803/0.3161, allocations: 6.958 MB / 1.004 GB, free: 2.145 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002666/0.3164, allocations: 195.9 kB / 1.004 GB, free: 1.906 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.895/3.211, allocations: 4.062 kB / 1.004 GB, free: 1.902 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)