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: translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009179/0.000918, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009571/0.0009573, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.796/1.796, allocations: 205.4 MB / 222.1 MB, free: 5.309 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.916/1.916, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005748/0.000575, allocations: 15.28 kB / 0.6737 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3283, allocations: 116.3 MB / 0.7873 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom): time 0.002332/0.3307, allocations: 1.453 MB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002388/0.3331, allocations: 1.531 MB / 0.7902 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.726e-05/0.3333, allocations: 3.938 kB / 0.7902 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.3335, allocations: 19.86 kB / 0.7902 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.3336, allocations: 23.84 kB / 0.7902 GB, free: 8.859 MB / 0.6075 GB [/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.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006383/0.3343, allocations: 191.2 kB / 0.7904 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.3345, allocations: 183.5 kB / 0.7906 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.3347, allocations: 50.17 kB / 0.7907 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.3348, allocations: 71.75 kB / 0.7907 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.335, allocations: 59.69 kB / 0.7908 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.335, allocations: 8 kB / 0.7908 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003482/0.3354, allocations: 159.7 kB / 0.7909 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.3355, allocations: 67.81 kB / 0.791 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.745e-05/0.3356, allocations: 49.64 kB / 0.791 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003304/0.3359, allocations: 271.4 kB / 0.7913 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3359, allocations: 0 / 0.7913 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.913e-06/0.3359, allocations: 0 / 0.7913 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.336, allocations: 0 / 0.7913 GB, free: 7.766 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.0009171/0.3369, allocations: 0.5298 MB / 0.7918 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3369, allocations: 8.031 kB / 0.7918 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.811e-05/0.337, allocations: 31.67 kB / 0.7919 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.3373, allocations: 231.4 kB / 0.7921 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.3373, allocations: 15.98 kB / 0.7921 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.116e-05/0.3374, allocations: 23.94 kB / 0.7921 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.3377, allocations: 189.4 kB / 0.7923 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3377, allocations: 0 / 0.7923 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.3378, allocations: 4 kB / 0.7923 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3378, allocations: 7.953 kB / 0.7923 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/0.338, allocations: 124.5 kB / 0.7924 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.3393, allocations: 0.5743 MB / 0.793 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006858/0.34, allocations: 266.7 kB / 0.7932 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.3401, allocations: 89 kB / 0.7933 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.3402, allocations: 8 kB / 0.7933 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.3405, allocations: 152.8 kB / 0.7935 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 2.745e-06/0.3405, allocations: 0 / 0.7935 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0006629/0.3412, allocations: 365.7 kB / 0.7938 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.3413, allocations: 67.33 kB / 0.7939 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.3414, allocations: 179.1 kB / 0.7941 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.3415, allocations: 45.69 kB / 0.7941 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.521e-05/0.3416, allocations: 120.5 kB / 0.7942 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.423e-05/0.3416, allocations: 67.16 kB / 0.7943 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.442e-05/0.3417, allocations: 12 kB / 0.7943 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3418, allocations: 334.8 kB / 0.7946 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.342, allocations: 103.7 kB / 0.7947 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002657/0.3423, allocations: 232.6 kB / 0.7949 GB, free: 3.77 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.3425, allocations: 135.9 kB / 0.7951 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3425, allocations: 4 kB / 0.7951 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005509/0.3431, allocations: 365.2 kB / 0.7954 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.3431, allocations: 11.98 kB / 0.7954 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3431, allocations: 4.078 kB / 0.7954 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.3432, allocations: 11.95 kB / 0.7955 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.3433, allocations: 51.86 kB / 0.7955 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2e-05/0.3434, allocations: 15.97 kB / 0.7955 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/0.3436, allocations: 51.86 kB / 0.7956 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.3436, allocations: 12 kB / 0.7956 GB, free: 3.113 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 ($PRE.pyt.firstTrigger,pyt.firstTrigger,$PRE.pyt.yR[2],pyt.yR[2],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[4],pyt.uRIntPre[4],$PRE.pyt.uRWri[1],pyt.uRWri[1],$PRE.pyt.uRWri[4],pyt.uRWri[4],$whenCondition1,pyt.sampleTrigger,$PRE.pyt.yR[1],pyt.yR[1],$PRE.pyt.uRWri[3],pyt.uRWri[3],$PRE.onOffCon.y,onOffCon.y,$PRE.pyt.uRWri[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001709/0.3438, allocations: 176.2 kB / 0.7957 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.3438, allocations: 23.72 kB / 0.7958 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.3439, allocations: 21.86 kB / 0.7958 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3439, allocations: 7.953 kB / 0.7958 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.3439, allocations: 4 kB / 0.7958 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3439, allocations: 0 / 0.7958 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000908/0.3448, allocations: 0.6311 MB / 0.7964 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3448, allocations: 3.984 kB / 0.7964 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.3449, allocations: 19.95 kB / 0.7964 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.345, allocations: 3.984 kB / 0.7964 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.345, allocations: 4 kB / 0.7964 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.345, allocations: 0 / 0.7964 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.345, allocations: 4 kB / 0.7965 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007099/0.3457, allocations: 493.8 kB / 0.7969 GB, free: 1.656 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.083e-05/0.3458, allocations: 96.86 kB / 0.797 GB, free: 1.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.3459, allocations: 15.98 kB / 0.797 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.346, allocations: 27.97 kB / 0.7971 GB, free: 1.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.077e-05/0.3461, allocations: 23.91 kB / 0.7971 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.3461, allocations: 12 kB / 0.7971 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001149/0.3463, allocations: 128.3 kB / 0.7972 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3463, allocations: 0 / 0.7972 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000501/0.3468, allocations: 107.8 kB / 0.7973 GB, free: 1.234 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008228/0.3476, allocations: 326 kB / 0.7976 GB, free: 0.9766 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005097/0.3481, allocations: 251.6 kB / 0.7979 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3481, allocations: 0 / 0.7979 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.3485, allocations: 104.8 kB / 0.798 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005595/0.3491, allocations: 23.98 kB / 0.798 GB, free: 0.6055 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.3504, allocations: 0.5047 MB / 0.7985 GB, free: 80 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.351, allocations: 0.7442 MB / 0.7992 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001893/0.3512, allocations: 53.84 kB / 0.7993 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.3512, allocations: 19.44 kB / 0.7993 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of SimCode: time 6.01e-07/0.3512, allocations: 0 / 0.7993 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of Templates: time 0.00674/0.358, allocations: 2.83 MB / 0.802 GB, free: 12.41 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.makefile Environment - environmentSimulation: (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 & ./Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe 2>&1) Environment - environmentSimulation: