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.0009341/0.0009341, allocations: 102.9 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009521/0.0009521, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.983/1.983, allocations: 292.6 MB / 0.5497 GB, free: 14.62 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.0007601/0.0007602, allocations: 16.38 kB / 0.6737 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2877, allocations: 116.3 MB / 0.7872 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004396/0.2922, allocations: 2.489 MB / 0.7897 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002197/0.2944, allocations: 0.8898 MB / 0.7905 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000273/0.2947, allocations: 11.94 kB / 0.7905 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.012e-05/0.2948, allocations: 27.66 kB / 0.7906 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005222/0.2954, allocations: 115.6 kB / 0.7907 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000572/0.2959, allocations: 154.6 kB / 0.7908 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005882/0.2966, allocations: 312 kB / 0.7911 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003708/0.2969, allocations: 148.9 kB / 0.7913 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.2972, allocations: 131.4 kB / 0.7914 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.2974, allocations: 127.2 kB / 0.7915 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.675e-05/0.2975, allocations: 12 kB / 0.7915 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.386e-05/0.2975, allocations: 12 kB / 0.7915 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.265e-05/0.2976, allocations: 59.7 kB / 0.7916 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.548e-05/0.2977, allocations: 85.52 kB / 0.7917 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.2982, allocations: 367.3 kB / 0.792 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2982, allocations: 0 / 0.792 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.068e-06/0.2982, allocations: 0 / 0.792 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.2982, allocations: 3.938 kB / 0.792 GB, free: 6.957 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.001354/0.2996, allocations: 0.6389 MB / 0.7926 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.1e-05/0.2997, allocations: 8.031 kB / 0.7927 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.2998, allocations: 70.53 kB / 0.7927 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.2999, allocations: 51.44 kB / 0.7928 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000725/0.3007, allocations: 387.3 kB / 0.7931 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.3007, allocations: 20.66 kB / 0.7932 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.3008, allocations: 32 kB / 0.7932 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007516/0.3015, allocations: 333.1 kB / 0.7935 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3016, allocations: 0 / 0.7935 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.392e-05/0.3016, allocations: 12 kB / 0.7935 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.3016, allocations: 8 kB / 0.7935 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000636/0.3023, allocations: 218.1 kB / 0.7937 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.3043, allocations: 1.198 MB / 0.7949 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007575/0.3051, allocations: 239.3 kB / 0.7951 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.3052, allocations: 192 / 0.7951 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.3052, allocations: 38.75 kB / 0.7952 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 3.247e-06/0.3052, allocations: 0 / 0.7952 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0009124/0.3061, allocations: 302.4 kB / 0.7955 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.3062, allocations: 106.8 kB / 0.7956 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.3067, allocations: 337.6 kB / 0.7959 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.3067, allocations: 33.7 kB / 0.7959 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.307, allocations: 232.1 kB / 0.7961 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.395e-05/0.3071, allocations: 78.84 kB / 0.7962 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.3071, allocations: 8 kB / 0.7962 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3073, allocations: 338.8 kB / 0.7965 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.3075, allocations: 79.97 kB / 0.7966 GB, free: 1.977 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.3078, allocations: 143.7 kB / 0.7968 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/0.3081, allocations: 91.3 kB / 0.7968 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3081, allocations: 0 / 0.7968 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006966/0.3088, allocations: 281 kB / 0.7971 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.3089, allocations: 8 kB / 0.7971 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3089, allocations: 0 / 0.7971 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.3089, allocations: 4 kB / 0.7971 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.3093, allocations: 55.91 kB / 0.7972 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.107e-05/0.3093, allocations: 11.94 kB / 0.7972 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.3096, allocations: 47.86 kB / 0.7972 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.3096, allocations: 8 kB / 0.7972 GB, free: 1.309 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 ($PRE.con.hys.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002306/0.3099, allocations: 157.8 kB / 0.7974 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.004e-05/0.31, allocations: 31.62 kB / 0.7974 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.3101, allocations: 43.34 kB / 0.7975 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3101, allocations: 4 kB / 0.7975 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3101, allocations: 4 kB / 0.7975 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3101, allocations: 3.953 kB / 0.7975 GB, free: 1.051 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005608/0.3107, allocations: 389.2 kB / 0.7978 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3107, allocations: 0 / 0.7978 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003082/0.311, allocations: 47.91 kB / 0.7979 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3111, allocations: 0 / 0.7979 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.3111, allocations: 4 kB / 0.7979 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3111, allocations: 4 kB / 0.7979 GB, free: 0.5664 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3111, allocations: 0 / 0.7979 GB, free: 0.5664 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009138/0.312, allocations: 434.1 kB / 0.7983 GB, free: 132 kB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.3122, allocations: 124.8 kB / 0.7984 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.043e-05/0.3123, allocations: 8 kB / 0.7984 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.3126, allocations: 31.92 kB / 0.7985 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/0.3126, allocations: 19.97 kB / 0.7985 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.3127, allocations: 11.94 kB / 0.7985 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003104/0.313, allocations: 235.2 kB / 0.7987 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.3e-07/0.313, allocations: 0 / 0.7987 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004764/0.3135, allocations: 67.75 kB / 0.7988 GB, free: 15.62 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 (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.001213/0.3147, allocations: 0.9657 MB / 0.7997 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005947/0.3153, allocations: 211.7 kB / 0.7999 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3153, allocations: 0 / 0.7999 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.3156, allocations: 99.84 kB / 0.8 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006239/0.3163, allocations: 83.17 kB / 0.8001 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004704/0.321, allocations: 2.908 MB / 0.8029 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.3214, allocations: 0.8031 MB / 0.8037 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002353/0.3217, allocations: 42.95 kB / 0.8038 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.3219, allocations: 123.4 kB / 0.8039 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of SimCode: time 8.02e-07/0.3219, allocations: 0 / 0.8039 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/0.3453, allocations: 6.179 MB / 0.8099 GB, free: 4.25 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.3456, allocations: 190.8 kB / 0.8101 GB, free: 4.004 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.255, allocations: 0 / 0.8101 GB, free: 4.004 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/linux/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) Environment - environmentSimulation: