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/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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7449/0.7449, allocations: 143.4 MB / 159.2 MB, free: 4.828 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 184.5 kB / 191.9 MB, free: 5.695 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 447.4 MB, free: 5.875 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009995/0.0009994, allocations: 111 kB / 0.517 GB, free: 3.715 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001852/0.001852, allocations: 286.8 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 79.88 kB / 0.6886 GB, free: 3.852 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2734, allocations: 81.3 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.003786/0.2772, allocations: 4.13 MB / 0.772 GB, free: 23.5 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.2787, allocations: 1.286 MB / 0.7732 GB, free: 22.21 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.2789, allocations: 23.88 kB / 0.7733 GB, free: 22.19 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.2792, allocations: 91.2 kB / 0.7733 GB, free: 22.1 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000245/0.2794, allocations: 150.8 kB / 0.7735 GB, free: 21.95 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006087/0.28, allocations: 378.8 kB / 0.7738 GB, free: 21.58 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005007/0.2805, allocations: 0.8891 MB / 0.7747 GB, free: 20.69 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.281, allocations: 424.8 kB / 0.7751 GB, free: 20.25 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.2812, allocations: 282.7 kB / 0.7754 GB, free: 19.98 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.2814, allocations: 306.3 kB / 0.7757 GB, free: 19.68 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 6.685e-05/0.2815, allocations: 40 kB / 0.7757 GB, free: 19.64 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.177e-05/0.2815, allocations: 40 kB / 0.7758 GB, free: 19.6 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 7.433e-05/0.2816, allocations: 135.4 kB / 0.7759 GB, free: 19.46 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.2818, allocations: 334.1 kB / 0.7762 GB, free: 19.14 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005052/0.2823, allocations: 0.9967 MB / 0.7772 GB, free: 18.14 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2823, allocations: 0 / 0.7772 GB, free: 18.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2823, allocations: 0 / 0.7772 GB, free: 18.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.2824, allocations: 3.938 kB / 0.7772 GB, free: 18.13 MB / 458.7 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.00142/0.2838, allocations: 1.073 MB / 0.7782 GB, free: 17 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.2838, allocations: 12.03 kB / 0.7782 GB, free: 16.99 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.2839, allocations: 87.91 kB / 0.7783 GB, free: 16.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/0.2845, allocations: 0.5572 MB / 0.7789 GB, free: 16.31 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.2846, allocations: 41.69 kB / 0.7789 GB, free: 16.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.891e-05/0.2846, allocations: 56.38 kB / 0.779 GB, free: 16.21 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008222/0.2855, allocations: 0.6118 MB / 0.7796 GB, free: 15.58 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.2855, allocations: 0 / 0.7796 GB, free: 15.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.38e-05/0.2856, allocations: 27.94 kB / 0.7796 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.2856, allocations: 12 kB / 0.7796 GB, free: 15.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008231/0.2864, allocations: 461 kB / 0.78 GB, free: 15.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.2885, allocations: 2.016 MB / 0.782 GB, free: 13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007481/0.2893, allocations: 447 kB / 0.7824 GB, free: 12.56 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003705/0.2896, allocations: 250.6 kB / 0.7827 GB, free: 12.31 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.2897, allocations: 8.375 kB / 0.7827 GB, free: 12.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004701/0.2902, allocations: 269.2 kB / 0.7829 GB, free: 12.03 MB / 458.7 MB Notification: Performance of pre-optimization done (n=49): time 1.814e-06/0.2902, allocations: 0 / 0.7829 GB, free: 12.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=49): time 0.001059/0.2912, allocations: 0.5804 MB / 0.7835 GB, free: 11.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.25e-05/0.2913, allocations: 59.84 kB / 0.7836 GB, free: 11.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.2916, allocations: 446.8 kB / 0.784 GB, free: 10.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.2916, allocations: 33.7 kB / 0.784 GB, free: 10.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.2918, allocations: 320.3 kB / 0.7843 GB, free: 10.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.844e-05/0.2919, allocations: 169.5 kB / 0.7845 GB, free: 10.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.292, allocations: 90.25 kB / 0.7846 GB, free: 10.31 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.234e-05/0.2921, allocations: 366.8 kB / 0.7849 GB, free: 9.941 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.2924, allocations: 169 kB / 0.7851 GB, free: 9.777 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.2928, allocations: 249.8 kB / 0.7853 GB, free: 9.508 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006516/0.2934, allocations: 456 kB / 0.7858 GB, free: 9.035 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2934, allocations: 0 / 0.7858 GB, free: 9.035 MB / 458.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008385/0.2943, allocations: 0.5546 MB / 0.7863 GB, free: 8.465 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.2943, allocations: 41.88 kB / 0.7863 GB, free: 8.418 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2943, allocations: 8 kB / 0.7863 GB, free: 8.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2944, allocations: 4 kB / 0.7864 GB, free: 8.406 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.2948, allocations: 111.8 kB / 0.7865 GB, free: 8.297 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.2948, allocations: 4 kB / 0.7865 GB, free: 8.293 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.2951, allocations: 67.41 kB / 0.7865 GB, free: 8.227 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.2952, allocations: 19.94 kB / 0.7865 GB, free: 8.207 MB / 458.7 MB 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.0001726/0.2954, allocations: 220.8 kB / 0.7868 GB, free: 7.984 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.265e-05/0.2954, allocations: 55.28 kB / 0.7868 GB, free: 7.93 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.2955, allocations: 69.58 kB / 0.7869 GB, free: 7.863 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2955, allocations: 4 kB / 0.7869 GB, free: 7.859 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2956, allocations: 0 / 0.7869 GB, free: 7.859 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2956, allocations: 3.984 kB / 0.7869 GB, free: 7.855 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.2969, allocations: 1.174 MB / 0.788 GB, free: 6.621 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.297, allocations: 0 / 0.788 GB, free: 6.621 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.2974, allocations: 91.89 kB / 0.7881 GB, free: 6.531 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2974, allocations: 8 kB / 0.7881 GB, free: 6.523 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.2975, allocations: 15.98 kB / 0.7881 GB, free: 6.508 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.2975, allocations: 0 / 0.7881 GB, free: 6.508 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2975, allocations: 3.938 kB / 0.7881 GB, free: 6.504 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005534/0.303, allocations: 4.193 MB / 0.7922 GB, free: 2.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.3032, allocations: 164.4 kB / 0.7924 GB, free: 1.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.013e-05/0.3032, allocations: 15.98 kB / 0.7924 GB, free: 1.965 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.3035, allocations: 23.92 kB / 0.7924 GB, free: 1.941 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.972e-05/0.3036, allocations: 40.38 kB / 0.7925 GB, free: 1.902 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.3036, allocations: 16 kB / 0.7925 GB, free: 1.887 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002477/0.3039, allocations: 310.9 kB / 0.7928 GB, free: 1.586 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3039, allocations: 0 / 0.7928 GB, free: 1.586 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000511/0.3044, allocations: 199.4 kB / 0.793 GB, free: 1.391 MB / 458.7 MB 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 9.011e-05/0.3045, allocations: 115.1 kB / 0.7931 GB, free: 1.266 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0007595/0.3053, allocations: 481.5 kB / 0.7935 GB, free: 0.7852 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3053, allocations: 0 / 0.7935 GB, free: 0.7852 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003561/0.3056, allocations: 222.3 kB / 0.7938 GB, free: 0.5703 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.3063, allocations: 142 kB / 0.7939 GB, free: 448 kB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.309, allocations: 1.933 MB / 0.7958 GB, free: 14.45 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.3094, allocations: 0.8981 MB / 0.7967 GB, free: 13.53 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0002939/0.3097, allocations: 68.58 kB / 0.7967 GB, free: 13.46 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.3098, allocations: 51.36 kB / 0.7968 GB, free: 13.41 MB / 474.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3098, allocations: 4 kB / 0.7968 GB, free: 13.41 MB / 474.7 MB Notification: Performance of Templates: time 0.01089/0.3207, allocations: 6.964 MB / 0.8036 GB, free: 6.52 MB / 474.7 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)