Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Obsolete.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 107.3 kB / 15.33 MB, free: 0.5039 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.00128/0.00128, allocations: 196.8 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.018/3.018, allocations: 472.6 MB / 0.7448 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 62.09 kB / 0.9115 GB, free: 33.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.402, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.004733/0.4068, allocations: 3.048 MB / 1.071 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001826/0.4087, allocations: 0.8962 MB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000242/0.4089, allocations: 11.94 kB / 1.072 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002542/0.4092, allocations: 43.58 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.4094, allocations: 75.38 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.4099, allocations: 198.6 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004319/0.4104, allocations: 487.3 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003644/0.4108, allocations: 213.6 kB / 1.073 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.411, allocations: 187.2 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.4112, allocations: 179 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.911e-05/0.4113, allocations: 47.94 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.556e-05/0.4113, allocations: 44 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.042e-05/0.4114, allocations: 91.64 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.4116, allocations: 206.9 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004755/0.4121, allocations: 0.4908 MB / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4121, allocations: 0 / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4121, allocations: 0 / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.4121, allocations: 0 / 1.074 GB, free: 4.551 MB / 0.8262 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.001045/0.4131, allocations: 0.7129 MB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4132, allocations: 12.02 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.4133, allocations: 48.38 kB / 1.074 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005223/0.4138, allocations: 388.3 kB / 1.075 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.4138, allocations: 25.03 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.306e-05/0.4139, allocations: 28.38 kB / 1.075 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.4145, allocations: 345.4 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.4145, allocations: 0 / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.4145, allocations: 16 kB / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.4145, allocations: 8 kB / 1.075 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.415, allocations: 218.1 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.4164, allocations: 1.182 MB / 1.077 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.417, allocations: 234.7 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/0.4172, allocations: 109.8 kB / 1.077 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.4172, allocations: 4 kB / 1.077 GB, free: 1.047 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.4173, allocations: 46.86 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 2.886e-06/0.4173, allocations: 3.984 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22): time 0.0006518/0.418, allocations: 289.1 kB / 1.077 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.418, allocations: 110.8 kB / 1.077 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.4184, allocations: 333.6 kB / 1.078 GB, free: 244 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.4184, allocations: 33.7 kB / 1.078 GB, free: 204 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.4186, allocations: 224.3 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/0.4186, allocations: 74.89 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.677e-05/0.4187, allocations: 53.7 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.4188, allocations: 346.7 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.419, allocations: 79.97 kB / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002183/0.4192, allocations: 144.1 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.4196, allocations: 203.9 kB / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4196, allocations: 0 / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004648/0.4201, allocations: 291.7 kB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.4201, allocations: 9.25 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.4201, allocations: 3.938 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.4202, allocations: 4 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.4204, allocations: 55.91 kB / 1.079 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.4204, allocations: 7.984 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.4206, allocations: 35.95 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.4206, allocations: 11.98 kB / 1.079 GB, free: 14.61 MB / 0.8419 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.0001571/0.4208, allocations: 162.2 kB / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.696e-05/0.4208, allocations: 35.53 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.625e-05/0.4209, allocations: 39.36 kB / 1.079 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4209, allocations: 4 kB / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.421, allocations: 0 / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.421, allocations: 4 kB / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004017/0.4214, allocations: 397.2 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4214, allocations: 0 / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.4216, allocations: 43.91 kB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.4216, allocations: 0 / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.4216, allocations: 8 kB / 1.08 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.4216, allocations: 0 / 1.08 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4217, allocations: 0 / 1.08 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006467/0.4223, allocations: 423.7 kB / 1.08 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.4224, allocations: 128.6 kB / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.563e-05/0.4225, allocations: 8 kB / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.4227, allocations: 19.92 kB / 1.08 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/0.4227, allocations: 15.97 kB / 1.08 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.4228, allocations: 8 kB / 1.08 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002166/0.423, allocations: 243.2 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.423, allocations: 0 / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003166/0.4233, allocations: 63.84 kB / 1.081 GB, free: 12.95 MB / 0.8419 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.0001207/0.4234, allocations: 107.2 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004876/0.4239, allocations: 213.5 kB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4239, allocations: 4 kB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.4241, allocations: 103.8 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006004/0.4247, allocations: 78.81 kB / 1.081 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.4261, allocations: 0.8439 MB / 1.082 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.4264, allocations: 0.7873 MB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001571/0.4265, allocations: 42.95 kB / 1.083 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.4266, allocations: 35.42 kB / 1.083 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of SimCode: time 4e-07/0.4266, allocations: 3.938 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of Templates: time 0.006867/0.4335, allocations: 3.095 MB / 1.086 GB, free: 7.617 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)