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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 106.1 kB / 15.98 MB, free: 6.332 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.001272/0.001272, allocations: 198.6 kB / 16.91 MB, free: 6.18 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.276/1.276, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 293.9 kB / 291 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8981/0.8981, allocations: 169.2 MB / 0.4985 GB, free: 4.676 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 93.47 kB / 0.5953 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1909, allocations: 86.98 MB / 0.6803 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005093/0.1961, allocations: 4.134 MB / 0.6843 GB, free: 4.438 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.1981, allocations: 1.278 MB / 0.6855 GB, free: 3.152 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.1984, allocations: 19.94 kB / 0.6856 GB, free: 3.133 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003042/0.1987, allocations: 91.22 kB / 0.6857 GB, free: 3.043 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003/0.199, allocations: 146.8 kB / 0.6858 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007485/0.1998, allocations: 385.7 kB / 0.6862 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007922/0.2006, allocations: 0.9633 MB / 0.6871 GB, free: 1.562 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005727/0.2011, allocations: 466.2 kB / 0.6875 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.2015, allocations: 334.7 kB / 0.6879 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002813/0.2017, allocations: 326.4 kB / 0.6882 GB, free: 448 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-05/0.2018, allocations: 92 kB / 0.6883 GB, free: 356 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.612e-05/0.2019, allocations: 88 kB / 0.6883 GB, free: 268 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.2021, allocations: 187.3 kB / 0.6885 GB, free: 80 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3161/0.5182, allocations: 382.4 kB / 0.6889 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.5194, allocations: 0.8428 MB / 0.6897 GB, free: 13.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.5194, allocations: 0 / 0.6897 GB, free: 13.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5194, allocations: 0.7812 kB / 0.6897 GB, free: 13.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.5194, allocations: 1.406 kB / 0.6897 GB, free: 13.66 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.001877/0.5213, allocations: 1.069 MB / 0.6908 GB, free: 13.03 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.5214, allocations: 9.906 kB / 0.6908 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.5215, allocations: 82.83 kB / 0.6908 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.5223, allocations: 0.5564 MB / 0.6914 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.129e-05/0.5224, allocations: 42.98 kB / 0.6914 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.5225, allocations: 62.12 kB / 0.6915 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.5237, allocations: 0.6058 MB / 0.6921 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.5237, allocations: 5.422 kB / 0.6921 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-05/0.5238, allocations: 26.31 kB / 0.6921 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.5238, allocations: 15 kB / 0.6921 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.5248, allocations: 461.6 kB / 0.6926 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/0.5278, allocations: 2.011 MB / 0.6945 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009357/0.5288, allocations: 445.2 kB / 0.695 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.5293, allocations: 241.4 kB / 0.6952 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.748e-05/0.5293, allocations: 8.203 kB / 0.6952 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006312/0.53, allocations: 256.9 kB / 0.6954 GB, free: 11.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/0.53, allocations: 0 / 0.6954 GB, free: 11.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001326/0.5313, allocations: 0.5906 MB / 0.696 GB, free: 11.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.5314, allocations: 57.69 kB / 0.6961 GB, free: 10.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005387/0.5319, allocations: 445.6 kB / 0.6965 GB, free: 10.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.949e-05/0.5319, allocations: 37.02 kB / 0.6965 GB, free: 10.72 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.5322, allocations: 325.8 kB / 0.6968 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.5323, allocations: 167.3 kB / 0.697 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.5325, allocations: 95.83 kB / 0.6971 GB, free: 10.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.5326, allocations: 364.1 kB / 0.6974 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.533, allocations: 165.8 kB / 0.6976 GB, free: 9.887 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.5334, allocations: 253.4 kB / 0.6978 GB, free: 9.742 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007802/0.5342, allocations: 454.5 kB / 0.6983 GB, free: 9.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.5342, allocations: 0.9375 kB / 0.6983 GB, free: 9.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001045/0.5353, allocations: 0.5632 MB / 0.6988 GB, free: 9.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.5353, allocations: 39.28 kB / 0.6989 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.5353, allocations: 3.906 kB / 0.6989 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.5354, allocations: 6.016 kB / 0.6989 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005161/0.5359, allocations: 112.5 kB / 0.699 GB, free: 9.191 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.5359, allocations: 11.39 kB / 0.699 GB, free: 9.188 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003872/0.5363, allocations: 61.77 kB / 0.699 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.094e-05/0.5364, allocations: 18.03 kB / 0.6991 GB, free: 9.152 MB / 494.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: 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.0002291/0.5366, allocations: 207.3 kB / 0.6993 GB, free: 8.984 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.417e-05/0.5367, allocations: 58.12 kB / 0.6993 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.5368, allocations: 69.62 kB / 0.6994 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.5368, allocations: 4.219 kB / 0.6994 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.5368, allocations: 0.875 kB / 0.6994 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.5369, allocations: 2.578 kB / 0.6994 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.5387, allocations: 1.175 MB / 0.7005 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5387, allocations: 4 kB / 0.7005 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.5392, allocations: 97.27 kB / 0.7006 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.5392, allocations: 4.938 kB / 0.7006 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.5392, allocations: 13.23 kB / 0.7007 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.5393, allocations: 1.75 kB / 0.7007 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.5393, allocations: 0 / 0.7007 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.5406, allocations: 0.7632 MB / 0.7014 GB, free: 7.828 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.5407, allocations: 175.5 kB / 0.7016 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.709e-05/0.5408, allocations: 7.938 kB / 0.7016 GB, free: 7.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.5411, allocations: 29.33 kB / 0.7016 GB, free: 7.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.5413, allocations: 32.53 kB / 0.7016 GB, free: 7.656 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.5413, allocations: 21.17 kB / 0.7017 GB, free: 7.648 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000363/0.5417, allocations: 308.1 kB / 0.7019 GB, free: 7.496 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5417, allocations: 1.125 kB / 0.7019 GB, free: 7.496 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005007/0.5422, allocations: 145.9 kB / 0.7021 GB, free: 7.453 MB / 494.1 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 0.0001334/0.5423, allocations: 113.4 kB / 0.7022 GB, free: 7.355 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.5434, allocations: 0.4914 MB / 0.7027 GB, free: 7.152 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5434, allocations: 0 / 0.7027 GB, free: 7.152 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004103/0.5438, allocations: 214 kB / 0.7029 GB, free: 7.09 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008068/0.5447, allocations: 160.1 kB / 0.703 GB, free: 7.043 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.5474, allocations: 1.643 MB / 0.7046 GB, free: 5.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.5478, allocations: 0.8871 MB / 0.7055 GB, free: 5.273 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.548, allocations: 44.42 kB / 0.7055 GB, free: 5.266 MB / 494.1 MB Notification: Performance of SimCode: time 7.01e-07/0.548, allocations: 0 / 0.7055 GB, free: 5.266 MB / 494.1 MB Notification: Performance of Templates: time 0.01493/0.5629, allocations: 7.6 MB / 0.713 GB, free: 3.891 MB / 494.1 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)