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.0009747/0.0009747, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001275/0.001275, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001741/0.001741, allocations: 278.6 kB / 291.4 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.949/0.949, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006391/0.0006391, allocations: 20.56 kB / 0.598 GB, free: 28.48 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1645, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.003878/0.1684, allocations: 3.516 MB / 0.6879 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1704, allocations: 1.238 MB / 0.6891 GB, free: 10.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000271/0.1707, allocations: 23.88 kB / 0.6891 GB, free: 10.68 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.1709, allocations: 87.2 kB / 0.6892 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.1712, allocations: 139 kB / 0.6894 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006591/0.1719, allocations: 283.8 kB / 0.6896 GB, free: 10.19 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000739/0.1726, allocations: 0.8345 MB / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.173, allocations: 296.5 kB / 0.6907 GB, free: 9.051 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.1733, allocations: 226.8 kB / 0.6909 GB, free: 8.828 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.1735, allocations: 237.1 kB / 0.6912 GB, free: 8.598 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.002e-05/0.1736, allocations: 24 kB / 0.6912 GB, free: 8.574 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.19e-05/0.1737, allocations: 24 kB / 0.6912 GB, free: 8.551 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.925e-05/0.1738, allocations: 103.5 kB / 0.6913 GB, free: 8.449 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.1739, allocations: 153.3 kB / 0.6915 GB, free: 8.293 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006191/0.1745, allocations: 0.8063 MB / 0.6922 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1745, allocations: 4.75 kB / 0.6922 GB, free: 7.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1745, allocations: 0 / 0.6922 GB, free: 7.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1746, allocations: 1.875 kB / 0.6923 GB, free: 7.48 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.001433/0.176, allocations: 0.9631 MB / 0.6932 GB, free: 6.465 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.176, allocations: 8.031 kB / 0.6932 GB, free: 6.457 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1762, allocations: 88.14 kB / 0.6933 GB, free: 6.371 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007319/0.1769, allocations: 0.5377 MB / 0.6938 GB, free: 5.797 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.177, allocations: 45.31 kB / 0.6939 GB, free: 5.754 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.28e-05/0.177, allocations: 60 kB / 0.6939 GB, free: 5.695 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.1781, allocations: 0.6036 MB / 0.6945 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.1781, allocations: 3.984 kB / 0.6945 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.1782, allocations: 32 kB / 0.6945 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.1782, allocations: 12 kB / 0.6945 GB, free: 5.023 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00094/0.1791, allocations: 468.9 kB / 0.695 GB, free: 4.566 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002603/0.1818, allocations: 2.016 MB / 0.697 GB, free: 2.473 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008667/0.1826, allocations: 452.4 kB / 0.6974 GB, free: 2.027 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004277/0.1831, allocations: 250 kB / 0.6976 GB, free: 1.781 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.1831, allocations: 4.438 kB / 0.6976 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005337/0.1837, allocations: 257.4 kB / 0.6979 GB, free: 1.516 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.1837, allocations: 0 / 0.6979 GB, free: 1.516 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001209/0.1849, allocations: 0.6078 MB / 0.6985 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.1849, allocations: 59.84 kB / 0.6985 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004432/0.1854, allocations: 438 kB / 0.6989 GB, free: 400 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.1854, allocations: 37.7 kB / 0.699 GB, free: 356 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.1857, allocations: 320.3 kB / 0.6993 GB, free: 32 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.1858, allocations: 165.8 kB / 0.6994 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.1858, allocations: 12 kB / 0.6995 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.186, allocations: 362.8 kB / 0.6998 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003708/0.1863, allocations: 169 kB / 0.7 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004083/0.1868, allocations: 249.8 kB / 0.7002 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/0.1872, allocations: 231.8 kB / 0.7004 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1872, allocations: 8 kB / 0.7004 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009703/0.1882, allocations: 0.5662 MB / 0.701 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.1882, allocations: 41.69 kB / 0.701 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1882, allocations: 0 / 0.701 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.1882, allocations: 4 kB / 0.701 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004832/0.1887, allocations: 127.8 kB / 0.7012 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.1888, allocations: 4 kB / 0.7012 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.1891, allocations: 67.59 kB / 0.7012 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.1891, allocations: 20 kB / 0.7012 GB, free: 13.97 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.1894, allocations: 211.1 kB / 0.7014 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.896e-05/0.1895, allocations: 59.3 kB / 0.7015 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.1896, allocations: 61.58 kB / 0.7016 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1896, allocations: 11.94 kB / 0.7016 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1896, allocations: 0 / 0.7016 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.1896, allocations: 3.984 kB / 0.7016 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.1913, allocations: 1.189 MB / 0.7027 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1913, allocations: 0 / 0.7027 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.1918, allocations: 99.83 kB / 0.7028 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.1918, allocations: 0 / 0.7028 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.1918, allocations: 15.98 kB / 0.7028 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.1918, allocations: 4 kB / 0.7028 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1918, allocations: 0 / 0.7028 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.1931, allocations: 0.7757 MB / 0.7036 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.1932, allocations: 168.3 kB / 0.7038 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.217e-05/0.1933, allocations: 12 kB / 0.7038 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.1936, allocations: 31.97 kB / 0.7038 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.413e-05/0.1937, allocations: 36.38 kB / 0.7038 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.1937, allocations: 12 kB / 0.7039 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003185/0.1941, allocations: 306.9 kB / 0.7041 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1941, allocations: 3.938 kB / 0.7041 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004408/0.1945, allocations: 143.5 kB / 0.7043 GB, free: 10.76 MB / 0.4981 GB 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 (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.0001221/0.1946, allocations: 111.2 kB / 0.7044 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008686/0.1955, allocations: 493 kB / 0.7049 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1955, allocations: 0 / 0.7049 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.1959, allocations: 218.9 kB / 0.7051 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007088/0.1966, allocations: 147.2 kB / 0.7052 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.1992, allocations: 1.626 MB / 0.7068 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.1996, allocations: 0.8824 MB / 0.7077 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002703/0.1999, allocations: 68.58 kB / 0.7077 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.2, allocations: 47.42 kB / 0.7078 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.2, allocations: 0 / 0.7078 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of Templates: time 0.01005/0.2101, allocations: 5.354 MB / 0.713 GB, free: 1.824 MB / 0.4981 GB 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)