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: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002163/0.002163, allocations: 294.6 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9506/0.9506, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 99.88 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1349, allocations: 86.99 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005103/0.14, allocations: 4.11 MB / 0.6843 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.1425, allocations: 1.315 MB / 0.6856 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005212/0.143, allocations: 19.94 kB / 0.6856 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003737/0.1434, allocations: 126.7 kB / 0.6857 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005006/0.1439, allocations: 183.1 kB / 0.6859 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008617/0.1448, allocations: 414.6 kB / 0.6863 GB, free: 10.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008275/0.1457, allocations: 0.9632 MB / 0.6872 GB, free: 9.469 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000559/0.1462, allocations: 458 kB / 0.6877 GB, free: 9 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002886/0.1465, allocations: 326.8 kB / 0.688 GB, free: 8.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.1468, allocations: 334.3 kB / 0.6883 GB, free: 8.352 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1469, allocations: 92 kB / 0.6884 GB, free: 8.262 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.1471, allocations: 91.94 kB / 0.6885 GB, free: 8.172 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1472, allocations: 183.4 kB / 0.6887 GB, free: 7.992 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002756/0.1475, allocations: 390 kB / 0.689 GB, free: 7.609 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007585/0.1482, allocations: 1.036 MB / 0.69 GB, free: 6.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1482, allocations: 0 / 0.69 GB, free: 6.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1482, allocations: 4 kB / 0.69 GB, free: 6.566 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.1483, allocations: 0 / 0.69 GB, free: 6.566 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.001642/0.1499, allocations: 1.073 MB / 0.6911 GB, free: 5.434 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.15, allocations: 8.031 kB / 0.6911 GB, free: 5.426 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.1501, allocations: 102.6 kB / 0.6912 GB, free: 5.316 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.1502, allocations: 87.91 kB / 0.6913 GB, free: 5.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007342/0.1509, allocations: 0.5495 MB / 0.6918 GB, free: 4.645 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.151, allocations: 41.69 kB / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.515e-05/0.1511, allocations: 60.38 kB / 0.6919 GB, free: 4.547 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009754/0.152, allocations: 0.6037 MB / 0.6925 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.1521, allocations: 11.98 kB / 0.6925 GB, free: 3.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.1521, allocations: 20 kB / 0.6925 GB, free: 3.891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.1522, allocations: 16 kB / 0.6925 GB, free: 3.875 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009472/0.1531, allocations: 461 kB / 0.693 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002539/0.1557, allocations: 2.02 MB / 0.695 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000875/0.1565, allocations: 437.7 kB / 0.6954 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004278/0.157, allocations: 246 kB / 0.6956 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.157, allocations: 8.438 kB / 0.6956 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005508/0.1576, allocations: 261.2 kB / 0.6959 GB, free: 388 kB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 1.973e-06/0.1576, allocations: 0 / 0.6959 GB, free: 388 kB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001265/0.1589, allocations: 0.5843 MB / 0.6964 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.1589, allocations: 55.84 kB / 0.6965 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000441/0.1594, allocations: 442 kB / 0.6969 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.1594, allocations: 37.7 kB / 0.6969 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.1596, allocations: 325 kB / 0.6973 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.1597, allocations: 173.5 kB / 0.6974 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.1599, allocations: 90.25 kB / 0.6975 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.16, allocations: 366.8 kB / 0.6979 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/0.1604, allocations: 161 kB / 0.698 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000424/0.1608, allocations: 257.8 kB / 0.6983 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008048/0.1617, allocations: 452 kB / 0.6987 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1617, allocations: 4 kB / 0.6987 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00105/0.1627, allocations: 0.5623 MB / 0.6992 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/0.1628, allocations: 37.69 kB / 0.6993 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1628, allocations: 4 kB / 0.6993 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1628, allocations: 7.938 kB / 0.6993 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.1633, allocations: 111.8 kB / 0.6994 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1633, allocations: 8.25 kB / 0.6994 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.1637, allocations: 55.52 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.1637, allocations: 19.98 kB / 0.6995 GB, free: 12.55 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.0002269/0.1639, allocations: 211.8 kB / 0.6997 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.164, allocations: 59.19 kB / 0.6997 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.1642, allocations: 65.58 kB / 0.6998 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.1642, allocations: 8 kB / 0.6998 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1642, allocations: 4 kB / 0.6998 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1642, allocations: 0 / 0.6998 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.1658, allocations: 1.17 MB / 0.701 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.1659, allocations: 0 / 0.701 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/0.1663, allocations: 99.81 kB / 0.701 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.1664, allocations: 8 kB / 0.7011 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.1664, allocations: 8 kB / 0.7011 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.1664, allocations: 11.92 kB / 0.7011 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1664, allocations: 0 / 0.7011 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.1677, allocations: 0.7563 MB / 0.7018 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.1679, allocations: 168.3 kB / 0.702 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.703e-05/0.168, allocations: 15.98 kB / 0.702 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.1683, allocations: 27.97 kB / 0.702 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.197e-05/0.1684, allocations: 32.39 kB / 0.702 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.1684, allocations: 12 kB / 0.7021 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003224/0.1687, allocations: 310.8 kB / 0.7024 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.1687, allocations: 0 / 0.7024 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004379/0.1692, allocations: 155.4 kB / 0.7025 GB, free: 9.355 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.001557/0.1707, allocations: 1.319 MB / 0.7038 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001078/0.1718, allocations: 0.4892 MB / 0.7043 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1718, allocations: 0 / 0.7043 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004153/0.1723, allocations: 226.8 kB / 0.7045 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/0.173, allocations: 159.7 kB / 0.7046 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008008/0.181, allocations: 4.882 MB / 0.7094 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/0.1816, allocations: 0.8937 MB / 0.7103 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003357/0.1819, allocations: 64.58 kB / 0.7103 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003184/0.1822, allocations: 223.4 kB / 0.7106 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/0.1823, allocations: 0 / 0.7106 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.515/0.6973, allocations: 11.13 MB / 0.7214 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.269/9.966, allocations: 7.875 kB / 0.7214 GB, free: 5.965 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)