Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.001405/0.001405, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001332/0.001332, allocations: 192 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002284/0.002284, allocations: 289.7 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9286/0.9286, allocations: 169.2 MB / 0.4977 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 96.22 kB / 0.5946 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1722, allocations: 86.98 MB / 0.6795 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005547/0.1778, allocations: 4.126 MB / 0.6836 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.1803, allocations: 1.284 MB / 0.6848 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006694/0.181, allocations: 23.88 kB / 0.6848 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003498/0.1814, allocations: 95.98 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003805/0.1818, allocations: 143 kB / 0.6851 GB, free: 11.4 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008146/0.1826, allocations: 381.5 kB / 0.6854 GB, free: 11.03 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007439/0.1834, allocations: 0.8813 MB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005583/0.184, allocations: 434 kB / 0.6867 GB, free: 9.703 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.1843, allocations: 274.7 kB / 0.687 GB, free: 9.434 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.1846, allocations: 306.3 kB / 0.6873 GB, free: 9.133 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.798e-05/0.1847, allocations: 40 kB / 0.6873 GB, free: 9.094 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.623e-05/0.1848, allocations: 40 kB / 0.6873 GB, free: 9.055 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.1849, allocations: 131.4 kB / 0.6875 GB, free: 8.926 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002784/0.1852, allocations: 342.1 kB / 0.6878 GB, free: 8.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007193/0.1859, allocations: 0.985 MB / 0.6888 GB, free: 7.602 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1859, allocations: 7.984 kB / 0.6888 GB, free: 7.594 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1859, allocations: 4 kB / 0.6888 GB, free: 7.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.1859, allocations: 0 / 0.6888 GB, free: 7.59 MB / 494.1 MB 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.001764/0.1877, allocations: 1.071 MB / 0.6898 GB, free: 6.461 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.1878, allocations: 12.03 kB / 0.6898 GB, free: 6.449 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.1879, allocations: 98.69 kB / 0.6899 GB, free: 6.344 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.188, allocations: 87.91 kB / 0.69 GB, free: 6.258 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007393/0.1887, allocations: 0.5572 MB / 0.6905 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.1888, allocations: 45.67 kB / 0.6906 GB, free: 5.617 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-05/0.1889, allocations: 60.38 kB / 0.6906 GB, free: 5.559 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009982/0.1899, allocations: 0.6038 MB / 0.6912 GB, free: 4.934 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.1899, allocations: 11.88 kB / 0.6912 GB, free: 4.922 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.881e-05/0.19, allocations: 23.98 kB / 0.6913 GB, free: 4.898 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.19, allocations: 16 kB / 0.6913 GB, free: 4.883 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008945/0.1909, allocations: 457 kB / 0.6917 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.1935, allocations: 2.008 MB / 0.6937 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008289/0.1943, allocations: 441 kB / 0.6941 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004112/0.1947, allocations: 242.1 kB / 0.6943 GB, free: 1.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.1948, allocations: 4.438 kB / 0.6943 GB, free: 1.676 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005724/0.1954, allocations: 265.2 kB / 0.6946 GB, free: 1.406 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 2.495e-06/0.1954, allocations: 0 / 0.6946 GB, free: 1.406 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001207/0.1966, allocations: 0.5843 MB / 0.6952 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.1966, allocations: 59.84 kB / 0.6952 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/0.1971, allocations: 442 kB / 0.6956 GB, free: 312 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.1971, allocations: 41.64 kB / 0.6957 GB, free: 264 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.1974, allocations: 321 kB / 0.696 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.1975, allocations: 169.5 kB / 0.6961 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.1976, allocations: 94.25 kB / 0.6962 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1978, allocations: 358.8 kB / 0.6966 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/0.1981, allocations: 173 kB / 0.6967 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/0.1985, allocations: 253.8 kB / 0.697 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007397/0.1993, allocations: 456 kB / 0.6974 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1993, allocations: 0 / 0.6974 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009539/0.2003, allocations: 0.5584 MB / 0.698 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.2003, allocations: 39.58 kB / 0.698 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2003, allocations: 0 / 0.698 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.2003, allocations: 4 kB / 0.698 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.2008, allocations: 119.8 kB / 0.6981 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.2008, allocations: 7.984 kB / 0.6981 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.2012, allocations: 75.64 kB / 0.6982 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.2012, allocations: 16 kB / 0.6982 GB, free: 13.56 MB / 0.4981 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.0002405/0.2015, allocations: 207 kB / 0.6984 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.801e-05/0.2016, allocations: 59.28 kB / 0.6985 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.2017, allocations: 69.52 kB / 0.6985 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.2017, allocations: 8 kB / 0.6985 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.2017, allocations: 0 / 0.6985 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.2017, allocations: 4 kB / 0.6985 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.2033, allocations: 1.177 MB / 0.6997 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2033, allocations: 0 / 0.6997 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.2038, allocations: 95.89 kB / 0.6998 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2038, allocations: 0 / 0.6998 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.2038, allocations: 15.98 kB / 0.6998 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.2039, allocations: 4 kB / 0.6998 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2039, allocations: 0 / 0.6998 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.2051, allocations: 0.7563 MB / 0.7005 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.2053, allocations: 176.2 kB / 0.7007 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.237e-05/0.2053, allocations: 12 kB / 0.7007 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.2056, allocations: 27.97 kB / 0.7008 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.546e-05/0.2057, allocations: 32.39 kB / 0.7008 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.2058, allocations: 15.98 kB / 0.7008 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000298/0.2061, allocations: 310.9 kB / 0.7011 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2061, allocations: 0 / 0.7011 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004188/0.2065, allocations: 139.5 kB / 0.7012 GB, free: 10.38 MB / 0.4981 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.001489/0.208, allocations: 1.321 MB / 0.7025 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000868/0.2089, allocations: 481.5 kB / 0.703 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2089, allocations: 0 / 0.703 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000393/0.2093, allocations: 218.4 kB / 0.7032 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.21, allocations: 154.6 kB / 0.7033 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007176/0.2172, allocations: 5.152 MB / 0.7084 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.2177, allocations: 0.8863 MB / 0.7092 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003176/0.218, allocations: 56.59 kB / 0.7093 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002752/0.2183, allocations: 219.4 kB / 0.7095 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of SimCode: time 1.022e-06/0.2183, allocations: 0 / 0.7095 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.2405, allocations: 10.68 MB / 0.7199 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/0.2407, allocations: 213.8 kB / 0.7201 GB, free: 6.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.147/2.387, allocations: 0 / 0.7201 GB, free: 6.98 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)