Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008224/0.0008223, allocations: 91.53 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005341/0.005341, allocations: 174.8 kB / 16.27 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.139/1.139, allocations: 205.4 MB / 222.5 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.474/1.474, allocations: 292.7 MB / 0.5502 GB, free: 14.44 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004401/0.0004402, allocations: 12.47 kB / 0.6744 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1597, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003258/0.1629, allocations: 3.732 MB / 0.7916 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001589/0.1645, allocations: 1.318 MB / 0.7929 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002071/0.1648, allocations: 19.94 kB / 0.7929 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.165, allocations: 99.14 kB / 0.793 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.1652, allocations: 142.8 kB / 0.7932 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006036/0.1658, allocations: 393.9 kB / 0.7935 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006188/0.1665, allocations: 0.8695 MB / 0.7944 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004601/0.1669, allocations: 422.3 kB / 0.7948 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.1672, allocations: 242.6 kB / 0.795 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1674, allocations: 258.4 kB / 0.7953 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.906e-05/0.1674, allocations: 24 kB / 0.7953 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.117e-05/0.1675, allocations: 23.94 kB / 0.7953 GB, free: 3.914 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.265e-05/0.1676, allocations: 95.48 kB / 0.7954 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.1678, allocations: 335.7 kB / 0.7957 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006081/0.1684, allocations: 0.9574 MB / 0.7967 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1684, allocations: 0 / 0.7967 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.012e-06/0.1684, allocations: 0 / 0.7967 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.872e-06/0.1684, allocations: 0 / 0.7967 GB, free: 2.523 MB / 0.6075 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.001282/0.1697, allocations: 0.9485 MB / 0.7976 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.1697, allocations: 8.031 kB / 0.7976 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.559e-05/0.1698, allocations: 102.7 kB / 0.7977 GB, free: 1.398 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.999e-05/0.17, allocations: 84 kB / 0.7978 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006432/0.1706, allocations: 0.5494 MB / 0.7983 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.1706, allocations: 41.69 kB / 0.7983 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.698e-05/0.1707, allocations: 68.27 kB / 0.7984 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008912/0.1716, allocations: 0.6155 MB / 0.799 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.1716, allocations: 0 / 0.799 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.1717, allocations: 24 kB / 0.799 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1717, allocations: 12 kB / 0.799 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008624/0.1726, allocations: 480.9 kB / 0.7995 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.1748, allocations: 2.028 MB / 0.8015 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007807/0.1756, allocations: 457.5 kB / 0.8019 GB, free: 12.92 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003911/0.176, allocations: 246.1 kB / 0.8022 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.176, allocations: 4.438 kB / 0.8022 GB, free: 12.67 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004603/0.1765, allocations: 265.3 kB / 0.8024 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 1.763e-06/0.1765, allocations: 0 / 0.8024 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001087/0.1776, allocations: 0.6038 MB / 0.803 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.1777, allocations: 59.83 kB / 0.8031 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.178, allocations: 446 kB / 0.8035 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.1781, allocations: 33.7 kB / 0.8035 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.1783, allocations: 332.3 kB / 0.8038 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 9.733e-05/0.1784, allocations: 157.7 kB / 0.804 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.1784, allocations: 53.69 kB / 0.804 GB, free: 10.69 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1785, allocations: 366.8 kB / 0.8044 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/0.1789, allocations: 173 kB / 0.8046 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003716/0.1793, allocations: 253.8 kB / 0.8048 GB, free: 9.883 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007109/0.18, allocations: 468 kB / 0.8052 GB, free: 9.391 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.18, allocations: 0 / 0.8052 GB, free: 9.391 MB / 0.6231 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008829/0.1809, allocations: 0.574 MB / 0.8058 GB, free: 8.809 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.1809, allocations: 33.7 kB / 0.8058 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1809, allocations: 0 / 0.8058 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.1809, allocations: 11.98 kB / 0.8058 GB, free: 8.758 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004111/0.1814, allocations: 116.1 kB / 0.806 GB, free: 8.645 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1814, allocations: 7.984 kB / 0.806 GB, free: 8.637 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.1817, allocations: 67.5 kB / 0.806 GB, free: 8.57 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.372e-05/0.1817, allocations: 16 kB / 0.806 GB, free: 8.555 MB / 0.6231 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001905/0.1819, allocations: 212.2 kB / 0.8062 GB, free: 8.34 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.182, allocations: 59.28 kB / 0.8063 GB, free: 8.281 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.1821, allocations: 65.58 kB / 0.8064 GB, free: 8.215 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1821, allocations: 4 kB / 0.8064 GB, free: 8.211 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1821, allocations: 4 kB / 0.8064 GB, free: 8.207 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1821, allocations: 7.922 kB / 0.8064 GB, free: 8.199 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.1836, allocations: 1.193 MB / 0.8075 GB, free: 6.945 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1836, allocations: 0 / 0.8075 GB, free: 6.945 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004133/0.184, allocations: 91.89 kB / 0.8076 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.184, allocations: 4 kB / 0.8076 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.184, allocations: 15.98 kB / 0.8077 GB, free: 6.836 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.184, allocations: 0 / 0.8077 GB, free: 6.836 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.184, allocations: 0 / 0.8077 GB, free: 6.836 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.1852, allocations: 0.7836 MB / 0.8084 GB, free: 6.035 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.1853, allocations: 176.2 kB / 0.8086 GB, free: 5.844 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.301e-05/0.1854, allocations: 12 kB / 0.8086 GB, free: 5.832 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.1857, allocations: 35.97 kB / 0.8086 GB, free: 5.797 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/0.1858, allocations: 32.39 kB / 0.8087 GB, free: 5.766 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.1858, allocations: 15.98 kB / 0.8087 GB, free: 5.75 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002704/0.1861, allocations: 306.9 kB / 0.809 GB, free: 5.453 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1861, allocations: 0 / 0.809 GB, free: 5.453 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003574/0.1864, allocations: 143.5 kB / 0.8091 GB, free: 5.312 MB / 0.6231 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001342/0.1878, allocations: 1.336 MB / 0.8104 GB, free: 3.945 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000764/0.1886, allocations: 497.5 kB / 0.8109 GB, free: 3.453 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1886, allocations: 0 / 0.8109 GB, free: 3.453 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.1889, allocations: 218.4 kB / 0.8111 GB, free: 3.234 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006522/0.1896, allocations: 144.7 kB / 0.8112 GB, free: 3.094 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00633/0.1959, allocations: 5.251 MB / 0.8164 GB, free: 13.7 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.1963, allocations: 0.894 MB / 0.8172 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002401/0.1965, allocations: 64.58 kB / 0.8173 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.1968, allocations: 215.4 kB / 0.8175 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of SimCode: time 3.1e-07/0.1968, allocations: 4 kB / 0.8175 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9284/1.125, allocations: 10.53 MB / 0.8278 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/1.125, allocations: 204.8 kB / 0.828 GB, free: 1.926 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.541/3.667, allocations: 8 kB / 0.828 GB, free: 1.918 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)