Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis",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.6/2.6, allocations: 287.5 MB / 302.4 MB, free: 8.281 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.00137/0.001369, allocations: 176.3 kB / 371 MB, free: 10.86 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.115/2.115, allocations: 205.4 MB / 0.6297 GB, free: 10.6 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.000918/0.0009178, allocations: 92.91 kB / 0.743 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007144/0.0007147, allocations: 12.06 kB / 0.8659 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2482, allocations: 115.3 MB / 0.9785 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.006654/0.2549, allocations: 2.516 MB / 0.9809 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003235/0.2582, allocations: 0.8936 MB / 0.9818 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006661/0.259, allocations: 11.94 kB / 0.9818 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003399/0.2593, allocations: 43.58 kB / 0.9818 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004622/0.2598, allocations: 71.42 kB / 0.9819 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.2609, allocations: 146.5 kB / 0.982 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000971/0.2619, allocations: 431.3 kB / 0.9825 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00052/0.2625, allocations: 153 kB / 0.9826 GB, free: 24 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004391/0.263, allocations: 123.3 kB / 0.9827 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003818/0.2634, allocations: 127.2 kB / 0.9828 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.2635, allocations: 12 kB / 0.9829 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.256e-05/0.2636, allocations: 8 kB / 0.9829 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.2637, allocations: 55.69 kB / 0.9829 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0004171/0.2642, allocations: 97.45 kB / 0.983 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.2659, allocations: 367.3 kB / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.266, allocations: 0 / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.206e-06/0.266, allocations: 0 / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.193e-05/0.266, allocations: 0 / 0.9834 GB, free: 23.21 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001988/0.2681, allocations: 0.6428 MB / 0.984 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.2681, allocations: 15.95 kB / 0.984 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.896e-05/0.2682, allocations: 70.53 kB / 0.9841 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.2683, allocations: 51.39 kB / 0.9841 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006955/0.2691, allocations: 375.3 kB / 0.9845 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.081e-05/0.2691, allocations: 28.66 kB / 0.9845 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.307e-05/0.2692, allocations: 24 kB / 0.9845 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007567/0.27, allocations: 337.1 kB / 0.9848 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.27, allocations: 4 kB / 0.9848 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.524e-05/0.27, allocations: 16 kB / 0.9849 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2701, allocations: 4 kB / 0.9849 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007215/0.2708, allocations: 218 kB / 0.9851 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.2729, allocations: 1.201 MB / 0.9862 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008334/0.2737, allocations: 239.2 kB / 0.9865 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003188/0.2741, allocations: 119.2 kB / 0.9866 GB, free: 19.69 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.08e-05/0.2741, allocations: 4.188 kB / 0.9866 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.2742, allocations: 34.75 kB / 0.9866 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 3.296e-06/0.2742, allocations: 0 / 0.9866 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.0009968/0.2752, allocations: 303.5 kB / 0.9869 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.2753, allocations: 106.8 kB / 0.987 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004307/0.2757, allocations: 337.6 kB / 0.9873 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.2757, allocations: 25.7 kB / 0.9874 GB, free: 18.84 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.2759, allocations: 232.2 kB / 0.9876 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.86e-05/0.276, allocations: 66.92 kB / 0.9877 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.276, allocations: 4 kB / 0.9877 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.581e-05/0.2761, allocations: 350.8 kB / 0.988 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.2764, allocations: 79.95 kB / 0.9881 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.2768, allocations: 143.7 kB / 0.9882 GB, free: 17.94 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.2771, allocations: 91.86 kB / 0.9883 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.2771, allocations: 0 / 0.9883 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007629/0.2779, allocations: 277.1 kB / 0.9886 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2779, allocations: 8 kB / 0.9886 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2779, allocations: 0 / 0.9886 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.278, allocations: 7.953 kB / 0.9886 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.2784, allocations: 51.91 kB / 0.9886 GB, free: 17.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.2784, allocations: 4.188 kB / 0.9886 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.2787, allocations: 47.67 kB / 0.9887 GB, free: 17.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.2788, allocations: 12 kB / 0.9887 GB, free: 17.45 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: 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.0002178/0.279, allocations: 157.8 kB / 0.9888 GB, free: 17.28 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.633e-05/0.2791, allocations: 35.61 kB / 0.9889 GB, free: 17.25 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.964e-05/0.2792, allocations: 35.36 kB / 0.9889 GB, free: 17.21 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2792, allocations: 8 kB / 0.9889 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.2792, allocations: 3.953 kB / 0.9889 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2793, allocations: 0 / 0.9889 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/0.2798, allocations: 401.2 kB / 0.9893 GB, free: 16.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2798, allocations: 3.938 kB / 0.9893 GB, free: 16.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/0.2802, allocations: 43.97 kB / 0.9893 GB, free: 16.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.2802, allocations: 0 / 0.9893 GB, free: 16.71 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.2803, allocations: 7.938 kB / 0.9893 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.2803, allocations: 4 kB / 0.9893 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2803, allocations: 3.938 kB / 0.9894 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.2813, allocations: 432.5 kB / 0.9898 GB, free: 16.26 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.2815, allocations: 136.7 kB / 0.9899 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.286e-05/0.2815, allocations: 8 kB / 0.9899 GB, free: 16.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.2819, allocations: 20.05 kB / 0.9899 GB, free: 16.08 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/0.2819, allocations: 19.97 kB / 0.9899 GB, free: 16.06 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.282, allocations: 4 kB / 0.9899 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003062/0.2823, allocations: 243.1 kB / 0.9902 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.21e-07/0.2823, allocations: 0 / 0.9902 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004695/0.2828, allocations: 71.75 kB / 0.9902 GB, free: 15.75 MB / 0.6198 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.001202/0.284, allocations: 0.9561 MB / 0.9912 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006922/0.2847, allocations: 207.8 kB / 0.9914 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2847, allocations: 0 / 0.9914 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.285, allocations: 102.7 kB / 0.9915 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008178/0.2859, allocations: 80.28 kB / 0.9916 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00444/0.2903, allocations: 2.03 MB / 0.9935 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.2907, allocations: 0.7914 MB / 0.9943 GB, free: 11.47 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002799/0.291, allocations: 34.95 kB / 0.9943 GB, free: 11.44 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.2912, allocations: 127.4 kB / 0.9945 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of SimCode: time 1.152e-06/0.2912, allocations: 0 / 0.9945 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0377/0.3289, allocations: 6.213 MB / 1.001 GB, free: 5.262 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.3292, allocations: 192.8 kB / 1.001 GB, free: 5.023 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.795/3.125, allocations: 3.938 kB / 1.001 GB, free: 5.02 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)