Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.13/2.13, allocations: 284.8 MB / 292.1 MB, free: 10.77 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.00163/0.001629, allocations: 191.7 kB / 360.3 MB, free: 7.543 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.63/1.63, allocations: 205.2 MB / 0.6187 GB, free: 13.28 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.00123/0.001229, allocations: 82.81 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2424/0.2437, allocations: 121.4 MB / 0.8502 GB, free: 3.906 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5469/0.7906, allocations: 115.2 MB / 0.9627 GB, free: 78.36 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2342/1.025, allocations: 157.9 MB / 1.117 GB, free: 14.94 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003374/1.025, allocations: 84.61 kB / 1.117 GB, free: 14.86 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.06583/1.091, allocations: 16.3 MB / 1.133 GB, free: 14.48 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/1.091, allocations: 8.5 kB / 1.133 GB, free: 14.47 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001254/1.092, allocations: 99.61 kB / 1.133 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004664/1.093, allocations: 258.6 kB / 1.133 GB, free: 14.08 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/1.093, allocations: 4.75 kB / 1.133 GB, free: 14.07 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/1.093, allocations: 12 kB / 1.133 GB, free: 14.06 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006921/1.094, allocations: 226 kB / 1.133 GB, free: 13.84 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000773/1.095, allocations: 337.3 kB / 1.134 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/1.095, allocations: 3.938 kB / 1.134 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/1.095, allocations: 7.984 kB / 1.134 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.196e-05/1.095, allocations: 24.31 kB / 1.134 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002618/1.097, allocations: 1.67 MB / 1.135 GB, free: 11.65 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006316/1.098, allocations: 261.2 kB / 1.136 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/1.098, allocations: 141.7 kB / 1.136 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002115/1.099, allocations: 97.06 kB / 1.136 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/1.099, allocations: 38.56 kB / 1.136 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=20): time 2.675e-06/1.099, allocations: 0 / 1.136 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21): time 0.001307/1.1, allocations: 374.6 kB / 1.136 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/1.1, allocations: 77.11 kB / 1.136 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/1.1, allocations: 185.7 kB / 1.137 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/1.1, allocations: 26.55 kB / 1.137 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/1.1, allocations: 143.9 kB / 1.137 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.089e-05/1.101, allocations: 78.91 kB / 1.137 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/1.101, allocations: 0 / 1.137 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001464/1.101, allocations: 326.8 kB / 1.137 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/1.101, allocations: 108 kB / 1.137 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/1.101, allocations: 202.3 kB / 1.137 GB, free: 9.484 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004772/1.102, allocations: 148.8 kB / 1.138 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/1.102, allocations: 0 / 1.138 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001201/1.103, allocations: 401.2 kB / 1.138 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004672/1.104, allocations: 1.043 MB / 1.139 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/1.104, allocations: 5.125 kB / 1.139 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003193/1.104, allocations: 36.83 kB / 1.139 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/1.105, allocations: 75.89 kB / 1.139 GB, free: 7.703 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/1.107, allocations: 1.407 MB / 1.14 GB, free: 6.184 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/1.107, allocations: 31.86 kB / 1.141 GB, free: 6.152 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.949e-05/1.107, allocations: 12 kB / 1.141 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/1.107, allocations: 4 kB / 1.141 GB, free: 6.137 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001011/1.108, allocations: 316.5 kB / 1.141 GB, free: 5.824 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/1.108, allocations: 4 kB / 1.141 GB, free: 5.82 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002294/1.108, allocations: 41.17 kB / 1.141 GB, free: 5.777 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005417/1.109, allocations: 70.02 kB / 1.141 GB, free: 5.711 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/1.111, allocations: 1.416 MB / 1.142 GB, free: 4.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/1.111, allocations: 23.88 kB / 1.142 GB, free: 4.156 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/1.111, allocations: 12 kB / 1.142 GB, free: 4.145 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 0.000174/1.111, allocations: 113.5 kB / 1.142 GB, free: 4.027 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/1.112, allocations: 23.72 kB / 1.142 GB, free: 4.004 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/1.113, allocations: 334 kB / 1.143 GB, free: 3.672 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/1.113, allocations: 4 kB / 1.143 GB, free: 3.668 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.113, allocations: 7.844 kB / 1.143 GB, free: 3.66 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.113, allocations: 8 kB / 1.143 GB, free: 3.652 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/1.115, allocations: 0.8785 MB / 1.144 GB, free: 2.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/1.115, allocations: 8.219 kB / 1.144 GB, free: 2.699 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000486/1.115, allocations: 51.91 kB / 1.144 GB, free: 2.648 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/1.116, allocations: 36.83 kB / 1.144 GB, free: 2.609 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/1.116, allocations: 7.906 kB / 1.144 GB, free: 2.602 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/1.117, allocations: 1.339 MB / 1.145 GB, free: 1.148 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/1.117, allocations: 3.938 kB / 1.145 GB, free: 1.145 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001168/1.119, allocations: 0.5909 MB / 1.146 GB, free: 484 kB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001232/1.12, allocations: 0.981 MB / 1.147 GB, free: 15.41 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/1.12, allocations: 125.5 kB / 1.147 GB, free: 15.27 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.16e-05/1.12, allocations: 5.812 kB / 1.147 GB, free: 15.27 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004189/1.121, allocations: 19.92 kB / 1.147 GB, free: 15.25 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/1.121, allocations: 19.97 kB / 1.147 GB, free: 15.23 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/1.121, allocations: 8 kB / 1.147 GB, free: 15.22 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001992/1.121, allocations: 148.8 kB / 1.147 GB, free: 15.07 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.002637/1.124, allocations: 115.8 kB / 1.147 GB, free: 14.96 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.000214/1.124, allocations: 111.2 kB / 1.147 GB, free: 14.84 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001535/1.125, allocations: 0.6383 MB / 1.148 GB, free: 14.19 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/1.125, allocations: 0 / 1.148 GB, free: 14.19 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005587/1.126, allocations: 250.1 kB / 1.148 GB, free: 13.93 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/1.126, allocations: 24.55 kB / 1.148 GB, free: 13.91 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/1.128, allocations: 424 kB / 1.148 GB, free: 13.45 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000626/1.128, allocations: 0.795 MB / 1.149 GB, free: 12.63 MB / 0.7605 GB Notification: Performance of SimCode: time 7.71e-07/1.128, allocations: 0 / 1.149 GB, free: 12.63 MB / 0.7605 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)