Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001137/0.001137, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001521/0.001521, allocations: 198.5 kB / 16.14 MB, free: 6.688 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.519/1.519, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.927/2.927, allocations: 472.6 MB / 0.7447 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 61.31 kB / 0.9114 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3348, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003999/0.3389, allocations: 1.704 MB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001142/0.3401, allocations: 0.5533 MB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.3402, allocations: 4 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002502/0.3405, allocations: 19.86 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.3408, allocations: 55.75 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.341, allocations: 59.92 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.3412, allocations: 123.6 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.3414, allocations: 45.41 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.3415, allocations: 55.77 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.3417, allocations: 63.69 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.3417, allocations: 4 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.438e-05/0.3418, allocations: 23.94 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.3419, allocations: 43.88 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.425e-05/0.3421, allocations: 63.55 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001986/0.3423, allocations: 135.7 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3423, allocations: 0 / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3423, allocations: 0 / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.245e-06/0.3423, allocations: 0 / 1.07 GB, free: 7.953 MB / 0.8262 GB 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.0008549/0.3432, allocations: 466.6 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3432, allocations: 8.031 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.3433, allocations: 16.75 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.3436, allocations: 232.8 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3436, allocations: 8.375 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.3436, allocations: 4.375 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.3439, allocations: 117.9 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3439, allocations: 0 / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.3439, allocations: 7.969 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.344, allocations: 4 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.3442, allocations: 67.94 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006202/0.3448, allocations: 384.4 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.3451, allocations: 34.56 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.3452, allocations: 32.89 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.3452, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.3456, allocations: 101 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3456, allocations: 0 / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.000451/0.346, allocations: 125.4 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.3461, allocations: 77.11 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.3464, allocations: 253 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.644e-05/0.3465, allocations: 25.7 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3466, allocations: 132 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.3467, allocations: 7.906 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.3467, allocations: 13.72 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002113/0.3469, allocations: 338.8 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.3471, allocations: 19.97 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.3472, allocations: 55.34 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.3474, allocations: 62.56 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3474, allocations: 0 / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003018/0.3477, allocations: 101.5 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.3478, allocations: 15.94 kB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3478, allocations: 0 / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.3478, allocations: 3.938 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.3479, allocations: 15.92 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.348, allocations: 3.938 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.803e-05/0.3481, allocations: 15.89 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3481, allocations: 4 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB 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 0.0001476/0.3482, allocations: 129.8 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.242e-05/0.3483, allocations: 19.81 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.302e-05/0.3483, allocations: 21.23 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.3483, allocations: 3.938 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3483, allocations: 0 / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3484, allocations: 0 / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.3486, allocations: 217.6 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3486, allocations: 0 / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.093e-05/0.3487, allocations: 15.98 kB / 1.073 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3487, allocations: 288 / 1.073 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.3487, allocations: 3.984 kB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3488, allocations: 7.938 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3488, allocations: 0 / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003609/0.3491, allocations: 124.8 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.95e-05/0.3492, allocations: 92.86 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.3493, allocations: 0 / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.3494, allocations: 23.92 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.3494, allocations: 3.984 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.3495, allocations: 4 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002441/0.3497, allocations: 188.5 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.31e-07/0.3497, allocations: 0 / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002748/0.35, allocations: 24 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB 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.0005491/0.3506, allocations: 116.7 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000359/0.351, allocations: 55.89 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.351, allocations: 0 / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.3511, allocations: 32.09 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.3515, allocations: 41.06 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008564/0.3524, allocations: 321.8 kB / 1.074 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008809/0.3533, allocations: 0.716 MB / 1.075 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.65e-05/0.3534, allocations: 20.53 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.847e-05/0.3535, allocations: 15.42 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of SimCode: time 2.8e-07/0.3535, allocations: 4 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of Templates: time 0.00679/0.3603, allocations: 1.619 MB / 1.077 GB, free: 1.074 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)