Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.281/2.281, allocations: 251.1 MB / 266.1 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001504/0.001504, allocations: 181.3 kB / 325.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.379/2.379, allocations: 205.4 MB / 0.5766 GB, free: 20.8 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001278/0.001278, allocations: 96.55 kB / 0.6811 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006238/0.000624, allocations: 13.95 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2299, allocations: 106.3 MB / 0.8989 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002133/0.232, allocations: 1.329 MB / 0.9002 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.2332, allocations: 0.5505 MB / 0.9007 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.85e-05/0.2334, allocations: 7.938 kB / 0.9007 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.2336, allocations: 15.92 kB / 0.9007 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003239/0.2339, allocations: 62.97 kB / 0.9008 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002154/0.2341, allocations: 59.81 kB / 0.9009 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.2343, allocations: 87.81 kB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.2345, allocations: 33.47 kB / 0.901 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.2347, allocations: 43.78 kB / 0.901 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.2348, allocations: 47.78 kB / 0.9011 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.145e-05/0.2348, allocations: 4 kB / 0.9011 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.43e-05/0.2349, allocations: 11.98 kB / 0.9011 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.479e-05/0.235, allocations: 31.89 kB / 0.9011 GB, free: 63.22 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.978e-05/0.2351, allocations: 53.52 kB / 0.9012 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.2353, allocations: 95.81 kB / 0.9012 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2353, allocations: 0 / 0.9012 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2353, allocations: 0 / 0.9012 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.221e-06/0.2353, allocations: 0 / 0.9012 GB, free: 63.07 MB / 0.6042 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.0007078/0.236, allocations: 450.9 kB / 0.9017 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.2361, allocations: 12.02 kB / 0.9017 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.338e-05/0.2361, allocations: 27.7 kB / 0.9017 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.2365, allocations: 231.6 kB / 0.9019 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.2365, allocations: 4 kB / 0.9019 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.2365, allocations: 7.984 kB / 0.9019 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000405/0.2369, allocations: 113.6 kB / 0.9021 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.237, allocations: 0 / 0.9021 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.237, allocations: 0 / 0.9021 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.237, allocations: 7.938 kB / 0.9021 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.2374, allocations: 83.88 kB / 0.9021 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008244/0.2383, allocations: 404.4 kB / 0.9025 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.2385, allocations: 42.56 kB / 0.9026 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.2386, allocations: 0 / 0.9026 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003805/0.239, allocations: 105.1 kB / 0.9027 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 2.324e-06/0.239, allocations: 0 / 0.9027 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0007436/0.2397, allocations: 145.4 kB / 0.9028 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.2398, allocations: 81.11 kB / 0.9029 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.2401, allocations: 249 kB / 0.9031 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.2401, allocations: 33.69 kB / 0.9032 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.445e-05/0.2402, allocations: 128 kB / 0.9033 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.2403, allocations: 7.906 kB / 0.9033 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-06/0.2403, allocations: 0 / 0.9033 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.946e-05/0.2404, allocations: 330.8 kB / 0.9036 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.2405, allocations: 23.98 kB / 0.9036 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.2408, allocations: 63.41 kB / 0.9037 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.241, allocations: 36 kB / 0.9037 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.241, allocations: 3.938 kB / 0.9037 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004578/0.2414, allocations: 125.4 kB / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.2415, allocations: 4 kB / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2415, allocations: 0 / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.2415, allocations: 0 / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.2417, allocations: 15.98 kB / 0.9039 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.2417, allocations: 3.938 kB / 0.9039 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.2419, allocations: 27.89 kB / 0.9039 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.2419, allocations: 8 kB / 0.9039 GB, free: 60.1 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.2421, allocations: 121.8 kB / 0.904 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.511e-05/0.2421, allocations: 19.77 kB / 0.904 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.2422, allocations: 25.23 kB / 0.9041 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2422, allocations: 0 / 0.9041 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2422, allocations: 288 / 0.9041 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2422, allocations: 0 / 0.9041 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.2424, allocations: 213.6 kB / 0.9043 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2424, allocations: 4 kB / 0.9043 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.2425, allocations: 15.97 kB / 0.9043 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.2426, allocations: 7.953 kB / 0.9043 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.2426, allocations: 3.984 kB / 0.9043 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2426, allocations: 0 / 0.9043 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2426, allocations: 3.938 kB / 0.9043 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.2431, allocations: 132.9 kB / 0.9044 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.2431, allocations: 96.91 kB / 0.9045 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.32e-05/0.2432, allocations: 11.89 kB / 0.9045 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.2433, allocations: 15.98 kB / 0.9045 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.648e-05/0.2434, allocations: 4 kB / 0.9045 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.847e-05/0.2435, allocations: 7.984 kB / 0.9045 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002123/0.2437, allocations: 184.5 kB / 0.9047 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.9e-07/0.2437, allocations: 0 / 0.9047 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000328/0.244, allocations: 23.91 kB / 0.9047 GB, free: 59.14 MB / 0.6042 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 (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.0002539/0.2443, allocations: 121.5 kB / 0.9049 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004563/0.2448, allocations: 71.94 kB / 0.9049 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2448, allocations: 0 / 0.9049 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.245, allocations: 35.97 kB / 0.905 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.2454, allocations: 36.34 kB / 0.905 GB, free: 58.87 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006846/0.2461, allocations: 330.3 kB / 0.9053 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.2463, allocations: 0.7238 MB / 0.906 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001104/0.2464, allocations: 20.48 kB / 0.906 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.22e-05/0.2465, allocations: 11.44 kB / 0.9061 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of SimCode: time 1.122e-06/0.2465, allocations: 0 / 0.9061 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of Templates: time 0.006266/0.2528, allocations: 1.556 MB / 0.9076 GB, free: 56.2 MB / 0.6042 GB