Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7046/0.7046, allocations: 141.8 MB / 149.1 MB, free: 3.973 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 175 kB / 181.9 MB, free: 15.73 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 221.4 MB / 436 MB, free: 8.906 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009038/0.0009039, allocations: 94.61 kB / 0.507 GB, free: 24.22 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001817/0.001818, allocations: 268.9 kB / 0.5884 GB, free: 11.88 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.718e-06/9.758e-06, allocations: 7.938 kB / 0.6759 GB, free: 2.238 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3335, allocations: 82.76 MB / 0.7567 GB, free: 112.5 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.4482, allocations: 115.8 MB / 0.8698 GB, free: 12.54 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.4485, allocations: 81.08 kB / 0.8699 GB, free: 12.46 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.04607/0.4946, allocations: 16.45 MB / 0.886 GB, free: 12.02 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 8.364e-05/0.4947, allocations: 23.94 kB / 0.886 GB, free: 11.99 MB / 0.5575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002006/0.4967, allocations: 0.9438 MB / 0.8869 GB, free: 11 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.4968, allocations: 9.031 kB / 0.8869 GB, free: 10.99 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003721/0.4972, allocations: 98.78 kB / 0.887 GB, free: 10.89 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00145/0.4986, allocations: 0.594 MB / 0.8876 GB, free: 10.25 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.4988, allocations: 80.41 kB / 0.8877 GB, free: 10.16 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.499, allocations: 32 kB / 0.8877 GB, free: 10.13 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008581/0.4998, allocations: 334 kB / 0.888 GB, free: 9.805 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.501, allocations: 0.5101 MB / 0.8885 GB, free: 9.242 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.5011, allocations: 4.656 kB / 0.8885 GB, free: 9.238 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.912e-05/0.5012, allocations: 0 / 0.8885 GB, free: 9.238 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.5012, allocations: 16 kB / 0.8885 GB, free: 9.223 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004005/0.5052, allocations: 2.097 MB / 0.8906 GB, free: 7.055 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000901/0.5061, allocations: 414 kB / 0.891 GB, free: 6.637 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.5065, allocations: 164.8 kB / 0.8911 GB, free: 6.473 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.731e-05/0.5065, allocations: 11.16 kB / 0.8911 GB, free: 6.465 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004565/0.507, allocations: 233.6 kB / 0.8914 GB, free: 6.223 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=45): time 4.048e-06/0.507, allocations: 3.984 kB / 0.8914 GB, free: 6.219 MB / 0.5575 GB Notification: Performance of matching and sorting (n=45): time 0.0008206/0.5078, allocations: 377.4 kB / 0.8917 GB, free: 5.844 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001698/0.508, allocations: 191.9 kB / 0.8919 GB, free: 5.613 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007142/0.5087, allocations: 471.7 kB / 0.8924 GB, free: 5.145 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.5088, allocations: 29.7 kB / 0.8924 GB, free: 5.109 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.509, allocations: 252.6 kB / 0.8926 GB, free: 4.859 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.5092, allocations: 149.8 kB / 0.8928 GB, free: 4.711 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.5092, allocations: 0 / 0.8928 GB, free: 4.711 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001899/0.5094, allocations: 386.7 kB / 0.8931 GB, free: 4.324 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.5097, allocations: 137.3 kB / 0.8933 GB, free: 4.191 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003538/0.51, allocations: 271.3 kB / 0.8935 GB, free: 3.879 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002937/0.5103, allocations: 160.8 kB / 0.8937 GB, free: 3.719 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.5103, allocations: 0 / 0.8937 GB, free: 3.719 MB / 0.5575 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008417/0.5112, allocations: 470.2 kB / 0.8941 GB, free: 3.254 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004297/0.5116, allocations: 0.9734 MB / 0.8951 GB, free: 2.207 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.5116, allocations: 0 / 0.8951 GB, free: 2.207 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.5117, allocations: 8 kB / 0.8951 GB, free: 2.199 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005823/0.5123, allocations: 119.9 kB / 0.8952 GB, free: 2.082 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.5123, allocations: 7.938 kB / 0.8952 GB, free: 2.074 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.5129, allocations: 79.48 kB / 0.8953 GB, free: 1.996 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.117e-05/0.513, allocations: 20 kB / 0.8953 GB, free: 1.977 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/0.513, allocations: 0 / 0.8953 GB, free: 1.977 MB / 0.5575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006771/0.5137, allocations: 373.3 kB / 0.8957 GB, free: 1.609 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.5137, allocations: 0 / 0.8957 GB, free: 1.609 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.5137, allocations: 9.688 kB / 0.8957 GB, free: 1.602 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004953/0.5142, allocations: 120.1 kB / 0.8958 GB, free: 1.484 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.5142, allocations: 7.047 kB / 0.8958 GB, free: 1.48 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004944/0.5147, allocations: 67.55 kB / 0.8959 GB, free: 1.414 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.359e-05/0.5148, allocations: 20 kB / 0.8959 GB, free: 1.395 MB / 0.5575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.5149, allocations: 120.8 kB / 0.896 GB, free: 1.27 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.515, allocations: 71.16 kB / 0.8961 GB, free: 1.199 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001561/0.5152, allocations: 70.55 kB / 0.8961 GB, free: 1.125 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.5152, allocations: 7.906 kB / 0.8961 GB, free: 1.117 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.5152, allocations: 0 / 0.8961 GB, free: 1.117 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5152, allocations: 3.984 kB / 0.8961 GB, free: 1.113 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006972/0.5159, allocations: 0.5795 MB / 0.8967 GB, free: 0.4961 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.516, allocations: 0 / 0.8967 GB, free: 0.4961 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005492/0.5165, allocations: 99.88 kB / 0.8968 GB, free: 408 kB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.5165, allocations: 0 / 0.8968 GB, free: 408 kB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.5166, allocations: 8 kB / 0.8968 GB, free: 400 kB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.5166, allocations: 0 / 0.8968 GB, free: 400 kB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5166, allocations: 0 / 0.8968 GB, free: 400 kB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00127/0.5179, allocations: 0.6273 MB / 0.8974 GB, free: 15.75 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.5182, allocations: 196.1 kB / 0.8976 GB, free: 15.54 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.5183, allocations: 8.172 kB / 0.8976 GB, free: 15.53 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005534/0.5189, allocations: 63.86 kB / 0.8977 GB, free: 15.46 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-05/0.519, allocations: 31.95 kB / 0.8977 GB, free: 15.43 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.519, allocations: 19.98 kB / 0.8977 GB, free: 15.41 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.0004347/0.5195, allocations: 363.2 kB / 0.8981 GB, free: 15.07 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.00076/0.5202, allocations: 215.1 kB / 0.8983 GB, free: 14.86 MB / 0.5732 GB 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000184/0.5204, allocations: 109 kB / 0.8984 GB, free: 14.74 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.001118/0.5215, allocations: 0.6596 MB / 0.899 GB, free: 14.07 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5216, allocations: 0 / 0.899 GB, free: 14.07 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.5218, allocations: 183.8 kB / 0.8992 GB, free: 13.89 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008355/0.5227, allocations: 152.8 kB / 0.8993 GB, free: 13.75 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.5249, allocations: 0.892 MB / 0.9002 GB, free: 12.83 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007274/0.5256, allocations: 0.9853 MB / 0.9012 GB, free: 11.82 MB / 0.5732 GB Notification: Performance of SimCode: time 7.92e-07/0.5256, allocations: 0 / 0.9012 GB, free: 11.82 MB / 0.5732 GB Notification: Performance of Templates: time 0.01972/0.5454, allocations: 10.65 MB / 0.9116 GB, free: 1.297 MB / 0.5732 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)