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.008063/0.008063, allocations: 101.7 kB / 15.73 MB, free: 5.953 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.001624/0.001624, allocations: 187 kB / 16.67 MB, free: 5.883 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.598/1.598, allocations: 205.1 MB / 222.5 MB, free: 4.348 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.6217/0.6217, allocations: 95.47 MB / 365.4 MB, free: 9.688 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.001482/0.001482, allocations: 60.47 kB / 0.5036 GB, free: 13.53 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1757, allocations: 69.1 MB / 0.5711 GB, free: 8.367 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005541/0.1813, allocations: 3.736 MB / 0.5747 GB, free: 4.602 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002866/0.1842, allocations: 1.396 MB / 0.5761 GB, free: 3.195 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/0.1846, allocations: 23.88 kB / 0.5761 GB, free: 3.172 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003614/0.1849, allocations: 126.5 kB / 0.5762 GB, free: 3.047 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005773/0.1855, allocations: 198.4 kB / 0.5764 GB, free: 2.852 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.1867, allocations: 0.5809 MB / 0.577 GB, free: 2.277 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.188, allocations: 0.9954 MB / 0.5779 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006698/0.1887, allocations: 369.8 kB / 0.5783 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.1892, allocations: 378.3 kB / 0.5787 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005024/0.1897, allocations: 377.9 kB / 0.579 GB, free: 160 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.1898, allocations: 84 kB / 0.5791 GB, free: 76 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.19, allocations: 87.98 kB / 0.5792 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002676/0.1902, allocations: 195.2 kB / 0.5794 GB, free: 15.8 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005244/0.1908, allocations: 405.5 kB / 0.5798 GB, free: 15.4 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.1919, allocations: 0.9458 MB / 0.5807 GB, free: 14.45 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1919, allocations: 4 kB / 0.5807 GB, free: 14.45 MB / 462.1 MB Notification: Performance of FrontEnd: time 5.28e-06/0.1919, allocations: 4 kB / 0.5807 GB, free: 14.44 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.192, allocations: 0 / 0.5807 GB, free: 14.44 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.002563/0.1945, allocations: 1.214 MB / 0.5819 GB, free: 13.17 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1946, allocations: 19.98 kB / 0.5819 GB, free: 13.15 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002794/0.1949, allocations: 99.72 kB / 0.582 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.196, allocations: 0.6284 MB / 0.5826 GB, free: 12.38 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.1961, allocations: 105.3 kB / 0.5827 GB, free: 12.27 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.069e-05/0.1962, allocations: 52.38 kB / 0.5828 GB, free: 12.21 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.1974, allocations: 0.6461 MB / 0.5834 GB, free: 11.53 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.1974, allocations: 4 kB / 0.5834 GB, free: 11.53 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.573e-05/0.1975, allocations: 24 kB / 0.5834 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.1975, allocations: 12 kB / 0.5834 GB, free: 11.49 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.1987, allocations: 480.9 kB / 0.5839 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003353/0.202, allocations: 2.084 MB / 0.5859 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.2033, allocations: 0.5455 MB / 0.5865 GB, free: 8.312 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.2038, allocations: 221.5 kB / 0.5867 GB, free: 8.094 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-05/0.2039, allocations: 4.375 kB / 0.5867 GB, free: 8.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008544/0.2047, allocations: 317.2 kB / 0.587 GB, free: 7.773 MB / 462.1 MB Notification: Performance of pre-optimization done (n=47): time 3.486e-06/0.2047, allocations: 0 / 0.587 GB, free: 7.773 MB / 462.1 MB Notification: Performance of matching and sorting (n=47): time 0.001672/0.2064, allocations: 0.6856 MB / 0.5876 GB, free: 7.078 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.2065, allocations: 133 kB / 0.5878 GB, free: 6.918 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000892/0.2074, allocations: 0.6571 MB / 0.5884 GB, free: 6.246 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.947e-05/0.2075, allocations: 37.7 kB / 0.5884 GB, free: 6.203 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003777/0.2079, allocations: 368.8 kB / 0.5888 GB, free: 5.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.2081, allocations: 165.6 kB / 0.589 GB, free: 5.676 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.2083, allocations: 98.17 kB / 0.589 GB, free: 5.574 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004459/0.2088, allocations: 333.9 kB / 0.5894 GB, free: 5.242 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005035/0.2093, allocations: 206.9 kB / 0.5896 GB, free: 5.035 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007399/0.21, allocations: 308.4 kB / 0.5899 GB, free: 4.703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.2112, allocations: 0.5038 MB / 0.5903 GB, free: 4.168 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2112, allocations: 0 / 0.5903 GB, free: 4.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001479/0.2127, allocations: 0.6519 MB / 0.591 GB, free: 3.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.872e-05/0.2128, allocations: 29.7 kB / 0.591 GB, free: 3.465 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.2128, allocations: 7.938 kB / 0.591 GB, free: 3.457 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.838e-05/0.2128, allocations: 4 kB / 0.591 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/0.2133, allocations: 111.8 kB / 0.5911 GB, free: 3.344 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.2134, allocations: 7.984 kB / 0.5911 GB, free: 3.336 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004275/0.2138, allocations: 71.59 kB / 0.5912 GB, free: 3.266 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.2139, allocations: 23.94 kB / 0.5912 GB, free: 3.242 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000603/0.2145, allocations: 317.2 kB / 0.5915 GB, free: 2.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004157/0.2149, allocations: 268.4 kB / 0.5918 GB, free: 2.629 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008323/0.2157, allocations: 452 kB / 0.5922 GB, free: 2.152 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.545e-06/0.2157, allocations: 0 / 0.5922 GB, free: 2.152 MB / 462.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001215/0.217, allocations: 0.574 MB / 0.5928 GB, free: 1.566 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.217, allocations: 37.69 kB / 0.5928 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.217, allocations: 0 / 0.5928 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.386e-06/0.217, allocations: 4 kB / 0.5928 GB, free: 1.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/0.2174, allocations: 99.83 kB / 0.5929 GB, free: 1.422 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.2174, allocations: 4 kB / 0.5929 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.2178, allocations: 51.58 kB / 0.593 GB, free: 1.367 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.2179, allocations: 20 kB / 0.593 GB, free: 1.348 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.0002373/0.2181, allocations: 228.1 kB / 0.5932 GB, free: 1.117 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.2183, allocations: 75.16 kB / 0.5933 GB, free: 1.043 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001639/0.2184, allocations: 88.02 kB / 0.5934 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.2184, allocations: 4 kB / 0.5934 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.2185, allocations: 3.938 kB / 0.5934 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.2185, allocations: 7.984 kB / 0.5934 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008451/0.2193, allocations: 0.673 MB / 0.594 GB, free: 216 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2193, allocations: 0 / 0.594 GB, free: 216 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004716/0.2198, allocations: 95.81 kB / 0.5941 GB, free: 120 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.2198, allocations: 4 kB / 0.5941 GB, free: 116 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.2199, allocations: 12 kB / 0.5941 GB, free: 104 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2199, allocations: 0 / 0.5941 GB, free: 104 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2199, allocations: 0 / 0.5941 GB, free: 104 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.2219, allocations: 0.8116 MB / 0.5949 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003586/0.2222, allocations: 204 kB / 0.5951 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.209e-05/0.2223, allocations: 12 kB / 0.5951 GB, free: 15.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000423/0.2228, allocations: 47.95 kB / 0.5952 GB, free: 14.99 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.2229, allocations: 28.39 kB / 0.5952 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.542e-05/0.2229, allocations: 19.98 kB / 0.5952 GB, free: 14.94 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000657/0.2236, allocations: 463 kB / 0.5957 GB, free: 14.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2236, allocations: 0 / 0.5957 GB, free: 14.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007561/0.2244, allocations: 231.3 kB / 0.5959 GB, free: 14.27 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.0002241/0.2246, allocations: 119.1 kB / 0.596 GB, free: 14.14 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001992/0.2266, allocations: 0.8286 MB / 0.5968 GB, free: 13.29 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.2266, allocations: 4.062 kB / 0.5968 GB, free: 13.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005161/0.2271, allocations: 242.4 kB / 0.597 GB, free: 13.05 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009675/0.2281, allocations: 210.6 kB / 0.5972 GB, free: 12.86 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002834/0.231, allocations: 1.265 MB / 0.5985 GB, free: 11.57 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008804/0.2319, allocations: 0.93 MB / 0.5994 GB, free: 10.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000447/0.2323, allocations: 85.06 kB / 0.5995 GB, free: 10.53 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.2325, allocations: 47.44 kB / 0.5995 GB, free: 10.48 MB / 478.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2325, allocations: 4 kB / 0.5995 GB, free: 10.48 MB / 478.1 MB Notification: Performance of Templates: time 0.02032/0.2528, allocations: 8.537 MB / 0.6079 GB, free: 2.016 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)