Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",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.881/2.881, allocations: 287.3 MB / 302.3 MB, free: 8.293 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.001611/0.001611, allocations: 185 kB / 370.8 MB, free: 10.88 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.147/2.147, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001124/0.001124, allocations: 88.98 kB / 0.7428 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006696/0.0006697, allocations: 15.03 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2321, allocations: 115.3 MB / 0.9783 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003993/0.2362, allocations: 2.625 MB / 0.9808 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002348/0.2386, allocations: 0.9324 MB / 0.9817 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004014/0.2391, allocations: 15.94 kB / 0.9818 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.2392, allocations: 39.58 kB / 0.9818 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0005366/0.2397, allocations: 99.69 kB / 0.9819 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006399/0.2404, allocations: 185.9 kB / 0.9821 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006189/0.241, allocations: 336.5 kB / 0.9824 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003791/0.2414, allocations: 179.7 kB / 0.9826 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.2417, allocations: 147.2 kB / 0.9827 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.2419, allocations: 147.1 kB / 0.9828 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.662e-05/0.242, allocations: 12 kB / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.669e-05/0.242, allocations: 16 kB / 0.9829 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.753e-05/0.2421, allocations: 59.69 kB / 0.9829 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.584e-05/0.2422, allocations: 101.5 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004582/0.2427, allocations: 423.2 kB / 0.9834 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2427, allocations: 0 / 0.9834 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2427, allocations: 3.938 kB / 0.9834 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.2427, allocations: 0 / 0.9834 GB, free: 23.03 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001414/0.2442, allocations: 0.6899 MB / 0.9841 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.2442, allocations: 12.02 kB / 0.9841 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.2443, allocations: 74.53 kB / 0.9842 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.2445, allocations: 59.39 kB / 0.9842 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007825/0.2452, allocations: 415.4 kB / 0.9846 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.2453, allocations: 29 kB / 0.9847 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.059e-05/0.2454, allocations: 43.94 kB / 0.9847 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009102/0.2463, allocations: 393.5 kB / 0.9851 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.2464, allocations: 4 kB / 0.9851 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.248e-05/0.2464, allocations: 16 kB / 0.9851 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.2465, allocations: 8 kB / 0.9851 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008319/0.2473, allocations: 263.8 kB / 0.9854 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.2497, allocations: 1.328 MB / 0.9867 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009992/0.2507, allocations: 306.6 kB / 0.987 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.2508, allocations: 4 kB / 0.987 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005083/0.2513, allocations: 177.9 kB / 0.9871 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=33): time 3.266e-06/0.2513, allocations: 0 / 0.9871 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=33): time 0.001202/0.2525, allocations: 385.8 kB / 0.9875 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.2526, allocations: 89.09 kB / 0.9876 GB, free: 18.53 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004733/0.2531, allocations: 345.6 kB / 0.9879 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.2532, allocations: 37.7 kB / 0.9879 GB, free: 18.14 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.2533, allocations: 233 kB / 0.9882 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.593e-05/0.2534, allocations: 102.5 kB / 0.9883 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.2535, allocations: 4 kB / 0.9883 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.231e-05/0.2536, allocations: 350.8 kB / 0.9886 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.2539, allocations: 104.7 kB / 0.9887 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000387/0.2543, allocations: 172.6 kB / 0.9889 GB, free: 17.15 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/0.2547, allocations: 109.7 kB / 0.989 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.2547, allocations: 0 / 0.989 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009339/0.2557, allocations: 355.6 kB / 0.9893 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.2557, allocations: 9.719 kB / 0.9893 GB, free: 16.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.2557, allocations: 0 / 0.9893 GB, free: 16.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/0.2558, allocations: 4 kB / 0.9893 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004823/0.2563, allocations: 67.84 kB / 0.9894 GB, free: 16.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.2563, allocations: 0 / 0.9894 GB, free: 16.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003417/0.2566, allocations: 43.73 kB / 0.9894 GB, free: 16.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.2567, allocations: 16 kB / 0.9895 GB, free: 16.56 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.greaterEqualThreshold.y,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0002692/0.257, allocations: 193.5 kB / 0.9896 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.707e-05/0.2571, allocations: 35.53 kB / 0.9897 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.2572, allocations: 40.25 kB / 0.9897 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2572, allocations: 4 kB / 0.9897 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.2572, allocations: 0 / 0.9897 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2572, allocations: 0 / 0.9897 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001508/0.2588, allocations: 0.8192 MB / 0.9905 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.2588, allocations: 0 / 0.9905 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.2592, allocations: 47.91 kB / 0.9906 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.2593, allocations: 4 kB / 0.9906 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.2593, allocations: 4 kB / 0.9906 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.2593, allocations: 7.938 kB / 0.9906 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2593, allocations: 4 kB / 0.9906 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.2606, allocations: 0.5146 MB / 0.9911 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.2608, allocations: 140.6 kB / 0.9912 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/0.2609, allocations: 12.06 kB / 0.9912 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.2612, allocations: 27.92 kB / 0.9913 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.2613, allocations: 27.95 kB / 0.9913 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.2614, allocations: 8 kB / 0.9913 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003294/0.2617, allocations: 239.2 kB / 0.9915 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2617, allocations: 0 / 0.9915 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005336/0.2623, allocations: 87.69 kB / 0.9916 GB, free: 14.26 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001467/0.2637, allocations: 1.067 MB / 0.9926 GB, free: 13.16 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008304/0.2646, allocations: 276.1 kB / 0.9929 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2646, allocations: 0 / 0.9929 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004122/0.265, allocations: 135.8 kB / 0.993 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006661/0.2657, allocations: 69.89 kB / 0.9931 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/0.2709, allocations: 3.188 MB / 0.9962 GB, free: 9.434 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.2713, allocations: 0.823 MB / 0.997 GB, free: 8.582 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003082/0.2716, allocations: 59.23 kB / 0.9971 GB, free: 8.523 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.2719, allocations: 139.4 kB / 0.9972 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of SimCode: time 1.382e-06/0.2719, allocations: 0 / 0.9972 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.3024, allocations: 6.946 MB / 1.004 GB, free: 1.617 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002844/0.3027, allocations: 183.7 kB / 1.004 GB, free: 1.383 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.733/3.036, allocations: 0 / 1.004 GB, free: 1.383 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)