Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.314/1.314, allocations: 285.5 MB / 292.8 MB, free: 10.5 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.0009129/0.0009128, allocations: 175.7 kB / 361.1 MB, free: 7.129 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.018/1.018, allocations: 205.1 MB / 0.6195 GB, free: 11.95 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.0008007/0.0008007, allocations: 95.77 kB / 0.7325 GB, free: 44.48 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1757/0.1766, allocations: 121.4 MB / 0.8511 GB, free: 3.152 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.5823, allocations: 115.3 MB / 0.9638 GB, free: 78.26 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.727, allocations: 158 MB / 1.118 GB, free: 14.07 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.7273, allocations: 88.12 kB / 1.118 GB, free: 13.99 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.03616/0.7634, allocations: 16.3 MB / 1.134 GB, free: 13.61 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.7635, allocations: 8 kB / 1.134 GB, free: 13.6 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000761/0.7643, allocations: 100.6 kB / 1.134 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.7645, allocations: 258.6 kB / 1.134 GB, free: 13.21 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.7646, allocations: 8 kB / 1.134 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.7646, allocations: 8 kB / 1.134 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003489/0.765, allocations: 228.7 kB / 1.135 GB, free: 12.97 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.7654, allocations: 342.7 kB / 1.135 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.7654, allocations: 0 / 1.135 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.7654, allocations: 0 / 1.135 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.268e-05/0.7655, allocations: 24.31 kB / 1.135 GB, free: 12.58 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.767, allocations: 1.677 MB / 1.137 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.7673, allocations: 266.7 kB / 1.137 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.7675, allocations: 145.6 kB / 1.137 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001351/0.7677, allocations: 89.11 kB / 1.137 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.7677, allocations: 34.56 kB / 1.137 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.7677, allocations: 0 / 1.137 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21): time 0.000786/0.7685, allocations: 373.3 kB / 1.138 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.7685, allocations: 85.09 kB / 1.138 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.7687, allocations: 178.9 kB / 1.138 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.7687, allocations: 25.7 kB / 1.138 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.38e-05/0.7688, allocations: 153.8 kB / 1.138 GB, free: 9.359 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.195e-05/0.7689, allocations: 70.91 kB / 1.138 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.7689, allocations: 0 / 1.138 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.05e-05/0.769, allocations: 326.8 kB / 1.138 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.7691, allocations: 116 kB / 1.138 GB, free: 8.848 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.7693, allocations: 190.4 kB / 1.139 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/0.7696, allocations: 155.8 kB / 1.139 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.7696, allocations: 3.938 kB / 1.139 GB, free: 8.469 MB / 0.7448 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000627/0.7702, allocations: 392.8 kB / 1.139 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003397/0.7706, allocations: 1.048 MB / 1.14 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.7706, allocations: 4 kB / 1.14 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001938/0.7708, allocations: 48.81 kB / 1.14 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003199/0.7711, allocations: 67.89 kB / 1.14 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.7724, allocations: 1.412 MB / 1.142 GB, free: 5.301 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.7726, allocations: 23.88 kB / 1.142 GB, free: 5.277 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.7727, allocations: 12 kB / 1.142 GB, free: 5.266 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.7727, allocations: 8.062 kB / 1.142 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000528/0.7732, allocations: 310.9 kB / 1.142 GB, free: 4.953 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-06/0.7732, allocations: 0 / 1.142 GB, free: 4.953 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001258/0.7733, allocations: 41.17 kB / 1.142 GB, free: 4.91 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.7736, allocations: 77.8 kB / 1.142 GB, free: 4.836 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009396/0.7746, allocations: 1.409 MB / 1.143 GB, free: 3.312 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.7748, allocations: 23.88 kB / 1.144 GB, free: 3.289 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.7748, allocations: 11.98 kB / 1.144 GB, free: 3.277 MB / 0.7448 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.973e-05/0.7749, allocations: 117 kB / 1.144 GB, free: 3.156 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.476e-05/0.775, allocations: 19.72 kB / 1.144 GB, free: 3.137 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005593/0.7755, allocations: 326.7 kB / 1.144 GB, free: 2.809 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.7756, allocations: 4 kB / 1.144 GB, free: 2.805 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.7756, allocations: 3.906 kB / 1.144 GB, free: 2.801 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.7756, allocations: 7.984 kB / 1.144 GB, free: 2.793 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.7767, allocations: 0.8864 MB / 1.145 GB, free: 1.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.7768, allocations: 8.016 kB / 1.145 GB, free: 1.832 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.777, allocations: 51.97 kB / 1.145 GB, free: 1.781 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000114/0.7771, allocations: 40.77 kB / 1.145 GB, free: 1.738 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.7771, allocations: 3.906 kB / 1.145 GB, free: 1.734 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008748/0.778, allocations: 1.332 MB / 1.146 GB, free: 296 kB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.778, allocations: 4 kB / 1.146 GB, free: 292 kB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000574/0.7786, allocations: 0.5947 MB / 1.147 GB, free: 15.61 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006793/0.7793, allocations: 0.9787 MB / 1.148 GB, free: 14.55 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.7794, allocations: 128.7 kB / 1.148 GB, free: 14.41 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.7795, allocations: 0 / 1.148 GB, free: 14.41 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.7797, allocations: 26.41 kB / 1.148 GB, free: 14.38 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.7798, allocations: 15.98 kB / 1.148 GB, free: 14.37 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.7798, allocations: 11.94 kB / 1.148 GB, free: 14.36 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001029/0.7799, allocations: 140.2 kB / 1.148 GB, free: 14.22 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001607/0.7815, allocations: 115.8 kB / 1.148 GB, free: 14.11 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.0001444/0.7817, allocations: 126.9 kB / 1.148 GB, free: 13.97 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0007912/0.7825, allocations: 0.6337 MB / 1.149 GB, free: 13.32 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7825, allocations: 4 kB / 1.149 GB, free: 13.32 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.000277/0.7828, allocations: 242 kB / 1.149 GB, free: 13.07 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.7831, allocations: 23.98 kB / 1.149 GB, free: 13.05 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007777/0.7839, allocations: 426.6 kB / 1.15 GB, free: 12.59 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/0.7842, allocations: 0.7919 MB / 1.15 GB, free: 11.77 MB / 0.7605 GB Notification: Performance of SimCode: time 2.81e-07/0.7842, allocations: 0 / 1.15 GB, free: 11.77 MB / 0.7605 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)