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.001123/0.001128, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008394/0.008394, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001733/0.001733, allocations: 259 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9463/0.9463, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003705, allocations: 17.86 kB / 0.5986 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1332, allocations: 88.55 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.003748/0.137, allocations: 3.711 MB / 0.6887 GB, free: 11.36 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.1389, allocations: 1.265 MB / 0.69 GB, free: 10.1 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002495/0.1392, allocations: 19.94 kB / 0.69 GB, free: 10.08 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.1394, allocations: 92.44 kB / 0.6901 GB, free: 9.988 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.1397, allocations: 149.9 kB / 0.6902 GB, free: 9.844 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.1404, allocations: 391 kB / 0.6906 GB, free: 9.469 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000715/0.1411, allocations: 0.8734 MB / 0.6914 GB, free: 8.594 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005348/0.1417, allocations: 426.4 kB / 0.6919 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.1419, allocations: 241.2 kB / 0.6921 GB, free: 7.926 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.1422, allocations: 250.4 kB / 0.6923 GB, free: 7.68 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.553e-05/0.1422, allocations: 24 kB / 0.6923 GB, free: 7.656 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.755e-05/0.1423, allocations: 27.94 kB / 0.6924 GB, free: 7.629 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.483e-05/0.1424, allocations: 99.42 kB / 0.6925 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.1427, allocations: 335.7 kB / 0.6928 GB, free: 7.195 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007268/0.1434, allocations: 0.9555 MB / 0.6937 GB, free: 6.238 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1434, allocations: 0 / 0.6937 GB, free: 6.238 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1434, allocations: 0 / 0.6937 GB, free: 6.238 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.1434, allocations: 0 / 0.6937 GB, free: 6.238 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.001498/0.1449, allocations: 0.9472 MB / 0.6946 GB, free: 5.238 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.145, allocations: 12.03 kB / 0.6947 GB, free: 5.227 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1451, allocations: 88 kB / 0.6947 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007245/0.1458, allocations: 0.5494 MB / 0.6953 GB, free: 4.551 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.442e-05/0.1459, allocations: 49.67 kB / 0.6953 GB, free: 4.504 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-05/0.146, allocations: 60.38 kB / 0.6954 GB, free: 4.445 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.147, allocations: 0.6117 MB / 0.696 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.147, allocations: 7.844 kB / 0.696 GB, free: 3.805 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.177e-05/0.1471, allocations: 24 kB / 0.696 GB, free: 3.781 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1471, allocations: 16 kB / 0.696 GB, free: 3.766 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009548/0.1481, allocations: 473 kB / 0.6965 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.1507, allocations: 2.024 MB / 0.6985 GB, free: 1.211 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008993/0.1516, allocations: 457 kB / 0.6989 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004591/0.1521, allocations: 238.1 kB / 0.6991 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.1521, allocations: 12.44 kB / 0.6991 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005412/0.1526, allocations: 265.2 kB / 0.6994 GB, free: 244 kB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 3.006e-06/0.1527, allocations: 0 / 0.6994 GB, free: 244 kB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001326/0.154, allocations: 0.6038 MB / 0.7 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.154, allocations: 59.84 kB / 0.7 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.1545, allocations: 442.1 kB / 0.7005 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.629e-05/0.1545, allocations: 33.7 kB / 0.7005 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.1548, allocations: 328.9 kB / 0.7008 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.1549, allocations: 165.6 kB / 0.701 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.19e-05/0.155, allocations: 49.69 kB / 0.701 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1551, allocations: 366.8 kB / 0.7014 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003905/0.1555, allocations: 177 kB / 0.7015 GB, free: 14 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004363/0.156, allocations: 253.8 kB / 0.7018 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008282/0.1568, allocations: 460 kB / 0.7022 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1568, allocations: 0 / 0.7022 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00105/0.1579, allocations: 0.5702 MB / 0.7028 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.1579, allocations: 41.62 kB / 0.7028 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1579, allocations: 0 / 0.7028 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.158, allocations: 4.25 kB / 0.7028 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005136/0.1585, allocations: 123.8 kB / 0.7029 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.1585, allocations: 8 kB / 0.7029 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003466/0.1589, allocations: 63.5 kB / 0.703 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.1589, allocations: 20 kB / 0.703 GB, free: 12.39 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 (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.0002357/0.1591, allocations: 211.8 kB / 0.7032 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-05/0.1592, allocations: 59.28 kB / 0.7033 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.1594, allocations: 61.58 kB / 0.7033 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1594, allocations: 4 kB / 0.7033 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1594, allocations: 0 / 0.7033 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1594, allocations: 3.984 kB / 0.7033 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.1611, allocations: 1.201 MB / 0.7045 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1611, allocations: 0 / 0.7045 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004659/0.1616, allocations: 95.89 kB / 0.7046 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1616, allocations: 4 kB / 0.7046 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.1616, allocations: 19.92 kB / 0.7046 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1617, allocations: 0 / 0.7046 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1617, allocations: 0 / 0.7046 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.163, allocations: 0.7757 MB / 0.7054 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/0.1632, allocations: 172.3 kB / 0.7055 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.021e-05/0.1632, allocations: 12 kB / 0.7056 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.1636, allocations: 35.97 kB / 0.7056 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.264e-05/0.1637, allocations: 36.39 kB / 0.7056 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.1637, allocations: 19.98 kB / 0.7056 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003184/0.164, allocations: 306.9 kB / 0.7059 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.164, allocations: 3.938 kB / 0.7059 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004137/0.1644, allocations: 139.4 kB / 0.7061 GB, free: 9.16 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 (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.0001217/0.1646, allocations: 123.2 kB / 0.7062 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009/0.1655, allocations: 497.5 kB / 0.7067 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1655, allocations: 0 / 0.7067 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004242/0.1659, allocations: 218.4 kB / 0.7069 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007707/0.1667, allocations: 151.2 kB / 0.707 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002607/0.1693, allocations: 1.696 MB / 0.7087 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.1697, allocations: 0.8978 MB / 0.7095 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00026/0.17, allocations: 60.59 kB / 0.7096 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1701, allocations: 35.44 kB / 0.7096 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.1701, allocations: 0 / 0.7096 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of Templates: time 0.01001/0.1801, allocations: 5.533 MB / 0.715 GB, free: 15.98 MB / 0.5137 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)