Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 107.3 kB / 17.04 MB, free: 6.082 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.001008/0.001008, allocations: 195 kB / 17.98 MB, free: 5.16 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.236/1.236, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.677/0.677, allocations: 115.1 MB / 406.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 68.11 kB / 494.8 MB, free: 15.9 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3319, allocations: 76.14 MB / 0.5576 GB, free: 36.69 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002675/0.3347, allocations: 1.626 MB / 0.5592 GB, free: 35.59 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007991/0.3355, allocations: 0.5402 MB / 0.5597 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.49e-05/0.3356, allocations: 10.06 kB / 0.5597 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.3358, allocations: 24.44 kB / 0.5597 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.336, allocations: 64.39 kB / 0.5598 GB, free: 35.16 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.3362, allocations: 65.16 kB / 0.5598 GB, free: 35.12 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.3364, allocations: 135.2 kB / 0.56 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.3366, allocations: 52.25 kB / 0.56 GB, free: 35.05 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3367, allocations: 54.45 kB / 0.5601 GB, free: 35.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.3369, allocations: 61.7 kB / 0.5601 GB, free: 34.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.875e-05/0.3369, allocations: 8.688 kB / 0.5601 GB, free: 34.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.099e-05/0.337, allocations: 27.58 kB / 0.5602 GB, free: 34.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.499e-05/0.3371, allocations: 48.72 kB / 0.5602 GB, free: 34.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.361e-05/0.3371, allocations: 57.48 kB / 0.5603 GB, free: 34.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002117/0.3374, allocations: 144.7 kB / 0.5604 GB, free: 34.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3374, allocations: 1.406 kB / 0.5604 GB, free: 34.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3374, allocations: 3.938 kB / 0.5604 GB, free: 34.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.3374, allocations: 1.266 kB / 0.5604 GB, free: 34.86 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005953/0.338, allocations: 459.5 kB / 0.5608 GB, free: 34.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.338, allocations: 10.25 kB / 0.5609 GB, free: 34.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.178e-05/0.3381, allocations: 18.44 kB / 0.5609 GB, free: 34.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.3384, allocations: 248 kB / 0.5611 GB, free: 34.19 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-06/0.3384, allocations: 2.297 kB / 0.5611 GB, free: 34.19 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.3384, allocations: 5 kB / 0.5611 GB, free: 34.19 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.3387, allocations: 113.4 kB / 0.5612 GB, free: 34.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.3387, allocations: 0.7031 kB / 0.5612 GB, free: 34.13 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.3387, allocations: 1.125 kB / 0.5612 GB, free: 34.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.3387, allocations: 2.906 kB / 0.5612 GB, free: 34.13 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.3389, allocations: 72.55 kB / 0.5613 GB, free: 34.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005522/0.3395, allocations: 381.3 kB / 0.5617 GB, free: 33.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.3396, allocations: 45.12 kB / 0.5617 GB, free: 33.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.795e-05/0.3398, allocations: 34.31 kB / 0.5617 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.3398, allocations: 0 / 0.5617 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.34, allocations: 95 kB / 0.5618 GB, free: 33.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.34, allocations: 1.094 kB / 0.5618 GB, free: 33.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003788/0.3404, allocations: 125.7 kB / 0.562 GB, free: 33.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.3404, allocations: 81.11 kB / 0.562 GB, free: 33.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.3407, allocations: 253 kB / 0.5623 GB, free: 33.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.3407, allocations: 25.7 kB / 0.5623 GB, free: 33.35 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.3407, allocations: 129 kB / 0.5624 GB, free: 33.24 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.3408, allocations: 10 kB / 0.5624 GB, free: 33.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.3408, allocations: 15.25 kB / 0.5624 GB, free: 33.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.508e-05/0.3409, allocations: 330.2 kB / 0.5628 GB, free: 32.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.341, allocations: 29.47 kB / 0.5628 GB, free: 32.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.652e-05/0.3411, allocations: 47.28 kB / 0.5628 GB, free: 32.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.3413, allocations: 66.94 kB / 0.5629 GB, free: 32.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3413, allocations: 2.062 kB / 0.5629 GB, free: 32.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002351/0.3415, allocations: 102.1 kB / 0.563 GB, free: 32.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3415, allocations: 9.031 kB / 0.563 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.3415, allocations: 1.125 kB / 0.563 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.3416, allocations: 6 kB / 0.563 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.3417, allocations: 13.67 kB / 0.563 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.3417, allocations: 0.9062 kB / 0.563 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.285e-05/0.3418, allocations: 19.39 kB / 0.563 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.3418, allocations: 2.219 kB / 0.563 GB, free: 32.76 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.775e-05/0.3419, allocations: 127.4 kB / 0.5632 GB, free: 32.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.3419, allocations: 19.28 kB / 0.5632 GB, free: 32.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.217e-05/0.3419, allocations: 23.59 kB / 0.5632 GB, free: 32.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3419, allocations: 5 kB / 0.5632 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.342, allocations: 4.734 kB / 0.5632 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.342, allocations: 1.062 kB / 0.5632 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.3421, allocations: 213.4 kB / 0.5634 GB, free: 32.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3421, allocations: 4.641 kB / 0.5634 GB, free: 32.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.589e-05/0.3422, allocations: 12.41 kB / 0.5634 GB, free: 32.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3422, allocations: 1.406 kB / 0.5634 GB, free: 32.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-06/0.3422, allocations: 0.5156 kB / 0.5634 GB, free: 32.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3422, allocations: 9.172 kB / 0.5634 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3422, allocations: 1.75 kB / 0.5634 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.3425, allocations: 118.6 kB / 0.5636 GB, free: 32.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.3425, allocations: 90.36 kB / 0.5636 GB, free: 32.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.3426, allocations: 1.781 kB / 0.5637 GB, free: 32.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.048e-05/0.3427, allocations: 19.03 kB / 0.5637 GB, free: 32.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3427, allocations: 4.125 kB / 0.5637 GB, free: 32.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.3427, allocations: 5.281 kB / 0.5637 GB, free: 32.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.3429, allocations: 192.3 kB / 0.5639 GB, free: 32.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3429, allocations: 3.938 kB / 0.5639 GB, free: 32.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002135/0.3431, allocations: 19.31 kB / 0.5639 GB, free: 32.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.000205/0.3433, allocations: 123.7 kB / 0.564 GB, free: 31.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.3436, allocations: 56.47 kB / 0.5641 GB, free: 31.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3436, allocations: 1.125 kB / 0.5641 GB, free: 31.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.3437, allocations: 32.09 kB / 0.5641 GB, free: 31.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.344, allocations: 46.31 kB / 0.5641 GB, free: 31.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004493/0.3445, allocations: 281.8 kB / 0.5644 GB, free: 31.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.3447, allocations: 0.7208 MB / 0.5651 GB, free: 31.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.054e-05/0.3447, allocations: 15.95 kB / 0.5651 GB, free: 31.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.407e-05/0.3448, allocations: 17.52 kB / 0.5651 GB, free: 31.07 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3448, allocations: 0 / 0.5651 GB, free: 31.07 MB / 446.1 MB Notification: Performance of Templates: time 0.004779/0.3496, allocations: 1.761 MB / 0.5669 GB, free: 30.93 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)