Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.741/1.741, allocations: 288.2 MB / 303.2 MB, free: 8.133 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.001104/0.001104, allocations: 195.6 kB / 371.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.923/1.923, allocations: 205.4 MB / 0.6305 GB, free: 10.02 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.001042/0.001042, allocations: 94.86 kB / 0.7439 GB, free: 5.957 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005481/0.0005482, allocations: 15.12 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2921, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003607/0.2958, allocations: 2.625 MB / 0.982 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002086/0.2979, allocations: 0.9363 MB / 0.9829 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006783/0.2986, allocations: 11.94 kB / 0.983 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000204/0.2989, allocations: 43.58 kB / 0.983 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008498/0.2997, allocations: 103.7 kB / 0.9831 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007174/0.3005, allocations: 183.4 kB / 0.9833 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000785/0.3012, allocations: 332.6 kB / 0.9836 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004281/0.3017, allocations: 187.7 kB / 0.9838 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003066/0.302, allocations: 143.3 kB / 0.9839 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002769/0.3023, allocations: 151.1 kB / 0.984 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.476e-05/0.3024, allocations: 12 kB / 0.9841 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.481e-05/0.3024, allocations: 12 kB / 0.9841 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.995e-05/0.3025, allocations: 59.7 kB / 0.9841 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.3026, allocations: 97.45 kB / 0.9842 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.303, allocations: 423.2 kB / 0.9846 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.303, allocations: 4 kB / 0.9846 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.635e-06/0.303, allocations: 0 / 0.9846 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.242e-05/0.303, allocations: 0 / 0.9846 GB, free: 22.31 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.001281/0.3043, allocations: 0.6958 MB / 0.9853 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3044, allocations: 15.95 kB / 0.9853 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.3045, allocations: 74.53 kB / 0.9854 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.3046, allocations: 51.44 kB / 0.9854 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006517/0.3053, allocations: 407.5 kB / 0.9858 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.3054, allocations: 37 kB / 0.9859 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.3054, allocations: 36 kB / 0.9859 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006712/0.3061, allocations: 389.6 kB / 0.9863 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.3061, allocations: 3.938 kB / 0.9863 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.3062, allocations: 16 kB / 0.9863 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.3062, allocations: 12 kB / 0.9863 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005605/0.3068, allocations: 255.9 kB / 0.9865 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.3083, allocations: 1.336 MB / 0.9878 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005918/0.3089, allocations: 308.2 kB / 0.9881 GB, free: 18.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.3089, allocations: 4.547 kB / 0.9881 GB, free: 18.49 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.3093, allocations: 185.9 kB / 0.9883 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=33): time 2.595e-06/0.3093, allocations: 0 / 0.9883 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=33): time 0.0006914/0.31, allocations: 385.8 kB / 0.9887 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.31, allocations: 81.11 kB / 0.9888 GB, free: 17.82 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.3103, allocations: 349.6 kB / 0.9891 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.3104, allocations: 37.64 kB / 0.9891 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3105, allocations: 228.4 kB / 0.9894 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/0.3106, allocations: 110.5 kB / 0.9895 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.3106, allocations: 4 kB / 0.9895 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.691e-05/0.3107, allocations: 350.8 kB / 0.9898 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.3109, allocations: 100.7 kB / 0.9899 GB, free: 16.63 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.3111, allocations: 172.4 kB / 0.9901 GB, free: 16.44 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.3113, allocations: 113.6 kB / 0.9902 GB, free: 16.33 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3113, allocations: 3.953 kB / 0.9902 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005068/0.3118, allocations: 355.5 kB / 0.9905 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.3118, allocations: 12.19 kB / 0.9905 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3118, allocations: 0 / 0.9905 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.3119, allocations: 4 kB / 0.9905 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.3121, allocations: 63.84 kB / 0.9906 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.3121, allocations: 7.938 kB / 0.9906 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.3123, allocations: 43.73 kB / 0.9906 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.3124, allocations: 8 kB / 0.9906 GB, free: 15.84 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.000162/0.3125, allocations: 185.7 kB / 0.9908 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.3126, allocations: 43.48 kB / 0.9909 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.176e-05/0.3127, allocations: 40.25 kB / 0.9909 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.3127, allocations: 4 kB / 0.9909 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3127, allocations: 0 / 0.9909 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3127, allocations: 3.984 kB / 0.9909 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009038/0.3136, allocations: 0.8153 MB / 0.9917 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3136, allocations: 0 / 0.9917 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.3139, allocations: 47.91 kB / 0.9918 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3139, allocations: 4 kB / 0.9918 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.3139, allocations: 4 kB / 0.9918 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.3139, allocations: 4 kB / 0.9918 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3139, allocations: 0 / 0.9918 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007103/0.3146, allocations: 0.5186 MB / 0.9923 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3148, allocations: 140.5 kB / 0.9924 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.396e-05/0.3148, allocations: 4 kB / 0.9924 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.315, allocations: 28.05 kB / 0.9924 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.3151, allocations: 27.95 kB / 0.9925 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.3151, allocations: 8 kB / 0.9925 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001892/0.3153, allocations: 239.2 kB / 0.9927 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.41e-07/0.3153, allocations: 0 / 0.9927 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003161/0.3156, allocations: 91.62 kB / 0.9928 GB, free: 13.54 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.0009217/0.3165, allocations: 1.065 MB / 0.9938 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004752/0.317, allocations: 276.2 kB / 0.9941 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.317, allocations: 0 / 0.9941 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.3173, allocations: 139.8 kB / 0.9942 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.3177, allocations: 74.73 kB / 0.9943 GB, free: 11.97 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.3211, allocations: 3.194 MB / 0.9974 GB, free: 8.707 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.3214, allocations: 0.823 MB / 0.9982 GB, free: 7.855 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000195/0.3216, allocations: 47.27 kB / 0.9983 GB, free: 7.809 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.3218, allocations: 135.4 kB / 0.9984 GB, free: 7.676 MB / 0.6198 GB Notification: Performance of SimCode: time 2.31e-07/0.3218, allocations: 0 / 0.9984 GB, free: 7.676 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01781/0.3396, allocations: 6.953 MB / 1.005 GB, free: 0.9062 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/0.3399, allocations: 197.8 kB / 1.005 GB, free: 0.668 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.337/2.677, allocations: 0 / 1.005 GB, free: 0.668 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)