Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.Printer.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.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.Printer") [: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.069/2.069, allocations: 253.1 MB / 260.4 MB, free: 0.582 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.002174/0.002174, allocations: 182.1 kB / 319.6 MB, free: 7.684 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.066/2.066, allocations: 205.4 MB / 0.5704 GB, free: 25.65 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.001263/0.001263, allocations: 89.33 kB / 0.6746 GB, free: 3.078 MB / 0.4949 GB Notification: Performance of FrontEnd - loaded program: time 9.468e-06/9.528e-06, allocations: 0 / 0.7843 GB, free: 2.699 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4948/0.4949, allocations: 106.2 MB / 0.888 GB, free: 77.13 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2099/0.7048, allocations: 132.5 MB / 1.017 GB, free: 8.457 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/0.7052, allocations: 79.94 kB / 1.017 GB, free: 8.379 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.01401/0.7192, allocations: 2.657 MB / 1.02 GB, free: 5.711 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.807e-05/0.7193, allocations: 4 kB / 1.02 GB, free: 5.707 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001035/0.7203, allocations: 0.5265 MB / 1.021 GB, free: 5.117 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.7204, allocations: 12.03 kB / 1.021 GB, free: 5.105 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.519e-05/0.7205, allocations: 19.8 kB / 1.021 GB, free: 5.086 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.7208, allocations: 206.8 kB / 1.021 GB, free: 4.844 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.7208, allocations: 4 kB / 1.021 GB, free: 4.84 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.247e-05/0.7209, allocations: 7.938 kB / 1.021 GB, free: 4.832 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001682/0.721, allocations: 39.94 kB / 1.021 GB, free: 4.793 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.7213, allocations: 103 kB / 1.021 GB, free: 4.684 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.7213, allocations: 0 / 1.021 GB, free: 4.684 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.7214, allocations: 3.984 kB / 1.021 GB, free: 4.68 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.7214, allocations: 4 kB / 1.021 GB, free: 4.676 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009271/0.7223, allocations: 453.2 kB / 1.021 GB, free: 4.191 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.7225, allocations: 65.22 kB / 1.021 GB, free: 4.109 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.745e-05/0.7226, allocations: 29.83 kB / 1.022 GB, free: 4.074 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.7226, allocations: 7.938 kB / 1.022 GB, free: 4.066 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.7229, allocations: 120.9 kB / 1.022 GB, free: 3.93 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=12): time 2.304e-06/0.7229, allocations: 0 / 1.022 GB, free: 3.93 MB / 0.6667 GB Notification: Performance of matching and sorting (n=12): time 0.0003311/0.7233, allocations: 97.53 kB / 1.022 GB, free: 3.828 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.7233, allocations: 81.09 kB / 1.022 GB, free: 3.73 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.7236, allocations: 145.8 kB / 1.022 GB, free: 3.582 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.7236, allocations: 33.7 kB / 1.022 GB, free: 3.543 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 5.797e-05/0.7237, allocations: 92.41 kB / 1.022 GB, free: 3.445 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/0.7237, allocations: 27.61 kB / 1.022 GB, free: 3.418 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-06/0.7238, allocations: 8 kB / 1.022 GB, free: 3.41 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.7239, allocations: 322.8 kB / 1.022 GB, free: 3.086 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.25e-05/0.724, allocations: 16 kB / 1.022 GB, free: 3.07 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.7242, allocations: 102.2 kB / 1.023 GB, free: 2.934 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.465e-05/0.7243, allocations: 31.09 kB / 1.023 GB, free: 2.906 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.7243, allocations: 3.938 kB / 1.023 GB, free: 2.902 MB / 0.6667 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002915/0.7246, allocations: 121.3 kB / 1.023 GB, free: 2.777 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.7246, allocations: 5.875 kB / 1.023 GB, free: 2.773 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.7246, allocations: 8 kB / 1.023 GB, free: 2.766 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.7247, allocations: 0 / 1.023 GB, free: 2.766 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.7249, allocations: 24.27 kB / 1.023 GB, free: 2.742 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.7249, allocations: 7.938 kB / 1.023 GB, free: 2.734 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.7251, allocations: 19.92 kB / 1.023 GB, free: 2.715 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.7251, allocations: 8 kB / 1.023 GB, free: 2.707 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001132/0.7253, allocations: 116.9 kB / 1.023 GB, free: 2.586 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.7253, allocations: 15.81 kB / 1.023 GB, free: 2.57 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.012e-05/0.7254, allocations: 21.41 kB / 1.023 GB, free: 2.547 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.7254, allocations: 0 / 1.023 GB, free: 2.547 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.7254, allocations: 3.938 kB / 1.023 GB, free: 2.543 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.7254, allocations: 3.984 kB / 1.023 GB, free: 2.539 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007203/0.7262, allocations: 462.2 kB / 1.023 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.7262, allocations: 192 / 1.023 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.7264, allocations: 27.92 kB / 1.023 GB, free: 2.016 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.7264, allocations: 3.938 kB / 1.023 GB, free: 2.012 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.7264, allocations: 4 kB / 1.023 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.7264, allocations: 0 / 1.023 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.7264, allocations: 0 / 1.023 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003286/0.7268, allocations: 288.3 kB / 1.024 GB, free: 1.703 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.626e-05/0.7268, allocations: 92.98 kB / 1.024 GB, free: 1.594 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.7269, allocations: 3.906 kB / 1.024 GB, free: 1.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003375/0.7272, allocations: 23.98 kB / 1.024 GB, free: 1.566 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.7273, allocations: 11.98 kB / 1.024 GB, free: 1.555 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.207e-05/0.7274, allocations: 11.98 kB / 1.024 GB, free: 1.543 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001099/0.7275, allocations: 112.3 kB / 1.024 GB, free: 1.434 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005419/0.728, allocations: 40 kB / 1.024 GB, free: 1.395 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004913/0.7286, allocations: 183.5 kB / 1.024 GB, free: 1.23 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002698/0.7288, allocations: 68.38 kB / 1.024 GB, free: 1.164 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.7289, allocations: 4.062 kB / 1.024 GB, free: 1.16 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.729, allocations: 35.98 kB / 1.024 GB, free: 1.125 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.7294, allocations: 15.91 kB / 1.024 GB, free: 1.109 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005745/0.73, allocations: 164.3 kB / 1.024 GB, free: 0.9219 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.7303, allocations: 0.7349 MB / 1.025 GB, free: 164 kB / 0.6667 GB Notification: Performance of SimCode: time 8.42e-07/0.7304, allocations: 0 / 1.025 GB, free: 164 kB / 0.6667 GB Notification: Performance of Templates: time 0.007429/0.7378, allocations: 1.725 MB / 1.027 GB, free: 14.44 MB / 0.6824 GB