Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.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.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001325/0.001325, allocations: 196.8 kB / 16.14 MB, free: 6.715 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002646/0.002646, allocations: 279 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.105/1.105, allocations: 178.6 MB / 0.5068 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002758/0.002758, allocations: 99.59 kB / 0.6057 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1586, allocations: 89.15 MB / 0.6928 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.005256/0.1639, allocations: 3.733 MB / 0.6964 GB, free: 1.094 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.1662, allocations: 1.301 MB / 0.6977 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.1665, allocations: 27.88 kB / 0.6977 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003007/0.1668, allocations: 91.8 kB / 0.6978 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004522/0.1673, allocations: 139.7 kB / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.1684, allocations: 0.5417 MB / 0.6985 GB, free: 15 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009599/0.1694, allocations: 0.8901 MB / 0.6993 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005342/0.1699, allocations: 337.9 kB / 0.6997 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004037/0.1703, allocations: 322.2 kB / 0.7 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000364/0.1707, allocations: 326.1 kB / 0.7003 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1708, allocations: 36 kB / 0.7003 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.528e-05/0.1709, allocations: 36 kB / 0.7004 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.1711, allocations: 143.3 kB / 0.7005 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003297/0.1714, allocations: 341.7 kB / 0.7008 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007703/0.1722, allocations: 0.8095 MB / 0.7016 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1722, allocations: 0 / 0.7016 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.42e-07/0.1722, allocations: 3.938 kB / 0.7016 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.746e-06/0.1722, allocations: 0 / 0.7016 GB, free: 11.77 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002156/0.1744, allocations: 1.185 MB / 0.7028 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.1744, allocations: 12.03 kB / 0.7028 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.1746, allocations: 91.81 kB / 0.7029 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009933/0.1756, allocations: 0.5948 MB / 0.7034 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.1757, allocations: 101 kB / 0.7035 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.058e-05/0.1758, allocations: 48.38 kB / 0.7036 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.177, allocations: 0.608 MB / 0.7042 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.177, allocations: 4 kB / 0.7042 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/0.1771, allocations: 20 kB / 0.7042 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.1771, allocations: 12 kB / 0.7042 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.1781, allocations: 427.7 kB / 0.7046 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002959/0.1811, allocations: 2.118 MB / 0.7067 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.1824, allocations: 0.4951 MB / 0.7072 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005006/0.1829, allocations: 216.8 kB / 0.7074 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.199e-05/0.1829, allocations: 4 kB / 0.7074 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007439/0.1837, allocations: 289.8 kB / 0.7077 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.1837, allocations: 0 / 0.7077 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.00153/0.1852, allocations: 0.612 MB / 0.7083 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.117e-05/0.1853, allocations: 88.86 kB / 0.7083 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007735/0.1861, allocations: 0.6138 MB / 0.7089 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.863e-05/0.1861, allocations: 37.7 kB / 0.709 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/0.1865, allocations: 352.9 kB / 0.7093 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.1866, allocations: 153.8 kB / 0.7095 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.1868, allocations: 98.14 kB / 0.7096 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.187, allocations: 322 kB / 0.7099 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004881/0.1874, allocations: 194.9 kB / 0.7101 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000553/0.188, allocations: 284.2 kB / 0.7103 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.189, allocations: 466 kB / 0.7108 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.1891, allocations: 3.938 kB / 0.7108 GB, free: 2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001276/0.1903, allocations: 0.6021 MB / 0.7114 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/0.1904, allocations: 34.02 kB / 0.7114 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.1904, allocations: 4 kB / 0.7114 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1904, allocations: 4 kB / 0.7114 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000489/0.1909, allocations: 107.8 kB / 0.7115 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.1909, allocations: 8 kB / 0.7115 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.1913, allocations: 59.5 kB / 0.7116 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/0.1914, allocations: 27.98 kB / 0.7116 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005905/0.192, allocations: 309.2 kB / 0.7119 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005007/0.1925, allocations: 264.2 kB / 0.7121 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008875/0.1934, allocations: 458 kB / 0.7126 GB, free: 56 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.59e-06/0.1934, allocations: 7.984 kB / 0.7126 GB, free: 48 kB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001183/0.1946, allocations: 0.5787 MB / 0.7132 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.1946, allocations: 37.7 kB / 0.7132 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.1947, allocations: 0 / 0.7132 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.684e-06/0.1947, allocations: 8 kB / 0.7132 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004627/0.1951, allocations: 108.1 kB / 0.7133 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1952, allocations: 4 kB / 0.7133 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.1955, allocations: 59.56 kB / 0.7134 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.1956, allocations: 16 kB / 0.7134 GB, free: 15.22 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001796/0.1958, allocations: 212.7 kB / 0.7136 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.1959, allocations: 71.16 kB / 0.7136 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.1961, allocations: 87.2 kB / 0.7137 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1961, allocations: 4 kB / 0.7137 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1961, allocations: 0 / 0.7137 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1961, allocations: 0 / 0.7137 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007525/0.1968, allocations: 0.6257 MB / 0.7143 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1969, allocations: 0 / 0.7143 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004829/0.1973, allocations: 91.77 kB / 0.7144 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1974, allocations: 0 / 0.7144 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/0.1974, allocations: 11.98 kB / 0.7144 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.1974, allocations: 0 / 0.7144 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1974, allocations: 8 kB / 0.7144 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.199, allocations: 0.7234 MB / 0.7152 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.1993, allocations: 196 kB / 0.7153 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.924e-05/0.1994, allocations: 12 kB / 0.7154 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004012/0.1998, allocations: 27.97 kB / 0.7154 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.1999, allocations: 31.95 kB / 0.7154 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.195e-05/0.1999, allocations: 19.98 kB / 0.7154 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005398/0.2005, allocations: 431 kB / 0.7158 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2005, allocations: 4 kB / 0.7158 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006046/0.2011, allocations: 215.3 kB / 0.7161 GB, free: 12.38 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001516/0.2013, allocations: 111.2 kB / 0.7162 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001649/0.2029, allocations: 0.7894 MB / 0.7169 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2029, allocations: 0 / 0.7169 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000498/0.2034, allocations: 216.3 kB / 0.7171 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008879/0.2043, allocations: 194.6 kB / 0.7173 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.2066, allocations: 1.439 MB / 0.7187 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/0.2072, allocations: 0.9144 MB / 0.7196 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003837/0.2076, allocations: 97.11 kB / 0.7197 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.2078, allocations: 43.44 kB / 0.7198 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of SimCode: time 4.01e-07/0.2078, allocations: 0 / 0.7198 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of Templates: time 0.0142/0.222, allocations: 7.193 MB / 0.7268 GB, free: 1.391 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)