Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.565/2.565, allocations: 287.3 MB / 302.3 MB, free: 8.238 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.001626/0.001627, allocations: 182.2 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.299/2.299, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001141/0.001141, allocations: 95.69 kB / 0.7428 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004901/0.0004903, allocations: 11.5 kB / 0.8657 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2149, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004726/0.2197, allocations: 3.416 MB / 0.9816 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002999/0.2227, allocations: 1.275 MB / 0.9829 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005381/0.2233, allocations: 27.88 kB / 0.9829 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.2235, allocations: 59.36 kB / 0.9829 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008212/0.2243, allocations: 223.2 kB / 0.9832 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.2254, allocations: 312.2 kB / 0.9835 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001076/0.2265, allocations: 0.5822 MB / 0.984 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005882/0.2271, allocations: 299.6 kB / 0.9843 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003714/0.2275, allocations: 238.9 kB / 0.9845 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.2278, allocations: 234.6 kB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.433e-05/0.2279, allocations: 24 kB / 0.9848 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.775e-05/0.228, allocations: 24 kB / 0.9848 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.2281, allocations: 95.53 kB / 0.9849 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.2282, allocations: 161.3 kB / 0.985 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0008403/0.2291, allocations: 0.7988 MB / 0.9858 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2291, allocations: 4 kB / 0.9858 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2291, allocations: 0 / 0.9858 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.054e-05/0.2291, allocations: 0 / 0.9858 GB, free: 20.51 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002256/0.2314, allocations: 0.96 MB / 0.9868 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.2315, allocations: 12.02 kB / 0.9868 GB, free: 19.48 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.2316, allocations: 106.5 kB / 0.9869 GB, free: 19.37 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.2318, allocations: 86.92 kB / 0.987 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.2329, allocations: 0.5329 MB / 0.9875 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.366e-05/0.233, allocations: 45.31 kB / 0.9875 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.2331, allocations: 64 kB / 0.9876 GB, free: 18.6 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.2346, allocations: 0.5958 MB / 0.9882 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.397e-05/0.2347, allocations: 3.984 kB / 0.9882 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.926e-05/0.2348, allocations: 35.92 kB / 0.9882 GB, free: 17.94 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.2348, allocations: 16 kB / 0.9882 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.2363, allocations: 461 kB / 0.9887 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004115/0.2404, allocations: 2.02 MB / 0.9906 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.2418, allocations: 454.3 kB / 0.9911 GB, free: 14.94 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.097e-05/0.2419, allocations: 4.438 kB / 0.9911 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008103/0.2427, allocations: 261.3 kB / 0.9913 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=49): time 3.667e-06/0.2427, allocations: 7.938 kB / 0.9913 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49): time 0.001955/0.2447, allocations: 0.596 MB / 0.9919 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.2448, allocations: 59.84 kB / 0.992 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006198/0.2454, allocations: 442 kB / 0.9924 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.368e-05/0.2455, allocations: 41.69 kB / 0.9924 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/0.2457, allocations: 328.3 kB / 0.9927 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.2459, allocations: 169.5 kB / 0.9929 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.893e-05/0.2459, allocations: 8 kB / 0.9929 GB, free: 13 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.246, allocations: 362.8 kB / 0.9933 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006077/0.2466, allocations: 169 kB / 0.9934 GB, free: 12.47 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006371/0.2473, allocations: 249.8 kB / 0.9937 GB, free: 12.2 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006481/0.248, allocations: 227.8 kB / 0.9939 GB, free: 11.97 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.248, allocations: 4 kB / 0.9939 GB, free: 11.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001555/0.2495, allocations: 0.5624 MB / 0.9944 GB, free: 11.39 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.2496, allocations: 37.66 kB / 0.9945 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.2496, allocations: 0 / 0.9945 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.2497, allocations: 12.23 kB / 0.9945 GB, free: 11.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008512/0.2505, allocations: 115.8 kB / 0.9946 GB, free: 11.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.2505, allocations: 7.984 kB / 0.9946 GB, free: 11.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005878/0.2511, allocations: 67.5 kB / 0.9947 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/0.2512, allocations: 16 kB / 0.9947 GB, free: 11.14 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0003688/0.2516, allocations: 209.7 kB / 0.9949 GB, free: 10.92 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/0.2517, allocations: 55.34 kB / 0.9949 GB, free: 10.87 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.2519, allocations: 69.53 kB / 0.995 GB, free: 10.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.2519, allocations: 4 kB / 0.995 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.2519, allocations: 3.984 kB / 0.995 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.2519, allocations: 7.984 kB / 0.995 GB, free: 10.78 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.2543, allocations: 1.185 MB / 0.9962 GB, free: 9.535 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.2543, allocations: 0 / 0.9962 GB, free: 9.535 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008687/0.2552, allocations: 107.8 kB / 0.9963 GB, free: 9.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.2552, allocations: 0 / 0.9963 GB, free: 9.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.444e-05/0.2552, allocations: 11.98 kB / 0.9963 GB, free: 9.418 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.2552, allocations: 4 kB / 0.9963 GB, free: 9.414 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.2553, allocations: 4 kB / 0.9963 GB, free: 9.41 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.2572, allocations: 0.768 MB / 0.997 GB, free: 8.625 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.2574, allocations: 168.4 kB / 0.9972 GB, free: 8.441 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.399e-05/0.2575, allocations: 19.89 kB / 0.9972 GB, free: 8.422 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005147/0.2581, allocations: 35.91 kB / 0.9973 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.2582, allocations: 40.38 kB / 0.9973 GB, free: 8.344 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.806e-05/0.2582, allocations: 8 kB / 0.9973 GB, free: 8.336 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0004354/0.2587, allocations: 306.9 kB / 0.9976 GB, free: 8.039 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.1e-07/0.2587, allocations: 3.938 kB / 0.9976 GB, free: 8.035 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000594/0.2593, allocations: 143.4 kB / 0.9977 GB, free: 7.895 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00215/0.2615, allocations: 1.327 MB / 0.999 GB, free: 6.547 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001372/0.2629, allocations: 489.4 kB / 0.9995 GB, free: 6.059 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.2629, allocations: 4 kB / 0.9995 GB, free: 6.055 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006357/0.2635, allocations: 218.3 kB / 0.9997 GB, free: 5.84 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.2646, allocations: 131.3 kB / 0.9998 GB, free: 5.715 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008935/0.2736, allocations: 4.757 MB / 1.004 GB, free: 0.8672 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.274, allocations: 0.9019 MB / 1.005 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005005/0.2746, allocations: 68.58 kB / 1.005 GB, free: 15.86 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000513/0.2751, allocations: 215.3 kB / 1.006 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of SimCode: time 1.373e-06/0.2751, allocations: 7.875 kB / 1.006 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04264/0.3177, allocations: 10.65 MB / 1.016 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002732/0.3181, allocations: 182.9 kB / 1.016 GB, free: 4.973 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.936/3.254, allocations: 0 / 1.016 GB, free: 4.973 MB / 0.6355 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)