Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") [: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 8.0.0/package.mo): time 2.089/2.089, allocations: 284.9 MB / 292.2 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001589/0.001589, allocations: 193.2 kB / 360.4 MB, free: 7.527 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.2 MB / 0.6188 GB, free: 13.18 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001174/0.001173, allocations: 93.83 kB / 0.7318 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.895e-06, allocations: 0 / 0.8503 GB, free: 3.961 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5206/0.5207, allocations: 115.2 MB / 0.9628 GB, free: 78.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2259/0.7466, allocations: 159 MB / 1.118 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/0.747, allocations: 93.34 kB / 1.118 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.06457/0.8116, allocations: 16.58 MB / 1.134 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.557e-05/0.8117, allocations: 7.984 kB / 1.134 GB, free: 13.07 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001527/0.8132, allocations: 0.6133 MB / 1.135 GB, free: 12.4 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.8133, allocations: 8.531 kB / 1.135 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001201/0.8145, allocations: 108.2 kB / 1.135 GB, free: 12.29 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000501/0.815, allocations: 278.2 kB / 1.135 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.815, allocations: 8 kB / 1.135 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-05/0.8151, allocations: 16 kB / 1.135 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007338/0.8159, allocations: 252.8 kB / 1.136 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007686/0.8166, allocations: 349.2 kB / 1.136 GB, free: 11.33 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.8167, allocations: 0 / 1.136 GB, free: 11.33 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.8167, allocations: 4 kB / 1.136 GB, free: 11.32 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.102e-05/0.8168, allocations: 29.39 kB / 1.136 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.8197, allocations: 1.611 MB / 1.138 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008498/0.8205, allocations: 341.5 kB / 1.138 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.8209, allocations: 157.7 kB / 1.138 GB, free: 9.051 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001921/0.8211, allocations: 89.09 kB / 1.138 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.8216, allocations: 215.8 kB / 1.138 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=27): time 1.944e-06/0.8217, allocations: 4 kB / 1.138 GB, free: 8.715 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28): time 0.001398/0.8231, allocations: 426.6 kB / 1.139 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.8231, allocations: 89.03 kB / 1.139 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.8234, allocations: 183.7 kB / 1.139 GB, free: 8 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.8235, allocations: 29.7 kB / 1.139 GB, free: 7.965 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.8236, allocations: 152 kB / 1.139 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.8237, allocations: 90.84 kB / 1.139 GB, free: 7.719 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.8237, allocations: 0 / 1.139 GB, free: 7.719 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.8239, allocations: 342.7 kB / 1.14 GB, free: 7.375 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.8242, allocations: 129.6 kB / 1.14 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.8247, allocations: 197.4 kB / 1.14 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004757/0.8251, allocations: 172.1 kB / 1.14 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.8252, allocations: 0 / 1.14 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001204/0.8264, allocations: 431.4 kB / 1.14 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.000325/0.8267, allocations: 0.8735 MB / 1.141 GB, free: 5.488 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.8267, allocations: 6.734 kB / 1.141 GB, free: 5.484 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000306/0.8271, allocations: 40.81 kB / 1.141 GB, free: 5.441 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007952/0.8279, allocations: 91.88 kB / 1.141 GB, free: 5.352 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/0.8296, allocations: 1.409 MB / 1.143 GB, free: 3.824 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005871/0.8302, allocations: 47.91 kB / 1.143 GB, free: 3.777 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.513e-05/0.8303, allocations: 12 kB / 1.143 GB, free: 3.766 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.8303, allocations: 7.906 kB / 1.143 GB, free: 3.758 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00112/0.8314, allocations: 358.6 kB / 1.143 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.8314, allocations: 3.938 kB / 1.143 GB, free: 3.402 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002148/0.8317, allocations: 40.81 kB / 1.143 GB, free: 3.359 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007025/0.8324, allocations: 92.16 kB / 1.143 GB, free: 3.27 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.8338, allocations: 1.392 MB / 1.145 GB, free: 1.762 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005311/0.8344, allocations: 55.81 kB / 1.145 GB, free: 1.707 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.8344, allocations: 12 kB / 1.145 GB, free: 1.695 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.8346, allocations: 118.8 kB / 1.145 GB, free: 1.574 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.573e-05/0.8347, allocations: 23.72 kB / 1.145 GB, free: 1.551 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.8359, allocations: 398.8 kB / 1.145 GB, free: 1.152 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.836, allocations: 0 / 1.145 GB, free: 1.152 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.836, allocations: 4 kB / 1.145 GB, free: 1.148 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.836, allocations: 3.984 kB / 1.145 GB, free: 1.145 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008756/0.8369, allocations: 0.512 MB / 1.146 GB, free: 0.582 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.8369, allocations: 0 / 1.146 GB, free: 0.582 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007053/0.8376, allocations: 89.67 kB / 1.146 GB, free: 0.4961 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001896/0.8378, allocations: 40.97 kB / 1.146 GB, free: 464 kB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.8379, allocations: 0 / 1.146 GB, free: 464 kB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.8392, allocations: 1.334 MB / 1.147 GB, free: 15 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.8393, allocations: 2.062 kB / 1.147 GB, free: 15 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001092/0.8404, allocations: 0.5034 MB / 1.148 GB, free: 14.45 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.8406, allocations: 136.7 kB / 1.148 GB, free: 14.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.926e-05/0.8407, allocations: 4 kB / 1.148 GB, free: 14.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005505/0.8412, allocations: 39.95 kB / 1.148 GB, free: 14.26 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.8413, allocations: 23.88 kB / 1.148 GB, free: 14.23 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.8414, allocations: 15.98 kB / 1.148 GB, free: 14.22 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001922/0.8416, allocations: 156.5 kB / 1.148 GB, free: 14.07 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008105/0.8424, allocations: 124 kB / 1.148 GB, free: 13.95 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002128/0.8427, allocations: 127.8 kB / 1.148 GB, free: 13.81 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001801/0.8445, allocations: 0.77 MB / 1.149 GB, free: 13.02 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.8445, allocations: 256 / 1.149 GB, free: 13.02 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0006166/0.8451, allocations: 278 kB / 1.149 GB, free: 12.73 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.8456, allocations: 32.41 kB / 1.149 GB, free: 12.7 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.8473, allocations: 483.5 kB / 1.15 GB, free: 12.2 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006196/0.8479, allocations: 0.8197 MB / 1.151 GB, free: 11.34 MB / 0.7605 GB Notification: Performance of SimCode: time 6.92e-07/0.8479, allocations: 4 kB / 1.151 GB, free: 11.34 MB / 0.7605 GB Notification: Performance of Templates: time 0.01506/0.863, allocations: 5.683 MB / 1.156 GB, free: 5.758 MB / 0.7605 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)