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.698/2.698, allocations: 287.3 MB / 302.3 MB, free: 8.371 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.001566/0.001566, allocations: 177.7 kB / 370.8 MB, free: 10.85 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.189/2.189, allocations: 205.4 MB / 0.6295 GB, free: 10.58 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.001195/0.001195, allocations: 101.8 kB / 0.7428 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004977/0.0004979, allocations: 10.84 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2224, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003776/0.2262, allocations: 2.493 MB / 0.9807 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002403/0.2287, allocations: 0.8859 MB / 0.9816 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004645/0.2292, allocations: 11.94 kB / 0.9816 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.2293, allocations: 27.66 kB / 0.9816 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0006479/0.23, allocations: 119.6 kB / 0.9817 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000711/0.2307, allocations: 157.5 kB / 0.9819 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0007946/0.2315, allocations: 304 kB / 0.9822 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.232, allocations: 145 kB / 0.9823 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.2323, allocations: 135.3 kB / 0.9824 GB, free: 24 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.2326, allocations: 131.2 kB / 0.9826 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.905e-05/0.2326, allocations: 8 kB / 0.9826 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.39e-05/0.2327, allocations: 12 kB / 0.9826 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.117e-05/0.2328, allocations: 55.69 kB / 0.9826 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.2328, allocations: 85.52 kB / 0.9827 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.2333, allocations: 367.3 kB / 0.9831 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.2333, allocations: 4 kB / 0.9831 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.204e-06/0.2333, allocations: 0 / 0.9831 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.518e-06/0.2334, allocations: 0 / 0.9831 GB, free: 23.35 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.001399/0.2348, allocations: 0.6466 MB / 0.9837 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.2348, allocations: 16.02 kB / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.235, allocations: 62.53 kB / 0.9838 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.2351, allocations: 51.39 kB / 0.9838 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008047/0.236, allocations: 379.3 kB / 0.9842 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.877e-05/0.236, allocations: 24.66 kB / 0.9842 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.2361, allocations: 32 kB / 0.9842 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008237/0.2369, allocations: 329.1 kB / 0.9846 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.237, allocations: 4 kB / 0.9846 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.514e-05/0.2371, allocations: 12 kB / 0.9846 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.2371, allocations: 8 kB / 0.9846 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007513/0.2378, allocations: 218.1 kB / 0.9848 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002228/0.2401, allocations: 1.201 MB / 0.986 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009145/0.2411, allocations: 239.2 kB / 0.9862 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.232e-05/0.2412, allocations: 4.188 kB / 0.9862 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.2412, allocations: 34.75 kB / 0.9862 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 3.636e-06/0.2412, allocations: 0 / 0.9862 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.001035/0.2423, allocations: 295.9 kB / 0.9865 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.2424, allocations: 110.8 kB / 0.9866 GB, free: 19.47 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.2428, allocations: 333.6 kB / 0.9869 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.2429, allocations: 37.64 kB / 0.987 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.2431, allocations: 224.2 kB / 0.9872 GB, free: 18.87 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.987e-05/0.2432, allocations: 82.84 kB / 0.9873 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/0.2433, allocations: 4 kB / 0.9873 GB, free: 18.78 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.183e-05/0.2434, allocations: 346.7 kB / 0.9876 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003201/0.2437, allocations: 83.95 kB / 0.9877 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.244, allocations: 139.7 kB / 0.9878 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.2444, allocations: 91.97 kB / 0.9879 GB, free: 18.1 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2444, allocations: 0 / 0.9879 GB, free: 18.1 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008346/0.2452, allocations: 285 kB / 0.9882 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.2453, allocations: 4 kB / 0.9882 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.2453, allocations: 4 kB / 0.9882 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.2453, allocations: 0 / 0.9882 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000445/0.2458, allocations: 63.86 kB / 0.9882 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.2458, allocations: 0 / 0.9882 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000407/0.2462, allocations: 47.83 kB / 0.9883 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.2463, allocations: 12 kB / 0.9883 GB, free: 17.68 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.0002663/0.2466, allocations: 157.8 kB / 0.9884 GB, free: 17.52 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.63e-05/0.2467, allocations: 35.61 kB / 0.9885 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.2468, allocations: 39.36 kB / 0.9885 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.2468, allocations: 4 kB / 0.9885 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.2468, allocations: 3.953 kB / 0.9885 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2468, allocations: 0 / 0.9885 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006036/0.2474, allocations: 397.2 kB / 0.9889 GB, free: 17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.2475, allocations: 0 / 0.9889 GB, free: 17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004429/0.2479, allocations: 43.91 kB / 0.9889 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.248, allocations: 0 / 0.9889 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.248, allocations: 8 kB / 0.9889 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.87e-06/0.248, allocations: 0 / 0.9889 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.248, allocations: 0 / 0.9889 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.2491, allocations: 434.4 kB / 0.9894 GB, free: 16.51 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.2493, allocations: 124.7 kB / 0.9895 GB, free: 16.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.579e-05/0.2493, allocations: 8 kB / 0.9895 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/0.2497, allocations: 23.92 kB / 0.9895 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.686e-05/0.2498, allocations: 20.03 kB / 0.9895 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.2498, allocations: 8 kB / 0.9895 GB, free: 16.31 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003244/0.2501, allocations: 243 kB / 0.9898 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2502, allocations: 0 / 0.9898 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004837/0.2506, allocations: 75.7 kB / 0.9898 GB, free: 16 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.001322/0.252, allocations: 0.958 MB / 0.9908 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007298/0.2528, allocations: 204.2 kB / 0.991 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.2528, allocations: 3.938 kB / 0.991 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003153/0.2531, allocations: 107.8 kB / 0.9911 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007582/0.2539, allocations: 64.2 kB / 0.9911 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005191/0.2591, allocations: 2.918 MB / 0.994 GB, free: 11.65 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.2595, allocations: 0.7992 MB / 0.9948 GB, free: 10.82 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002945/0.2598, allocations: 38.95 kB / 0.9948 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.26, allocations: 127.4 kB / 0.9949 GB, free: 10.66 MB / 0.6198 GB Notification: Performance of SimCode: time 1.452e-06/0.2601, allocations: 0 / 0.9949 GB, free: 10.66 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02992/0.29, allocations: 6.192 MB / 1.001 GB, free: 4.629 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002304/0.2903, allocations: 183.5 kB / 1.001 GB, free: 4.391 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.655/2.945, allocations: 0 / 1.001 GB, free: 4.391 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)