Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.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.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_SimpleRoom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_SimpleRoom",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.001519/0.001519, allocations: 109.4 kB / 15.69 MB, free: 128 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.001663/0.001664, allocations: 186.8 kB / 16.62 MB, free: 6.613 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.255/1.255, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.633/1.633, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001492/0.001492, allocations: 69.95 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2022, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom): time 0.003445/0.2057, allocations: 1.785 MB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002263/0.208, allocations: 1.624 MB / 0.787 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.2081, allocations: 7.938 kB / 0.787 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.2084, allocations: 27.73 kB / 0.787 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.2085, allocations: 19.78 kB / 0.787 GB, free: 9.766 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function 'Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0007307/0.2093, allocations: 227.3 kB / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.2096, allocations: 219.5 kB / 0.7874 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.2097, allocations: 62.09 kB / 0.7875 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.2099, allocations: 87.67 kB / 0.7876 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.2101, allocations: 75.75 kB / 0.7877 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.2101, allocations: 12 kB / 0.7877 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003923/0.2105, allocations: 211.7 kB / 0.7879 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.2106, allocations: 71.8 kB / 0.7879 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.627e-05/0.2107, allocations: 83.47 kB / 0.788 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004515/0.2112, allocations: 359 kB / 0.7884 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2112, allocations: 3.984 kB / 0.7884 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.193e-06/0.2112, allocations: 0 / 0.7884 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.2112, allocations: 0 / 0.7884 GB, free: 8.379 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009222/0.2121, allocations: 0.5634 MB / 0.7889 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.2122, allocations: 8.031 kB / 0.7889 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.309e-05/0.2122, allocations: 46.73 kB / 0.789 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.299e-05/0.2123, allocations: 28.66 kB / 0.789 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.2125, allocations: 236.7 kB / 0.7892 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.2126, allocations: 16.12 kB / 0.7892 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.2126, allocations: 24 kB / 0.7893 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.2129, allocations: 186 kB / 0.7894 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.2129, allocations: 0 / 0.7894 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.213, allocations: 4 kB / 0.7894 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.213, allocations: 4 kB / 0.7894 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.2132, allocations: 123.8 kB / 0.7896 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.2144, allocations: 0.5509 MB / 0.7901 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007511/0.2152, allocations: 266.4 kB / 0.7904 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.2153, allocations: 84.81 kB / 0.7904 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.2154, allocations: 8 kB / 0.7904 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002682/0.2156, allocations: 143.3 kB / 0.7906 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.2156, allocations: 0 / 0.7906 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.000627/0.2163, allocations: 352.4 kB / 0.7909 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.2163, allocations: 63.34 kB / 0.791 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.2165, allocations: 183.1 kB / 0.7911 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.2165, allocations: 45.69 kB / 0.7912 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.517e-05/0.2166, allocations: 120.5 kB / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.668e-05/0.2167, allocations: 75.08 kB / 0.7914 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.182e-05/0.2167, allocations: 73.47 kB / 0.7914 GB, free: 5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.2168, allocations: 334.8 kB / 0.7918 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.217, allocations: 95.92 kB / 0.7919 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.2173, allocations: 224.9 kB / 0.7921 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/0.2177, allocations: 335.9 kB / 0.7924 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2177, allocations: 0 / 0.7924 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005666/0.2183, allocations: 361.2 kB / 0.7927 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.2183, allocations: 4 kB / 0.7927 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2183, allocations: 4 kB / 0.7927 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2183, allocations: 11.98 kB / 0.7928 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.2185, allocations: 55.86 kB / 0.7928 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.2185, allocations: 15.92 kB / 0.7928 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.2187, allocations: 35.89 kB / 0.7929 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.2188, allocations: 20 kB / 0.7929 GB, free: 3.402 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 26 (pyt.firstTrigger,$PRE.pyt.firstTrigger,pyt.yR[2],$PRE.pyt.yR[2],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[4],$PRE.pyt.uRIntPre[4],pyt.uRWri[1],$PRE.pyt.uRWri[1],pyt.uRWri[4],$PRE.pyt.uRWri[4],pyt.sampleTrigger,$whenCondition1,onOffCon.y,$PRE.onOffCon.y,pyt.uRWri[3],$PRE.pyt.uRWri[3],pyt.yR[1],$PRE.pyt.yR[1],pyt.uRWri[2],$PRE.pyt.uRWri[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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.0001399/0.2189, allocations: 168.5 kB / 0.793 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.2189, allocations: 15.81 kB / 0.7931 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.219, allocations: 25.86 kB / 0.7931 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.219, allocations: 7.875 kB / 0.7931 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.219, allocations: 4 kB / 0.7931 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.219, allocations: 4 kB / 0.7931 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008412/0.2199, allocations: 0.6196 MB / 0.7937 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.2199, allocations: 4 kB / 0.7937 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.22, allocations: 23.92 kB / 0.7937 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.22, allocations: 3.938 kB / 0.7937 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.22, allocations: 11.98 kB / 0.7937 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.22, allocations: 3.938 kB / 0.7937 GB, free: 2.449 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2201, allocations: 4 kB / 0.7938 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006392/0.2207, allocations: 477.9 kB / 0.7942 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.122e-05/0.2207, allocations: 96.86 kB / 0.7943 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.851e-05/0.2208, allocations: 11.97 kB / 0.7943 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.221, allocations: 23.98 kB / 0.7943 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.221, allocations: 19.97 kB / 0.7944 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.2211, allocations: 11.98 kB / 0.7944 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.036e-05/0.2212, allocations: 140.2 kB / 0.7945 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2212, allocations: 0 / 0.7945 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004285/0.2216, allocations: 99.83 kB / 0.7946 GB, free: 1.555 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pyt.uRInt[1],pyt.uRInt[2],pyt.uRInt[3],pyt.uRInt[4]) * Number of discrete variables: 14 (pyt.sampleTrigger,$whenCondition1,pyt.firstTrigger,pyt.yR[1],pyt.yR[2],pyt.uRIntPre[1],pyt.uRIntPre[2],pyt.uRIntPre[3],pyt.uRIntPre[4],pyt.uRWri[1],pyt.uRWri[2],pyt.uRWri[3],pyt.uRWri[4],onOffCon.y) * Number of discrete states: 5 (pyt.uR[1],pyt.uR[2],pyt.uR[3],pyt.uR[4],onOffCon.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001393/0.223, allocations: 1.229 MB / 0.7958 GB, free: 376 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000435/0.2234, allocations: 235.7 kB / 0.796 GB, free: 140 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.2235, allocations: 0 / 0.796 GB, free: 140 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.2236, allocations: 103.8 kB / 0.7961 GB, free: 40 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.224, allocations: 32.02 kB / 0.7961 GB, free: 8 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.227, allocations: 2.755 MB / 0.7988 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.2273, allocations: 0.7402 MB / 0.7996 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001302/0.2274, allocations: 50.19 kB / 0.7996 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.403e-05/0.2275, allocations: 63.41 kB / 0.7997 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of SimCode: time 2.4e-07/0.2275, allocations: 0 / 0.7997 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.2526, allocations: 5.389 MB / 0.8049 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.677, allocations: 16.98 kB / 0.8049 GB, free: 6.863 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_SimpleRoom.fmu > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe 2>&1)