Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.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.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001346, allocations: 105.7 kB / 16.36 MB, free: 5.891 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.001313/0.001314, allocations: 192 kB / 17.29 MB, free: 5.531 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.485/1.485, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.804/1.804, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.001467/0.001467, allocations: 67.91 kB / 0.6729 GB, free: 5.84 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2528, allocations: 114.6 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002459/0.2553, allocations: 1.336 MB / 0.7861 GB, free: 1.816 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007408/0.2561, allocations: 351.8 kB / 0.7864 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.819e-05/0.2561, allocations: 4 kB / 0.7864 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 8.367e-05/0.2562, allocations: 7.938 kB / 0.7864 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 2.383e-05/0.2563, allocations: 3.938 kB / 0.7864 GB, free: 1.453 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:499:7-563:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. Notification: Performance of NFTyping.typeClassSections: time 0.0004753/0.2567, allocations: 91.69 kB / 0.7865 GB, free: 1.363 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000118/0.2569, allocations: 59.91 kB / 0.7866 GB, free: 1.305 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.858e-05/0.2569, allocations: 4 kB / 0.7866 GB, free: 1.301 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 3.354e-05/0.257, allocations: 19.92 kB / 0.7866 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.104e-05/0.257, allocations: 19.92 kB / 0.7866 GB, free: 1.262 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.257, allocations: 4 kB / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.2572, allocations: 83.84 kB / 0.7867 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.374e-05/0.2573, allocations: 27.92 kB / 0.7867 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.523e-05/0.2573, allocations: 51.66 kB / 0.7868 GB, free: 1.098 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.2575, allocations: 155.6 kB / 0.7869 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2576, allocations: 4 kB / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2576, allocations: 0 / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.2576, allocations: 0 / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005356/0.2581, allocations: 0.5123 MB / 0.7874 GB, free: 380 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2582, allocations: 8.031 kB / 0.7874 GB, free: 372 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.2583, allocations: 16.75 kB / 0.7875 GB, free: 356 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.2584, allocations: 176.2 kB / 0.7876 GB, free: 140 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.2584, allocations: 8.312 kB / 0.7876 GB, free: 132 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.2585, allocations: 384 / 0.7876 GB, free: 132 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4362/0.6947, allocations: 242.3 kB / 0.7879 GB, free: 49.48 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.6947, allocations: 3.75 kB / 0.7879 GB, free: 49.48 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.6948, allocations: 2.625 kB / 0.7879 GB, free: 49.48 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.6948, allocations: 0 / 0.7879 GB, free: 49.48 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.6949, allocations: 144.2 kB / 0.788 GB, free: 49.48 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001659/0.6951, allocations: 195.2 kB / 0.7882 GB, free: 49.29 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003568/0.6955, allocations: 0.5393 MB / 0.7887 GB, free: 49.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.6958, allocations: 0.522 MB / 0.7892 GB, free: 49.26 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.6958, allocations: 0.8438 kB / 0.7892 GB, free: 49.26 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003822/0.6962, allocations: 400.3 kB / 0.7896 GB, free: 49.14 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=39): time 1.573e-06/0.6962, allocations: 0 / 0.7896 GB, free: 49.14 MB / 0.6544 GB Notification: Performance of matching and sorting (n=39): time 0.0006526/0.6969, allocations: 0.6832 MB / 0.7903 GB, free: 49.07 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.6969, allocations: 109.4 kB / 0.7904 GB, free: 48.98 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.288e-05/0.697, allocations: 101.6 kB / 0.7905 GB, free: 48.88 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.697, allocations: 25.7 kB / 0.7905 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.701e-05/0.697, allocations: 84.59 kB / 0.7906 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.088e-05/0.6971, allocations: 77.61 kB / 0.7907 GB, free: 48.73 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.6971, allocations: 32.17 kB / 0.7907 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.578e-05/0.6972, allocations: 330.7 kB / 0.791 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.544e-05/0.6973, allocations: 84.5 kB / 0.7911 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.285e-05/0.6973, allocations: 83.09 kB / 0.7912 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.6976, allocations: 351.4 kB / 0.7915 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.6976, allocations: 3.938 kB / 0.7915 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002755/0.6979, allocations: 336.6 kB / 0.7918 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.948e-05/0.698, allocations: 77.91 kB / 0.7919 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.698, allocations: 5.25 kB / 0.7919 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.698, allocations: 0 / 0.7919 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.258e-05/0.6981, allocations: 9.328 kB / 0.7919 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.6981, allocations: 0 / 0.7919 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.6982, allocations: 21.53 kB / 0.7919 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.6982, allocations: 10.84 kB / 0.7919 GB, free: 48.21 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 (occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,occ.hold_time,occ.tNext,$PRE.occ.tNext,occ.mu,occ.occ,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.0001949/0.6984, allocations: 269.5 kB / 0.7922 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.356e-05/0.6984, allocations: 23.11 kB / 0.7922 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.307e-05/0.6985, allocations: 9.859 kB / 0.7922 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.6985, allocations: 0 / 0.7922 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.6985, allocations: 0 / 0.7922 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.6985, allocations: 0 / 0.7922 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.6986, allocations: 260.8 kB / 0.7925 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.6986, allocations: 0 / 0.7925 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.6986, allocations: 0 / 0.7925 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.6986, allocations: 0 / 0.7925 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.6987, allocations: 13.69 kB / 0.7925 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.6987, allocations: 0 / 0.7925 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.6987, allocations: 6.25 kB / 0.7925 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009462/0.6996, allocations: 1.283 MB / 0.7938 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.772e-05/0.6997, allocations: 88.39 kB / 0.7938 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.474e-05/0.6998, allocations: 80.53 kB / 0.7939 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.949e-05/0.6998, allocations: 8.688 kB / 0.7939 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.6999, allocations: 14.38 kB / 0.7939 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.6999, allocations: 12.95 kB / 0.794 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.424e-05/0.6999, allocations: 85.66 kB / 0.794 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7, allocations: 0 / 0.794 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002919/0.7002, allocations: 70.64 kB / 0.7941 GB, free: 47.18 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition1,occ.occ,occ.mu,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 39 (occ.tNext,occ.hold_time,occ.mu,occ.occ,occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0004166/0.7007, allocations: 247 kB / 0.7943 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001213/0.7019, allocations: 1.965 MB / 0.7963 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7019, allocations: 1.312 kB / 0.7963 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.703, allocations: 2.01 MB / 0.7982 GB, free: 44.84 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.7033, allocations: 25.59 kB / 0.7982 GB, free: 44.84 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005299/0.7038, allocations: 353.4 kB / 0.7986 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.704, allocations: 0.7198 MB / 0.7993 GB, free: 43.94 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.061e-05/0.704, allocations: 9.969 kB / 0.7993 GB, free: 43.94 MB / 0.6544 GB Notification: Performance of SimCode: time 3.21e-07/0.704, allocations: 0 / 0.7993 GB, free: 43.94 MB / 0.6544 GB Notification: Performance of Templates: time 0.00482/0.7088, allocations: 2.434 MB / 0.8017 GB, free: 43.76 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1)