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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.176/2.176, allocations: 253.1 MB / 260.4 MB, free: 7.5 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00165/0.00165, allocations: 192.7 kB / 319.6 MB, free: 3.316 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 1.783/1.783, allocations: 205.4 MB / 0.5704 GB, free: 15.06 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.001689/0.001689, allocations: 91.38 kB / 0.6746 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.204e-05/1.219e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2608, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.638/0.8989, allocations: 133.7 MB / 1.019 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.8993, allocations: 79.77 kB / 1.019 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01453/0.9138, allocations: 2.958 MB / 1.022 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.074e-05/0.9139, allocations: 6.625 kB / 1.022 GB, free: 2.129 MB / 0.6355 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.0007514/0.9147, allocations: 434.4 kB / 1.022 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.9147, allocations: 8.031 kB / 1.022 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.913e-05/0.9148, allocations: 15.81 kB / 1.022 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004045/0.9152, allocations: 236.2 kB / 1.022 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.9152, allocations: 7.844 kB / 1.022 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.9153, allocations: 4 kB / 1.022 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001529/0.9154, allocations: 37.36 kB / 1.022 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.9157, allocations: 80.36 kB / 1.022 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.9157, allocations: 0 / 1.022 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.9157, allocations: 3.938 kB / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.9157, allocations: 3.984 kB / 1.022 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00084/0.9166, allocations: 357.5 kB / 1.023 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.959e-05/0.9167, allocations: 26.45 kB / 1.023 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.523e-05/0.9167, allocations: 20.23 kB / 1.023 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.9168, allocations: 0 / 1.023 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/0.9169, allocations: 83.58 kB / 1.023 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.917, allocations: 0 / 1.023 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002275/0.9172, allocations: 60.56 kB / 1.023 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.9173, allocations: 80.23 kB / 1.023 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.9176, allocations: 205.2 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.9176, allocations: 25.7 kB / 1.023 GB, free: 408 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.9177, allocations: 109.9 kB / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.9177, allocations: 7.812 kB / 1.023 GB, free: 292 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.9178, allocations: 0 / 1.023 GB, free: 292 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002076/0.918, allocations: 325.3 kB / 1.024 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.167e-05/0.918, allocations: 11.48 kB / 1.024 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.155e-05/0.9181, allocations: 35.12 kB / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.466e-05/0.9181, allocations: 7.438 kB / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.9182, allocations: 0 / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001841/0.9184, allocations: 68.06 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.9184, allocations: 8 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9184, allocations: 0.8125 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.9184, allocations: 0 / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.9187, allocations: 20.11 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.9187, allocations: 4 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.9189, allocations: 15.89 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.9189, allocations: 8 kB / 1.024 GB, free: 15.79 MB / 0.6511 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 () * 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 9.842e-05/0.919, allocations: 108.9 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.087e-05/0.9191, allocations: 15.81 kB / 1.024 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.386e-05/0.9192, allocations: 22.72 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.9192, allocations: 4 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.9192, allocations: 0 / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.9192, allocations: 3.984 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.9194, allocations: 196.1 kB / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.9194, allocations: 0 / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.9196, allocations: 19.98 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.9196, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.9196, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.9196, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.9197, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001887/0.9199, allocations: 94.59 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/0.92, allocations: 100.1 kB / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.92, allocations: 0 / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.9202, allocations: 15.98 kB / 1.024 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.9203, allocations: 11.3 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/0.9203, allocations: 7.938 kB / 1.024 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002143/0.9205, allocations: 159.1 kB / 1.025 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003242/0.9209, allocations: 23.91 kB / 1.025 GB, free: 15 MB / 0.6511 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 () * 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.0003007/0.9212, allocations: 120.3 kB / 1.025 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001471/0.9214, allocations: 30.86 kB / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.9214, allocations: 0 / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.724e-05/0.9214, allocations: 14.75 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.9218, allocations: 34.52 kB / 1.025 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006473/0.9225, allocations: 183.5 kB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004443/0.923, allocations: 0.7371 MB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of SimCode: time 1.072e-06/0.923, allocations: 4 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of Templates: time 0.006625/0.9296, allocations: 1.557 MB / 1.027 GB, free: 12.33 MB / 0.6511 GB