Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.258/1.258, allocations: 249.4 MB / 256.7 MB, free: 6.992 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 173.3 kB / 316 MB, free: 3.547 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.115/1.115, allocations: 205.1 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008445/0.0008444, allocations: 78.41 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3122/0.3131, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.4629, allocations: 106.3 MB / 0.8846 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4678/0.9308, allocations: 152.8 MB / 1.034 GB, free: 3.266 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.9311, allocations: 85.44 kB / 1.034 GB, free: 3.219 MB / 0.6511 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.03767/0.9688, allocations: 16.3 MB / 1.05 GB, free: 5.621 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.9688, allocations: 12 kB / 1.05 GB, free: 5.609 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008054/0.9696, allocations: 95.36 kB / 1.05 GB, free: 5.52 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.97, allocations: 256.4 kB / 1.05 GB, free: 5.246 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.97, allocations: 8 kB / 1.05 GB, free: 5.238 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.074e-05/0.97, allocations: 12 kB / 1.05 GB, free: 5.227 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003446/0.9704, allocations: 226 kB / 1.05 GB, free: 5.082 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004153/0.9708, allocations: 338.2 kB / 1.051 GB, free: 4.797 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.9708, allocations: 4 kB / 1.051 GB, free: 4.793 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.9709, allocations: 4 kB / 1.051 GB, free: 4.789 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.662e-05/0.9709, allocations: 27.48 kB / 1.051 GB, free: 4.762 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.9725, allocations: 1.666 MB / 1.052 GB, free: 3.145 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.9728, allocations: 281.1 kB / 1.053 GB, free: 2.918 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.973, allocations: 139.2 kB / 1.053 GB, free: 2.816 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000145/0.9731, allocations: 89.41 kB / 1.053 GB, free: 2.711 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.9732, allocations: 45.78 kB / 1.053 GB, free: 2.66 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=20): time 2.084e-06/0.9732, allocations: 0 / 1.053 GB, free: 2.66 MB / 0.6667 GB Notification: Performance of matching and sorting (n=21): time 0.0008431/0.974, allocations: 374.1 kB / 1.053 GB, free: 2.352 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.9741, allocations: 77.11 kB / 1.053 GB, free: 2.258 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.9743, allocations: 173.4 kB / 1.054 GB, free: 2.105 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.9743, allocations: 25.7 kB / 1.054 GB, free: 2.074 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.979e-05/0.9744, allocations: 158.1 kB / 1.054 GB, free: 1.926 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 5.8e-05/0.9744, allocations: 77.41 kB / 1.054 GB, free: 1.859 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.9745, allocations: 4 kB / 1.054 GB, free: 1.855 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.9746, allocations: 325.8 kB / 1.054 GB, free: 1.535 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.9748, allocations: 112.5 kB / 1.054 GB, free: 1.465 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.975, allocations: 189.8 kB / 1.054 GB, free: 1.281 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.9752, allocations: 151 kB / 1.055 GB, free: 1.18 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.9752, allocations: 8 kB / 1.055 GB, free: 1.172 MB / 0.6667 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006136/0.9758, allocations: 391.5 kB / 1.055 GB, free: 0.8711 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004372/0.9763, allocations: 1.047 MB / 1.056 GB, free: 15.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.9763, allocations: 4 kB / 1.056 GB, free: 15.76 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.9765, allocations: 39.58 kB / 1.056 GB, free: 15.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003327/0.9769, allocations: 67.89 kB / 1.056 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.9781, allocations: 1.416 MB / 1.057 GB, free: 14.19 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.9783, allocations: 23.95 kB / 1.057 GB, free: 14.17 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.9784, allocations: 19.55 kB / 1.057 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.101e-06/0.9784, allocations: 4 kB / 1.057 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005431/0.9789, allocations: 317.4 kB / 1.058 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.9789, allocations: 0 / 1.058 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000123/0.9791, allocations: 48.45 kB / 1.058 GB, free: 13.87 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.9794, allocations: 64.2 kB / 1.058 GB, free: 13.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.9804, allocations: 1.402 MB / 1.059 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.9807, allocations: 27.94 kB / 1.059 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.9807, allocations: 15.31 kB / 1.059 GB, free: 12.33 MB / 0.6823 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 0.0001119/0.9808, allocations: 108.8 kB / 1.059 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.11e-05/0.9809, allocations: 19.81 kB / 1.059 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005802/0.9815, allocations: 340 kB / 1.06 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.9815, allocations: 4 kB / 1.06 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.9815, allocations: 0 / 1.06 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.9815, allocations: 0 / 1.06 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.9828, allocations: 0.894 MB / 1.061 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.9828, allocations: 4 kB / 1.061 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.983, allocations: 55.75 kB / 1.061 GB, free: 11.06 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001143/0.9832, allocations: 35.95 kB / 1.061 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.9832, allocations: 0 / 1.061 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000902/0.9841, allocations: 1.351 MB / 1.062 GB, free: 9.625 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.9841, allocations: 0 / 1.062 GB, free: 9.625 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006038/0.9847, allocations: 0.5852 MB / 1.063 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006589/0.9854, allocations: 0.9784 MB / 1.064 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.9855, allocations: 127.1 kB / 1.064 GB, free: 7.926 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.633e-05/0.9855, allocations: 0 / 1.064 GB, free: 7.926 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.9858, allocations: 15.98 kB / 1.064 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.9859, allocations: 31 kB / 1.064 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.9859, allocations: 8 kB / 1.064 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of sort global known variables: time 9.927e-05/0.986, allocations: 139.1 kB / 1.064 GB, free: 7.758 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001656/0.9877, allocations: 118.3 kB / 1.064 GB, free: 7.648 MB / 0.6823 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.0001793/0.9879, allocations: 114.5 kB / 1.064 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0009283/0.9888, allocations: 0.6418 MB / 1.065 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.9888, allocations: 0 / 1.065 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.9891, allocations: 238.9 kB / 1.065 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.9894, allocations: 33.2 kB / 1.065 GB, free: 6.766 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008637/0.9903, allocations: 423.4 kB / 1.065 GB, free: 6.359 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004547/0.9908, allocations: 0.8014 MB / 1.066 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of SimCode: time 4.21e-07/0.9908, allocations: 0 / 1.066 GB, free: 5.543 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)