Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.527/1.527, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 175.1 kB / 326.5 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.859/1.859, allocations: 205.4 MB / 0.5775 GB, free: 20.21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008521/0.0008521, allocations: 94.34 kB / 0.6821 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003614, allocations: 9.219 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2361, allocations: 106.3 MB / 0.9001 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.0036/0.2397, allocations: 2.504 MB / 0.9026 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.2417, allocations: 0.8895 MB / 0.9035 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000311/0.242, allocations: 11.94 kB / 0.9035 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.194e-05/0.2421, allocations: 31.64 kB / 0.9035 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004883/0.2426, allocations: 111.6 kB / 0.9036 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000486/0.2431, allocations: 158.2 kB / 0.9038 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.2436, allocations: 304 kB / 0.904 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.2439, allocations: 149 kB / 0.9042 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.2441, allocations: 131.4 kB / 0.9043 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.2443, allocations: 135.1 kB / 0.9044 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.2444, allocations: 8 kB / 0.9045 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.646e-05/0.2444, allocations: 12 kB / 0.9045 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.361e-05/0.2445, allocations: 51.72 kB / 0.9045 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.908e-05/0.2446, allocations: 85.52 kB / 0.9046 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.245, allocations: 375.3 kB / 0.905 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.245, allocations: 0 / 0.905 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.655e-06/0.245, allocations: 3.938 kB / 0.905 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.2451, allocations: 0 / 0.905 GB, free: 58.83 MB / 0.6042 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.001288/0.2464, allocations: 0.6388 MB / 0.9056 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.483e-05/0.2464, allocations: 16.02 kB / 0.9056 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.925e-05/0.2465, allocations: 66.48 kB / 0.9057 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.2467, allocations: 51.39 kB / 0.9057 GB, free: 58 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007556/0.2474, allocations: 379.4 kB / 0.9061 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.2475, allocations: 24.66 kB / 0.9061 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-05/0.2476, allocations: 35.91 kB / 0.9061 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.2483, allocations: 325.2 kB / 0.9064 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.2483, allocations: 7.938 kB / 0.9064 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.2484, allocations: 12 kB / 0.9065 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.2484, allocations: 8 kB / 0.9065 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006527/0.2491, allocations: 218.1 kB / 0.9067 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.251, allocations: 1.19 MB / 0.9078 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007333/0.2517, allocations: 231.3 kB / 0.9081 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.2518, allocations: 4.188 kB / 0.9081 GB, free: 55.44 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.2518, allocations: 42.73 kB / 0.9081 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=22): time 2.024e-06/0.2518, allocations: 0 / 0.9081 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22): time 0.0009104/0.2527, allocations: 305.3 kB / 0.9084 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.2528, allocations: 106.8 kB / 0.9085 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004348/0.2532, allocations: 333.7 kB / 0.9088 GB, free: 54.63 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.2533, allocations: 33.7 kB / 0.9088 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.2535, allocations: 220.2 kB / 0.9091 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/0.2536, allocations: 78.84 kB / 0.9091 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.948e-05/0.2536, allocations: 8 kB / 0.9091 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2537, allocations: 342.8 kB / 0.9095 GB, free: 53.94 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002577/0.254, allocations: 79.97 kB / 0.9095 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.2543, allocations: 135.7 kB / 0.9097 GB, free: 53.7 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.2546, allocations: 92.61 kB / 0.9098 GB, free: 53.61 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2546, allocations: 0 / 0.9098 GB, free: 53.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006883/0.2553, allocations: 287.2 kB / 0.91 GB, free: 53.33 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2553, allocations: 11.88 kB / 0.91 GB, free: 53.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2554, allocations: 0 / 0.91 GB, free: 53.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.2554, allocations: 4 kB / 0.91 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003461/0.2557, allocations: 63.86 kB / 0.9101 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.2558, allocations: 0 / 0.9101 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.2561, allocations: 44 kB / 0.9101 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.2561, allocations: 8 kB / 0.9102 GB, free: 53.2 MB / 0.6042 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.0001939/0.2563, allocations: 157.8 kB / 0.9103 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.198e-05/0.2564, allocations: 35.53 kB / 0.9103 GB, free: 53 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.2565, allocations: 39.36 kB / 0.9104 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.2565, allocations: 4 kB / 0.9104 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.2566, allocations: 3.953 kB / 0.9104 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.2566, allocations: 3.984 kB / 0.9104 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005011/0.2571, allocations: 397.2 kB / 0.9108 GB, free: 52.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.2571, allocations: 0 / 0.9108 GB, free: 52.51 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.2575, allocations: 39.92 kB / 0.9108 GB, free: 52.47 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.2575, allocations: 4 kB / 0.9108 GB, free: 52.46 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.2575, allocations: 11.98 kB / 0.9108 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.2575, allocations: 0 / 0.9108 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2575, allocations: 0 / 0.9108 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009224/0.2585, allocations: 432.5 kB / 0.9112 GB, free: 52.02 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.2586, allocations: 132.6 kB / 0.9114 GB, free: 51.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.2587, allocations: 8 kB / 0.9114 GB, free: 51.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/0.259, allocations: 28.03 kB / 0.9114 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/0.2591, allocations: 15.97 kB / 0.9114 GB, free: 51.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.2591, allocations: 8 kB / 0.9114 GB, free: 51.81 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002743/0.2594, allocations: 231.2 kB / 0.9116 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2594, allocations: 0 / 0.9116 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005203/0.26, allocations: 79.72 kB / 0.9117 GB, free: 51.51 MB / 0.6042 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.001055/0.261, allocations: 0.9619 MB / 0.9127 GB, free: 50.52 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006002/0.2616, allocations: 204.1 kB / 0.9128 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2617, allocations: 0 / 0.9128 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.2619, allocations: 99.91 kB / 0.9129 GB, free: 50.22 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000622/0.2626, allocations: 78.95 kB / 0.913 GB, free: 50.15 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.2669, allocations: 2.916 MB / 0.9159 GB, free: 47.16 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.2672, allocations: 0.7992 MB / 0.9166 GB, free: 46.33 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0002459/0.2674, allocations: 42.95 kB / 0.9167 GB, free: 46.29 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.2676, allocations: 123.4 kB / 0.9168 GB, free: 46.17 MB / 0.6042 GB Notification: Performance of SimCode: time 4.11e-07/0.2677, allocations: 0 / 0.9168 GB, free: 46.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.2902, allocations: 6.201 MB / 0.9229 GB, free: 40.14 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001599/0.2904, allocations: 191 kB / 0.923 GB, free: 39.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.349, allocations: 3.094 kB / 0.923 GB, free: 39.9 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)