Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.361/2.361, allocations: 248.6 MB / 255.9 MB, free: 1.52 MB / 195.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002318/0.002317, allocations: 185.9 kB / 315.1 MB, free: 9.973 MB / 259.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.1 MB / 0.5658 GB, free: 14.39 MB / 435.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001264/0.001263, allocations: 93.48 kB / 0.67 GB, free: 52.2 MB / 499.1 MB Notification: Performance of FrontEnd - loaded program: time 0.285/0.2863, allocations: 112.4 MB / 0.7797 GB, free: 10.92 MB / 0.5499 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.5309, allocations: 106.3 MB / 0.8835 GB, free: 0.5625 MB / 0.6437 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6442/1.175, allocations: 152.7 MB / 1.033 GB, free: 10.34 MB / 0.6749 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003984/1.176, allocations: 91.94 kB / 1.033 GB, free: 10.25 MB / 0.6749 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.08923/1.265, allocations: 17.2 MB / 1.049 GB, free: 9.121 MB / 0.6905 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/1.265, allocations: 12 kB / 1.05 GB, free: 9.109 MB / 0.6905 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001417/1.266, allocations: 95.52 kB / 1.05 GB, free: 9.016 MB / 0.6905 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006809/1.267, allocations: 290.9 kB / 1.05 GB, free: 8.691 MB / 0.6905 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/1.267, allocations: 15.98 kB / 1.05 GB, free: 8.676 MB / 0.6905 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.128e-05/1.267, allocations: 12 kB / 1.05 GB, free: 8.664 MB / 0.6905 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008801/1.268, allocations: 252.8 kB / 1.05 GB, free: 8.418 MB / 0.6905 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008998/1.269, allocations: 341.4 kB / 1.05 GB, free: 8.055 MB / 0.6905 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/1.269, allocations: 0 / 1.05 GB, free: 8.055 MB / 0.6905 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.539e-05/1.269, allocations: 7.984 kB / 1.05 GB, free: 8.047 MB / 0.6905 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.446e-05/1.269, allocations: 26.52 kB / 1.051 GB, free: 8.02 MB / 0.6905 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003544/1.273, allocations: 1.618 MB / 1.052 GB, free: 6.289 MB / 0.6905 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009964/1.274, allocations: 338.2 kB / 1.052 GB, free: 5.938 MB / 0.6905 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004277/1.274, allocations: 164.9 kB / 1.053 GB, free: 5.773 MB / 0.6905 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002373/1.275, allocations: 85.11 kB / 1.053 GB, free: 5.672 MB / 0.6905 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005149/1.275, allocations: 227.2 kB / 1.053 GB, free: 5.438 MB / 0.6905 GB Notification: Performance of pre-optimization done (n=27): time 2.755e-06/1.275, allocations: 4 kB / 1.053 GB, free: 5.434 MB / 0.6905 GB Notification: Performance of matching and sorting (n=28): time 0.0016/1.277, allocations: 424 kB / 1.053 GB, free: 5.012 MB / 0.6905 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/1.277, allocations: 85.05 kB / 1.053 GB, free: 4.91 MB / 0.6905 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002856/1.277, allocations: 183.1 kB / 1.054 GB, free: 4.723 MB / 0.6905 GB Notification: Performance of collectPreVariables (initialization): time 5.229e-05/1.277, allocations: 33.64 kB / 1.054 GB, free: 4.684 MB / 0.6905 GB Notification: Performance of collectInitialEqns (initialization): time 0.000123/1.277, allocations: 156.1 kB / 1.054 GB, free: 4.527 MB / 0.6905 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/1.277, allocations: 94.66 kB / 1.054 GB, free: 4.434 MB / 0.6905 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/1.278, allocations: 0 / 1.054 GB, free: 4.434 MB / 0.6905 GB Notification: Performance of setup shared object (initialization): time 0.00016/1.278, allocations: 334.8 kB / 1.054 GB, free: 4.098 MB / 0.6905 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/1.278, allocations: 124.3 kB / 1.054 GB, free: 3.977 MB / 0.6905 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/1.279, allocations: 205.4 kB / 1.054 GB, free: 3.746 MB / 0.6905 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005516/1.279, allocations: 164.8 kB / 1.055 GB, free: 3.586 MB / 0.6905 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/1.279, allocations: 0 / 1.055 GB, free: 3.586 MB / 0.6905 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001374/1.281, allocations: 430.2 kB / 1.055 GB, free: 3.16 MB / 0.6905 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004079/1.281, allocations: 0.8788 MB / 1.056 GB, free: 2.215 MB / 0.6905 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/1.281, allocations: 0 / 1.056 GB, free: 2.215 MB / 0.6905 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003828/1.281, allocations: 40.83 kB / 1.056 GB, free: 2.172 MB / 0.6905 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008042/1.282, allocations: 95.86 kB / 1.056 GB, free: 2.078 MB / 0.6905 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002009/1.284, allocations: 1.405 MB / 1.057 GB, free: 0.5547 MB / 0.6905 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006686/1.285, allocations: 53.3 kB / 1.057 GB, free: 0.5039 MB / 0.6905 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/1.285, allocations: 11.98 kB / 1.057 GB, free: 0.4922 MB / 0.6905 GB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/1.285, allocations: 4 kB / 1.057 GB, free: 500 kB / 0.6905 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001185/1.286, allocations: 349.7 kB / 1.058 GB, free: 148 kB / 0.6905 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/1.286, allocations: 4 kB / 1.058 GB, free: 144 kB / 0.6905 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002334/1.286, allocations: 46.39 kB / 1.058 GB, free: 96 kB / 0.6905 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007226/1.287, allocations: 88.16 kB / 1.058 GB, free: 8 kB / 0.6905 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/1.289, allocations: 1.4 MB / 1.059 GB, free: 14.49 MB / 0.7062 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006679/1.29, allocations: 47.92 kB / 1.059 GB, free: 14.45 MB / 0.7062 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/1.29, allocations: 15.98 kB / 1.059 GB, free: 14.43 MB / 0.7062 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.0002158/1.29, allocations: 111.4 kB / 1.059 GB, free: 14.32 MB / 0.7062 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.3e-05/1.29, allocations: 27.72 kB / 1.059 GB, free: 14.29 MB / 0.7062 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/1.292, allocations: 400.2 kB / 1.06 GB, free: 13.89 MB / 0.7062 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/1.292, allocations: 4 kB / 1.06 GB, free: 13.89 MB / 0.7062 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/1.292, allocations: 0 / 1.06 GB, free: 13.89 MB / 0.7062 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/1.292, allocations: 7.922 kB / 1.06 GB, free: 13.88 MB / 0.7062 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/1.293, allocations: 0.5174 MB / 1.06 GB, free: 13.32 MB / 0.7062 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.056e-06/1.293, allocations: 4 kB / 1.06 GB, free: 13.31 MB / 0.7062 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007871/1.293, allocations: 81.33 kB / 1.06 GB, free: 13.23 MB / 0.7062 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002444/1.294, allocations: 36.83 kB / 1.06 GB, free: 13.2 MB / 0.7062 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/1.294, allocations: 7.984 kB / 1.06 GB, free: 13.19 MB / 0.7062 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/1.296, allocations: 1.334 MB / 1.062 GB, free: 11.74 MB / 0.7062 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.296, allocations: 0 / 1.062 GB, free: 11.74 MB / 0.7062 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001296/1.297, allocations: 0.5091 MB / 1.062 GB, free: 11.19 MB / 0.7062 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001457/1.298, allocations: 0.8788 MB / 1.063 GB, free: 10.26 MB / 0.7062 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002607/1.299, allocations: 132.7 kB / 1.063 GB, free: 10.11 MB / 0.7062 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.996e-05/1.299, allocations: 4 kB / 1.063 GB, free: 10.11 MB / 0.7062 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000621/1.299, allocations: 39.95 kB / 1.063 GB, free: 10.07 MB / 0.7062 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/1.3, allocations: 23.91 kB / 1.063 GB, free: 10.04 MB / 0.7062 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/1.3, allocations: 15.98 kB / 1.063 GB, free: 10.03 MB / 0.7062 GB Notification: Performance of sort global known variables: time 0.0003307/1.3, allocations: 160.5 kB / 1.063 GB, free: 9.867 MB / 0.7062 GB Notification: Performance of remove unused functions: time 0.003446/1.303, allocations: 131.9 kB / 1.064 GB, free: 9.738 MB / 0.7062 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.0003732/1.304, allocations: 122.6 kB / 1.064 GB, free: 9.613 MB / 0.7062 GB Notification: Performance of simCode: created initialization part: time 0.002201/1.306, allocations: 0.7701 MB / 1.064 GB, free: 8.809 MB / 0.7062 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.306, allocations: 0 / 1.064 GB, free: 8.809 MB / 0.7062 GB Notification: Performance of simCode: created simulation system equations: time 0.0007501/1.307, allocations: 269.7 kB / 1.065 GB, free: 8.535 MB / 0.7062 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005755/1.307, allocations: 36.8 kB / 1.065 GB, free: 8.504 MB / 0.7062 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/1.309, allocations: 489.8 kB / 1.065 GB, free: 7.992 MB / 0.7062 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008012/1.31, allocations: 0.8197 MB / 1.066 GB, free: 7.145 MB / 0.7062 GB Notification: Performance of SimCode: time 1.362e-06/1.31, allocations: 0 / 1.066 GB, free: 7.145 MB / 0.7062 GB