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: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",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.0009264/0.0009265, allocations: 98.11 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.005543/0.005543, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.296/1.296, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001709/0.001709, allocations: 283.1 kB / 291.7 MB, free: 1.84 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9182/0.9182, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.0004262, allocations: 11.62 kB / 0.5988 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1573, allocations: 88.55 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.003489/0.1608, allocations: 3.317 MB / 0.6885 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.163, allocations: 1.282 MB / 0.6897 GB, free: 10.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003035/0.1633, allocations: 23.88 kB / 0.6897 GB, free: 10.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.1636, allocations: 98.34 kB / 0.6898 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004499/0.164, allocations: 136.7 kB / 0.69 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.1651, allocations: 0.5308 MB / 0.6905 GB, free: 9.574 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007838/0.1659, allocations: 0.9 MB / 0.6914 GB, free: 8.676 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004783/0.1664, allocations: 339 kB / 0.6917 GB, free: 8.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.1667, allocations: 274.3 kB / 0.6919 GB, free: 8.07 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002838/0.167, allocations: 274.1 kB / 0.6922 GB, free: 7.801 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.241e-05/0.167, allocations: 24 kB / 0.6922 GB, free: 7.777 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.592e-05/0.1671, allocations: 23.94 kB / 0.6922 GB, free: 7.754 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.1672, allocations: 123.2 kB / 0.6924 GB, free: 7.633 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.1675, allocations: 323.5 kB / 0.6927 GB, free: 7.309 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006149/0.1681, allocations: 0.782 MB / 0.6934 GB, free: 6.523 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1681, allocations: 0 / 0.6934 GB, free: 6.523 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1681, allocations: 0 / 0.6934 GB, free: 6.523 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1681, allocations: 0 / 0.6934 GB, free: 6.523 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00171/0.1698, allocations: 1.055 MB / 0.6945 GB, free: 5.414 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1699, allocations: 12.03 kB / 0.6945 GB, free: 5.402 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.17, allocations: 90.7 kB / 0.6946 GB, free: 5.305 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1701, allocations: 91.81 kB / 0.6947 GB, free: 5.215 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008491/0.171, allocations: 0.6026 MB / 0.6952 GB, free: 4.566 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.1711, allocations: 96.95 kB / 0.6953 GB, free: 4.457 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.1712, allocations: 56.38 kB / 0.6954 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.1722, allocations: 0.6234 MB / 0.696 GB, free: 3.738 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.1723, allocations: 4 kB / 0.696 GB, free: 3.734 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.205e-05/0.1723, allocations: 20 kB / 0.696 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.1724, allocations: 12 kB / 0.696 GB, free: 3.703 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009648/0.1733, allocations: 443.7 kB / 0.6965 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.1759, allocations: 2.133 MB / 0.6985 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.1771, allocations: 0.5231 MB / 0.699 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000455/0.1776, allocations: 224.8 kB / 0.6993 GB, free: 304 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.1776, allocations: 8 kB / 0.6993 GB, free: 296 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006688/0.1783, allocations: 294.2 kB / 0.6996 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.004e-06/0.1783, allocations: 0 / 0.6996 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001496/0.1798, allocations: 0.6372 MB / 0.7002 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.1799, allocations: 92.86 kB / 0.7003 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006619/0.1806, allocations: 0.6099 MB / 0.7009 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.584e-05/0.1806, allocations: 37.7 kB / 0.7009 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.1809, allocations: 356.9 kB / 0.7012 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.181, allocations: 157.8 kB / 0.7014 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.676e-05/0.1811, allocations: 49.69 kB / 0.7014 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1812, allocations: 326 kB / 0.7017 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004426/0.1816, allocations: 190.1 kB / 0.7019 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004983/0.1821, allocations: 288.2 kB / 0.7022 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009171/0.1831, allocations: 0.4901 MB / 0.7027 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.1831, allocations: 4 kB / 0.7027 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001179/0.1843, allocations: 0.6139 MB / 0.7033 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.1844, allocations: 189.3 kB / 0.7035 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1844, allocations: 7.938 kB / 0.7035 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1844, allocations: 7.938 kB / 0.7035 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.1849, allocations: 111.8 kB / 0.7036 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1849, allocations: 4 kB / 0.7036 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003767/0.1853, allocations: 75.41 kB / 0.7037 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.1853, allocations: 23.94 kB / 0.7037 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.1854, allocations: 4 kB / 0.7037 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000977/0.1863, allocations: 0.5038 MB / 0.7042 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1864, allocations: 4 kB / 0.7042 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.711e-06/0.1864, allocations: 4 kB / 0.7042 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/0.1868, allocations: 103.8 kB / 0.7043 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1868, allocations: 7.984 kB / 0.7043 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.1872, allocations: 59.77 kB / 0.7043 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.1872, allocations: 24 kB / 0.7044 GB, free: 10.86 MB / 0.4981 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.0002764/0.1875, allocations: 280.9 kB / 0.7046 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.161e-05/0.1876, allocations: 71.09 kB / 0.7047 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.1877, allocations: 79.22 kB / 0.7048 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.1878, allocations: 7.984 kB / 0.7048 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1878, allocations: 4 kB / 0.7048 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1878, allocations: 3.984 kB / 0.7048 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006634/0.1884, allocations: 0.6218 MB / 0.7054 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1885, allocations: 0 / 0.7054 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004508/0.1889, allocations: 91.81 kB / 0.7055 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1889, allocations: 0 / 0.7055 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.189, allocations: 12 kB / 0.7055 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.189, allocations: 4 kB / 0.7055 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.189, allocations: 4 kB / 0.7055 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.1905, allocations: 0.7484 MB / 0.7062 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.1907, allocations: 200 kB / 0.7064 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.077e-05/0.1908, allocations: 12 kB / 0.7064 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.1912, allocations: 39.95 kB / 0.7065 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.1913, allocations: 31.95 kB / 0.7065 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.1913, allocations: 19.98 kB / 0.7065 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004712/0.1918, allocations: 435 kB / 0.7069 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1918, allocations: 0 / 0.7069 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005642/0.1924, allocations: 215.3 kB / 0.7072 GB, free: 7.91 MB / 0.4981 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.001791/0.1942, allocations: 1.307 MB / 0.7084 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001542/0.1957, allocations: 0.821 MB / 0.7092 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1958, allocations: 7.938 kB / 0.7092 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004777/0.1962, allocations: 219.9 kB / 0.7094 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009319/0.1972, allocations: 188.3 kB / 0.7096 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008145/0.2053, allocations: 5.925 MB / 0.7154 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.2058, allocations: 0.9182 MB / 0.7163 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003878/0.2062, allocations: 93.12 kB / 0.7164 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/0.2065, allocations: 263.3 kB / 0.7167 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of SimCode: time 7.11e-07/0.2065, allocations: 0 / 0.7167 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.231, allocations: 13.22 MB / 0.7296 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/0.2313, allocations: 203.7 kB / 0.7298 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.891/2.123, allocations: 0 / 0.7298 GB, free: 0.7109 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)