Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",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 8.1.4-maint.8.1.x/package.mo): time 1.415/1.415, allocations: 289.8 MB / 297.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000966/0.0009661, allocations: 181.3 kB / 366.3 MB, free: 2.016 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.044/1.044, allocations: 205.1 MB / 0.6256 GB, free: 5.844 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008593/0.0008591, allocations: 88.77 kB / 0.7396 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2045/0.2054, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.6336, allocations: 116.3 MB / 0.9727 GB, free: 68.25 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1583/0.7919, allocations: 159 MB / 1.128 GB, free: 5.441 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.7922, allocations: 87.94 kB / 1.128 GB, free: 5.355 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.03696/0.8292, allocations: 16.3 MB / 1.144 GB, free: 4.895 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.8292, allocations: 8 kB / 1.144 GB, free: 4.887 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007725/0.83, allocations: 103.6 kB / 1.144 GB, free: 4.785 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.8303, allocations: 250.6 kB / 1.144 GB, free: 4.5 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.8304, allocations: 8 kB / 1.144 GB, free: 4.492 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.134e-05/0.8304, allocations: 8 kB / 1.144 GB, free: 4.484 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003542/0.8308, allocations: 228.7 kB / 1.145 GB, free: 4.262 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004187/0.8312, allocations: 345.2 kB / 1.145 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.8312, allocations: 0 / 1.145 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.8312, allocations: 0 / 1.145 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-05/0.8313, allocations: 20.31 kB / 1.145 GB, free: 3.867 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.8329, allocations: 1.681 MB / 1.147 GB, free: 2.062 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.8332, allocations: 265.2 kB / 1.147 GB, free: 1.785 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.8334, allocations: 137.7 kB / 1.147 GB, free: 1.645 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.8335, allocations: 85.11 kB / 1.147 GB, free: 1.543 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.8336, allocations: 50.47 kB / 1.147 GB, free: 1.484 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=20): time 1.252e-06/0.8336, allocations: 0 / 1.147 GB, free: 1.484 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21): time 0.0007749/0.8343, allocations: 377.3 kB / 1.147 GB, free: 1.105 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.8344, allocations: 81.11 kB / 1.147 GB, free: 1.008 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.8345, allocations: 177.3 kB / 1.148 GB, free: 0.8281 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.8346, allocations: 25.8 kB / 1.148 GB, free: 0.7969 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.8346, allocations: 151.9 kB / 1.148 GB, free: 0.6445 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.3e-05/0.8347, allocations: 74.91 kB / 1.148 GB, free: 0.5703 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.442e-05/0.8347, allocations: 3.938 kB / 1.148 GB, free: 0.5664 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.955e-05/0.8348, allocations: 326.8 kB / 1.148 GB, free: 244 kB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.835, allocations: 112 kB / 1.148 GB, free: 132 kB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.8352, allocations: 198.4 kB / 1.148 GB, free: 15.89 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002551/0.8354, allocations: 152.8 kB / 1.149 GB, free: 15.75 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.8354, allocations: 0 / 1.149 GB, free: 15.75 MB / 0.7605 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006282/0.8361, allocations: 395.4 kB / 1.149 GB, free: 15.36 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002824/0.8364, allocations: 1.043 MB / 1.15 GB, free: 14.23 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.8364, allocations: 4 kB / 1.15 GB, free: 14.23 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.8366, allocations: 40.81 kB / 1.15 GB, free: 14.18 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.8369, allocations: 75.89 kB / 1.15 GB, free: 14.11 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.8381, allocations: 1.402 MB / 1.152 GB, free: 12.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.8383, allocations: 23.88 kB / 1.152 GB, free: 12.56 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.8383, allocations: 16 kB / 1.152 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 4.729e-06/0.8383, allocations: 4 kB / 1.152 GB, free: 12.54 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005429/0.8389, allocations: 312.6 kB / 1.152 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.8389, allocations: 4 kB / 1.152 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001248/0.839, allocations: 44.83 kB / 1.152 GB, free: 12.18 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.8393, allocations: 68.23 kB / 1.152 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009827/0.8403, allocations: 1.406 MB / 1.153 GB, free: 10.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.8405, allocations: 27.88 kB / 1.153 GB, free: 10.56 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.8406, allocations: 11.98 kB / 1.153 GB, free: 10.55 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 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 8.605e-05/0.8406, allocations: 115.3 kB / 1.153 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.564e-05/0.8407, allocations: 19.72 kB / 1.153 GB, free: 10.42 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005669/0.8413, allocations: 339.9 kB / 1.154 GB, free: 10.08 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.8413, allocations: 4 kB / 1.154 GB, free: 10.07 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.8413, allocations: 3.906 kB / 1.154 GB, free: 10.07 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.8413, allocations: 3.984 kB / 1.154 GB, free: 10.07 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.8425, allocations: 0.8863 MB / 1.155 GB, free: 9.113 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.8425, allocations: 0 / 1.155 GB, free: 9.113 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.8428, allocations: 60.12 kB / 1.155 GB, free: 9.055 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001108/0.8429, allocations: 36.83 kB / 1.155 GB, free: 9.016 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.8429, allocations: 3.969 kB / 1.155 GB, free: 9.012 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008948/0.8438, allocations: 1.338 MB / 1.156 GB, free: 7.559 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.8438, allocations: 7.938 kB / 1.156 GB, free: 7.551 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005732/0.8444, allocations: 0.5986 MB / 1.157 GB, free: 6.875 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006797/0.8451, allocations: 0.9693 MB / 1.158 GB, free: 5.82 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.8452, allocations: 128.7 kB / 1.158 GB, free: 5.676 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.8453, allocations: 3.984 kB / 1.158 GB, free: 5.672 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.8455, allocations: 23.92 kB / 1.158 GB, free: 5.648 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.503e-05/0.8456, allocations: 19.92 kB / 1.158 GB, free: 5.629 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.8456, allocations: 8 kB / 1.158 GB, free: 5.621 MB / 0.7605 GB Notification: Performance of sort global known variables: time 9.529e-05/0.8457, allocations: 140.2 kB / 1.158 GB, free: 5.484 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.00172/0.8474, allocations: 115.8 kB / 1.158 GB, free: 5.371 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 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.0001424/0.8476, allocations: 131.1 kB / 1.158 GB, free: 5.234 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0007967/0.8484, allocations: 0.6352 MB / 1.159 GB, free: 4.582 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8484, allocations: 1.375 kB / 1.159 GB, free: 4.582 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002819/0.8487, allocations: 242 kB / 1.159 GB, free: 4.336 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.849, allocations: 32.75 kB / 1.159 GB, free: 4.305 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007575/0.8498, allocations: 416.1 kB / 1.159 GB, free: 3.852 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003715/0.8502, allocations: 0.8026 MB / 1.16 GB, free: 3.02 MB / 0.7605 GB Notification: Performance of SimCode: time 2.6e-07/0.8502, allocations: 0 / 1.16 GB, free: 3.02 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)