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.00117/0.00117, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.175/1.175, allocations: 205.1 MB / 222.4 MB, free: 4.547 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.511/1.511, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.001323/0.001323, allocations: 63.77 kB / 0.6716 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1623, allocations: 114.5 MB / 0.7835 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00478/0.1671, allocations: 4.138 MB / 0.7875 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002137/0.1693, allocations: 1.365 MB / 0.7888 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004042/0.1697, allocations: 23.88 kB / 0.7889 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003206/0.1701, allocations: 130.7 kB / 0.789 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003857/0.1705, allocations: 178.4 kB / 0.7892 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000774/0.1712, allocations: 419.8 kB / 0.7896 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008207/0.1721, allocations: 0.9516 MB / 0.7905 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005441/0.1726, allocations: 458.3 kB / 0.7909 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.173, allocations: 326.8 kB / 0.7912 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.1733, allocations: 338.3 kB / 0.7916 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.1734, allocations: 92 kB / 0.7916 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.1735, allocations: 92 kB / 0.7917 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.1736, allocations: 179.5 kB / 0.7919 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000292/0.1739, allocations: 390 kB / 0.7923 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007242/0.1747, allocations: 1.028 MB / 0.7933 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1747, allocations: 4 kB / 0.7933 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.673e-06/0.1747, allocations: 0 / 0.7933 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.932e-05/0.1747, allocations: 0 / 0.7933 GB, free: 3.301 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.001638/0.1763, allocations: 1.077 MB / 0.7943 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.1764, allocations: 16.03 kB / 0.7943 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.086e-05/0.1765, allocations: 94.7 kB / 0.7944 GB, free: 2.047 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.1766, allocations: 91.92 kB / 0.7945 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006627/0.1773, allocations: 0.5455 MB / 0.7951 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.1773, allocations: 45.69 kB / 0.7951 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.728e-05/0.1774, allocations: 60.38 kB / 0.7952 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.1783, allocations: 0.6232 MB / 0.7958 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1783, allocations: 3.906 kB / 0.7958 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.493e-05/0.1784, allocations: 20 kB / 0.7958 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.1784, allocations: 16 kB / 0.7958 GB, free: 0.582 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008768/0.1793, allocations: 465 kB / 0.7962 GB, free: 132 kB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.1816, allocations: 2.005 MB / 0.7982 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/0.1824, allocations: 445.5 kB / 0.7986 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004098/0.1828, allocations: 246 kB / 0.7989 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.1829, allocations: 4.438 kB / 0.7989 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004966/0.1834, allocations: 265.2 kB / 0.7991 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 1.813e-06/0.1834, allocations: 0 / 0.7991 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001138/0.1845, allocations: 0.5882 MB / 0.7997 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.1846, allocations: 55.84 kB / 0.7998 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003936/0.185, allocations: 446.1 kB / 0.8002 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.185, allocations: 33.7 kB / 0.8002 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.1852, allocations: 332.2 kB / 0.8005 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 9.998e-05/0.1853, allocations: 161.7 kB / 0.8007 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.1854, allocations: 98.23 kB / 0.8008 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1856, allocations: 358.8 kB / 0.8011 GB, free: 11 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.1859, allocations: 161 kB / 0.8013 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003813/0.1863, allocations: 257.8 kB / 0.8015 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.187, allocations: 452 kB / 0.8019 GB, free: 10.09 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.187, allocations: 4 kB / 0.8019 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009109/0.188, allocations: 0.5661 MB / 0.8025 GB, free: 9.5 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.188, allocations: 33.95 kB / 0.8025 GB, free: 9.461 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.188, allocations: 8 kB / 0.8025 GB, free: 9.453 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.188, allocations: 4 kB / 0.8025 GB, free: 9.449 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.1885, allocations: 107.9 kB / 0.8026 GB, free: 9.344 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.1885, allocations: 11.88 kB / 0.8027 GB, free: 9.332 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.1888, allocations: 59.5 kB / 0.8027 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.1888, allocations: 20 kB / 0.8027 GB, free: 9.254 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.0001997/0.189, allocations: 208.2 kB / 0.8029 GB, free: 9.043 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.569e-05/0.1891, allocations: 59.27 kB / 0.803 GB, free: 8.984 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.1892, allocations: 69.58 kB / 0.8031 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1892, allocations: 4 kB / 0.8031 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1892, allocations: 3.938 kB / 0.8031 GB, free: 8.906 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1892, allocations: 3.984 kB / 0.8031 GB, free: 8.902 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.1907, allocations: 1.174 MB / 0.8042 GB, free: 7.668 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1907, allocations: 0 / 0.8042 GB, free: 7.668 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.1912, allocations: 91.89 kB / 0.8043 GB, free: 7.578 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.1912, allocations: 7.938 kB / 0.8043 GB, free: 7.57 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.957e-05/0.1912, allocations: 15.98 kB / 0.8043 GB, free: 7.555 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1912, allocations: 7.938 kB / 0.8043 GB, free: 7.547 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1912, allocations: 0 / 0.8043 GB, free: 7.547 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.1924, allocations: 0.764 MB / 0.8051 GB, free: 6.773 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.1925, allocations: 164.3 kB / 0.8052 GB, free: 6.594 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.746e-05/0.1926, allocations: 12 kB / 0.8052 GB, free: 6.582 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.1929, allocations: 27.97 kB / 0.8053 GB, free: 6.555 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.122e-05/0.193, allocations: 36.39 kB / 0.8053 GB, free: 6.52 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.193, allocations: 12 kB / 0.8053 GB, free: 6.508 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002777/0.1933, allocations: 310.9 kB / 0.8056 GB, free: 6.207 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1933, allocations: 0 / 0.8056 GB, free: 6.207 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003627/0.1936, allocations: 139.5 kB / 0.8057 GB, free: 6.07 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.001407/0.1951, allocations: 1.317 MB / 0.807 GB, free: 4.723 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009603/0.196, allocations: 0.4975 MB / 0.8075 GB, free: 4.211 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.196, allocations: 0 / 0.8075 GB, free: 4.211 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003743/0.1964, allocations: 214.4 kB / 0.8077 GB, free: 3.996 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006554/0.1971, allocations: 155.5 kB / 0.8079 GB, free: 3.855 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006018/0.2031, allocations: 4.882 MB / 0.8126 GB, free: 14.84 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.2035, allocations: 0.8937 MB / 0.8135 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002369/0.2037, allocations: 72.5 kB / 0.8136 GB, free: 13.85 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00026/0.204, allocations: 223.4 kB / 0.8138 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of SimCode: time 2.4e-07/0.204, allocations: 0 / 0.8138 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.082/2.286, allocations: 11.14 MB / 0.8247 GB, free: 2.656 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/15.8, allocations: 14.66 kB / 0.8247 GB, free: 2.645 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)