Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_8_Buildings_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.0008786/0.0008787, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0008673/0.0008673, allocations: 173.6 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.164/1.164, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.478/1.478, allocations: 292.7 MB / 0.5502 GB, free: 14.45 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000466/0.000466, allocations: 22.77 kB / 0.6744 GB, free: 25.77 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1621, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003283/0.1655, allocations: 3.338 MB / 0.7912 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002162/0.1676, allocations: 1.329 MB / 0.7925 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004412/0.1681, allocations: 27.88 kB / 0.7926 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.1684, allocations: 95.09 kB / 0.7927 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005424/0.1689, allocations: 139 kB / 0.7928 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009884/0.1699, allocations: 0.5327 MB / 0.7933 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008603/0.1708, allocations: 0.8901 MB / 0.7942 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004578/0.1713, allocations: 337.8 kB / 0.7945 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.1716, allocations: 282.2 kB / 0.7948 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002984/0.1719, allocations: 278.1 kB / 0.795 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.083e-05/0.172, allocations: 23.94 kB / 0.7951 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.1721, allocations: 20 kB / 0.7951 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.832e-05/0.1722, allocations: 119.3 kB / 0.7952 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.1724, allocations: 331.5 kB / 0.7955 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005443/0.173, allocations: 0.782 MB / 0.7963 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.173, allocations: 4 kB / 0.7963 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.245e-06/0.173, allocations: 0 / 0.7963 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.421e-05/0.173, allocations: 3.938 kB / 0.7963 GB, free: 2.918 MB / 0.6075 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.001622/0.1746, allocations: 1.047 MB / 0.7973 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.1747, allocations: 16.02 kB / 0.7973 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.1748, allocations: 102.6 kB / 0.7974 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.1749, allocations: 91.81 kB / 0.7975 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007834/0.1757, allocations: 0.5948 MB / 0.7981 GB, free: 0.9609 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.311e-05/0.1758, allocations: 105 kB / 0.7982 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.372e-05/0.1759, allocations: 52.38 kB / 0.7982 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009714/0.1769, allocations: 0.6157 MB / 0.7988 GB, free: 140 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1769, allocations: 3.938 kB / 0.7988 GB, free: 136 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.865e-05/0.1769, allocations: 20 kB / 0.7989 GB, free: 116 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.177, allocations: 16 kB / 0.7989 GB, free: 100 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008962/0.1779, allocations: 443.7 kB / 0.7993 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.1802, allocations: 2.141 MB / 0.8014 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.1813, allocations: 0.5186 MB / 0.8019 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/0.1818, allocations: 231.7 kB / 0.8021 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.1818, allocations: 7.984 kB / 0.8021 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006004/0.1824, allocations: 298 kB / 0.8024 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.1824, allocations: 0 / 0.8024 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of matching and sorting (n=45): time 0.001321/0.1838, allocations: 0.6435 MB / 0.803 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.1838, allocations: 84.86 kB / 0.8031 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005831/0.1844, allocations: 0.6139 MB / 0.8037 GB, free: 11 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.1845, allocations: 37.7 kB / 0.8038 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.1847, allocations: 364.8 kB / 0.8041 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.1848, allocations: 153.8 kB / 0.8042 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.296e-05/0.1849, allocations: 57.69 kB / 0.8043 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 7.951e-05/0.185, allocations: 322 kB / 0.8046 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.1854, allocations: 181 kB / 0.8048 GB, free: 9.891 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004594/0.1858, allocations: 296.1 kB / 0.8051 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.1867, allocations: 0.4901 MB / 0.8055 GB, free: 9.031 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1867, allocations: 0 / 0.8055 GB, free: 9.031 MB / 0.6231 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001092/0.1878, allocations: 0.6219 MB / 0.8062 GB, free: 8.398 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 8.965e-05/0.1879, allocations: 189 kB / 0.8063 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1879, allocations: 4 kB / 0.8063 GB, free: 8.164 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.1879, allocations: 4 kB / 0.8063 GB, free: 8.16 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.1884, allocations: 115.8 kB / 0.8064 GB, free: 8.047 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.1884, allocations: 11.98 kB / 0.8065 GB, free: 8.035 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.1888, allocations: 67.42 kB / 0.8065 GB, free: 7.969 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.1888, allocations: 23.92 kB / 0.8065 GB, free: 7.945 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.791e-06/0.1888, allocations: 4 kB / 0.8066 GB, free: 7.941 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009087/0.1897, allocations: 0.4998 MB / 0.807 GB, free: 7.438 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1897, allocations: 4 kB / 0.807 GB, free: 7.434 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.4e-06/0.1897, allocations: 4.312 kB / 0.807 GB, free: 7.43 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.1901, allocations: 111.8 kB / 0.8072 GB, free: 7.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.1902, allocations: 8 kB / 0.8072 GB, free: 7.312 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003189/0.1905, allocations: 59.5 kB / 0.8072 GB, free: 7.254 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.1905, allocations: 16 kB / 0.8072 GB, free: 7.238 MB / 0.6231 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.0002203/0.1907, allocations: 273 kB / 0.8075 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.525e-05/0.1908, allocations: 83 kB / 0.8076 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001382/0.191, allocations: 79.33 kB / 0.8076 GB, free: 6.797 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.191, allocations: 8 kB / 0.8077 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.191, allocations: 0 / 0.8077 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.191, allocations: 0 / 0.8077 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005371/0.1916, allocations: 0.6219 MB / 0.8083 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1916, allocations: 0 / 0.8083 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004143/0.192, allocations: 91.89 kB / 0.8084 GB, free: 6.027 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.192, allocations: 0 / 0.8084 GB, free: 6.027 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.192, allocations: 15.98 kB / 0.8084 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.192, allocations: 0 / 0.8084 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.192, allocations: 0 / 0.8084 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.1934, allocations: 0.7628 MB / 0.8091 GB, free: 5.227 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.1936, allocations: 192.1 kB / 0.8093 GB, free: 5.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.1937, allocations: 16.06 kB / 0.8093 GB, free: 5.004 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003872/0.1941, allocations: 47.95 kB / 0.8094 GB, free: 4.957 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.1941, allocations: 31.95 kB / 0.8094 GB, free: 4.926 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.1942, allocations: 12 kB / 0.8094 GB, free: 4.914 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004121/0.1946, allocations: 431 kB / 0.8098 GB, free: 4.5 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1946, allocations: 0 / 0.8098 GB, free: 4.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000505/0.1951, allocations: 219.3 kB / 0.81 GB, free: 4.285 MB / 0.6231 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.001577/0.1967, allocations: 1.315 MB / 0.8113 GB, free: 2.938 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001378/0.1981, allocations: 0.816 MB / 0.8121 GB, free: 2.098 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1981, allocations: 0 / 0.8121 GB, free: 2.098 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004258/0.1985, allocations: 224.5 kB / 0.8123 GB, free: 1.879 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007896/0.1993, allocations: 185.8 kB / 0.8125 GB, free: 1.695 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007266/0.2066, allocations: 5.944 MB / 0.8183 GB, free: 11.6 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.207, allocations: 0.9183 MB / 0.8192 GB, free: 10.65 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003348/0.2073, allocations: 97.31 kB / 0.8193 GB, free: 10.56 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.2076, allocations: 259.3 kB / 0.8195 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of SimCode: time 3.01e-07/0.2076, allocations: 0 / 0.8195 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.134/1.342, allocations: 13.25 MB / 0.8325 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/1.342, allocations: 195 kB / 0.8327 GB, free: 12.99 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.564/3.906, allocations: 3.938 kB / 0.8327 GB, free: 12.99 MB / 0.6544 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)