Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005612/0.005612, allocations: 102.1 kB / 15.73 MB, free: 6.012 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.001321/0.001321, allocations: 196.6 kB / 16.67 MB, free: 5.938 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.477/1.477, allocations: 205.1 MB / 222.6 MB, free: 4.125 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6016/0.6016, allocations: 95.48 MB / 365.4 MB, free: 9.699 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 70.56 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.157, allocations: 69.09 MB / 0.5711 GB, free: 8.328 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004954/0.162, allocations: 3.739 MB / 0.5747 GB, free: 4.562 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002819/0.1648, allocations: 1.396 MB / 0.5761 GB, free: 3.156 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004131/0.1653, allocations: 27.88 kB / 0.5761 GB, free: 3.129 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003627/0.1657, allocations: 130.5 kB / 0.5762 GB, free: 3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006167/0.1663, allocations: 186.4 kB / 0.5764 GB, free: 2.816 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.1675, allocations: 0.5789 MB / 0.577 GB, free: 2.246 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.1687, allocations: 0.9876 MB / 0.5779 GB, free: 1.254 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006229/0.1694, allocations: 369.8 kB / 0.5783 GB, free: 0.875 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000495/0.1699, allocations: 382.3 kB / 0.5787 GB, free: 0.5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003962/0.1703, allocations: 377.9 kB / 0.579 GB, free: 132 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.1704, allocations: 84 kB / 0.5791 GB, free: 48 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.1705, allocations: 84.05 kB / 0.5792 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.1707, allocations: 191.2 kB / 0.5794 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.171, allocations: 409.5 kB / 0.5797 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009281/0.172, allocations: 0.9496 MB / 0.5807 GB, free: 14.42 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.172, allocations: 4 kB / 0.5807 GB, free: 14.42 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.172, allocations: 0 / 0.5807 GB, free: 14.42 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.172, allocations: 0 / 0.5807 GB, free: 14.42 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002158/0.1742, allocations: 1.214 MB / 0.5819 GB, free: 13.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.1742, allocations: 19.97 kB / 0.5819 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.1744, allocations: 99.72 kB / 0.582 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.1755, allocations: 0.6284 MB / 0.5826 GB, free: 12.36 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.1757, allocations: 105.2 kB / 0.5827 GB, free: 12.24 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.193e-05/0.1758, allocations: 56.36 kB / 0.5827 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.1769, allocations: 0.6461 MB / 0.5834 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.177, allocations: 4 kB / 0.5834 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.529e-05/0.177, allocations: 20 kB / 0.5834 GB, free: 11.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.177, allocations: 12 kB / 0.5834 GB, free: 11.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009771/0.178, allocations: 484.9 kB / 0.5839 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002896/0.1809, allocations: 2.08 MB / 0.5859 GB, free: 8.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.1821, allocations: 0.5468 MB / 0.5864 GB, free: 8.285 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004298/0.1826, allocations: 217.5 kB / 0.5866 GB, free: 8.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.406e-05/0.1826, allocations: 12.36 kB / 0.5867 GB, free: 8.059 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006411/0.1833, allocations: 309.2 kB / 0.5869 GB, free: 7.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=47): time 2.384e-06/0.1833, allocations: 0 / 0.5869 GB, free: 7.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=47): time 0.001524/0.1848, allocations: 0.6856 MB / 0.5876 GB, free: 7.055 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.025e-05/0.1849, allocations: 137 kB / 0.5877 GB, free: 6.891 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007666/0.1857, allocations: 0.6571 MB / 0.5884 GB, free: 6.219 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.44e-05/0.1858, allocations: 37.7 kB / 0.5884 GB, free: 6.176 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003805/0.1861, allocations: 368.8 kB / 0.5888 GB, free: 5.812 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.1863, allocations: 157.7 kB / 0.5889 GB, free: 5.656 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.1865, allocations: 102.2 kB / 0.589 GB, free: 5.551 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1866, allocations: 333.9 kB / 0.5893 GB, free: 5.219 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.1871, allocations: 206.9 kB / 0.5895 GB, free: 5.012 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005337/0.1876, allocations: 312.3 kB / 0.5898 GB, free: 4.676 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009194/0.1886, allocations: 0.5038 MB / 0.5903 GB, free: 4.141 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1886, allocations: 4 kB / 0.5903 GB, free: 4.137 MB / 462.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001186/0.1898, allocations: 0.6441 MB / 0.591 GB, free: 3.477 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.353e-05/0.1898, allocations: 33.69 kB / 0.591 GB, free: 3.438 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.1898, allocations: 4 kB / 0.591 GB, free: 3.434 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.1899, allocations: 4 kB / 0.591 GB, free: 3.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.1904, allocations: 115.8 kB / 0.5911 GB, free: 3.316 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.1904, allocations: 4 kB / 0.5911 GB, free: 3.312 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.1908, allocations: 75.59 kB / 0.5912 GB, free: 3.238 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.1908, allocations: 23.92 kB / 0.5912 GB, free: 3.215 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005147/0.1914, allocations: 313.2 kB / 0.5915 GB, free: 2.906 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004234/0.1918, allocations: 272.4 kB / 0.5918 GB, free: 2.602 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006776/0.1925, allocations: 448 kB / 0.5922 GB, free: 2.129 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-06/0.1925, allocations: 0 / 0.5922 GB, free: 2.129 MB / 462.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009443/0.1935, allocations: 0.5739 MB / 0.5928 GB, free: 1.543 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.1935, allocations: 37.64 kB / 0.5928 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.916e-06/0.1935, allocations: 0 / 0.5928 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.987e-06/0.1935, allocations: 8 kB / 0.5928 GB, free: 1.492 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003994/0.1939, allocations: 95.83 kB / 0.5929 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.1939, allocations: 7.984 kB / 0.5929 GB, free: 1.391 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.1943, allocations: 55.56 kB / 0.593 GB, free: 1.336 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.1944, allocations: 16.19 kB / 0.593 GB, free: 1.32 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.local_reset,limPID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.000221/0.1946, allocations: 224 kB / 0.5932 GB, free: 1.094 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.1947, allocations: 75.06 kB / 0.5933 GB, free: 1.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.1949, allocations: 88.02 kB / 0.5933 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1949, allocations: 4 kB / 0.5933 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.1949, allocations: 4 kB / 0.5933 GB, free: 0.918 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.1949, allocations: 3.984 kB / 0.5934 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007568/0.1957, allocations: 0.6768 MB / 0.594 GB, free: 192 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.1957, allocations: 0 / 0.594 GB, free: 192 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.1962, allocations: 91.98 kB / 0.5941 GB, free: 100 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.784e-06/0.1962, allocations: 3.984 kB / 0.5941 GB, free: 96 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.1962, allocations: 19.92 kB / 0.5941 GB, free: 76 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.1962, allocations: 0 / 0.5941 GB, free: 76 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1963, allocations: 0 / 0.5941 GB, free: 76 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.1978, allocations: 0.8077 MB / 0.5949 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002351/0.198, allocations: 204 kB / 0.5951 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.258e-05/0.1981, allocations: 15.98 kB / 0.5951 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.1985, allocations: 47.95 kB / 0.5952 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.1986, allocations: 28.39 kB / 0.5952 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/0.1987, allocations: 16 kB / 0.5952 GB, free: 14.92 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005537/0.1992, allocations: 467 kB / 0.5957 GB, free: 14.47 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1993, allocations: 0 / 0.5957 GB, free: 14.47 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006506/0.1999, allocations: 227.3 kB / 0.5959 GB, free: 14.25 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * 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.0001645/0.2001, allocations: 123.2 kB / 0.596 GB, free: 14.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.2016, allocations: 0.8285 MB / 0.5968 GB, free: 13.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.2016, allocations: 0 / 0.5968 GB, free: 13.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004689/0.2021, allocations: 242.4 kB / 0.597 GB, free: 13.03 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000911/0.203, allocations: 214.6 kB / 0.5972 GB, free: 12.83 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.2052, allocations: 1.265 MB / 0.5985 GB, free: 11.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.2058, allocations: 0.93 MB / 0.5994 GB, free: 10.58 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003632/0.2061, allocations: 93.03 kB / 0.5995 GB, free: 10.49 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.2063, allocations: 51.44 kB / 0.5995 GB, free: 10.44 MB / 478.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2063, allocations: 0 / 0.5995 GB, free: 10.44 MB / 478.1 MB Notification: Performance of Templates: time 0.01644/0.2228, allocations: 8.741 MB / 0.6081 GB, free: 1.777 MB / 478.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)