Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",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/Complex 3.2.2+maint.om/package.mo): time 0.001032/0.001032, allocations: 181.8 kB / 8.134 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9929/0.9929, allocations: 194.2 MB / 202.8 MB, free: 8.656 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001674/0.001674, allocations: 121.4 kB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1549/0.1549, allocations: 37.93 MB / 330.6 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1837/0.3387, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0768/0.4155, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2619/0.6774, allocations: 105.3 MB / 0.5356 GB, free: 2.035 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.6776, allocations: 91.06 kB / 0.5357 GB, free: 1.992 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.06196/0.7396, allocations: 22.27 MB / 0.5574 GB, free: 15.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.7397, allocations: 12 kB / 0.5574 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008308/0.7405, allocations: 130.8 kB / 0.5576 GB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003158/0.7437, allocations: 1.133 MB / 0.5587 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.7437, allocations: 23.98 kB / 0.5587 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.7439, allocations: 50.64 kB / 0.5587 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001151/0.745, allocations: 0.7649 MB / 0.5595 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.7463, allocations: 0.9089 MB / 0.5604 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.7463, allocations: 0 / 0.5604 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.528e-05/0.7464, allocations: 4 kB / 0.5604 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001275/0.7465, allocations: 61.14 kB / 0.5604 GB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004779/0.7513, allocations: 3.135 MB / 0.5635 GB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.7524, allocations: 0.6997 MB / 0.5642 GB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00057/0.753, allocations: 459.6 kB / 0.5646 GB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.753, allocations: 9.594 kB / 0.5646 GB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.7531, allocations: 39.16 kB / 0.5647 GB, free: 8.969 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 3.006e-06/0.7531, allocations: 3.938 kB / 0.5647 GB, free: 8.965 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.004352/0.7574, allocations: 2.468 MB / 0.5671 GB, free: 6.883 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.7575, allocations: 85.77 kB / 0.5672 GB, free: 6.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.7578, allocations: 328.1 kB / 0.5675 GB, free: 6.523 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.7579, allocations: 25.7 kB / 0.5675 GB, free: 6.492 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.758, allocations: 304.9 kB / 0.5678 GB, free: 6.219 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.7582, allocations: 265.5 kB / 0.5681 GB, free: 5.988 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.7583, allocations: 0 / 0.5681 GB, free: 5.988 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.7584, allocations: 371.8 kB / 0.5684 GB, free: 5.641 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.7589, allocations: 368.9 kB / 0.5688 GB, free: 5.395 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000564/0.7595, allocations: 0.514 MB / 0.5693 GB, free: 4.953 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.008805/0.7683, allocations: 2.38 MB / 0.5716 GB, free: 2.855 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.7683, allocations: 4 kB / 0.5716 GB, free: 2.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001927/0.7703, allocations: 1.222 MB / 0.5728 GB, free: 1.855 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.7703, allocations: 7.906 kB / 0.5728 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.7703, allocations: 11.94 kB / 0.5728 GB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001431/0.7705, allocations: 44.2 kB / 0.5728 GB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008361/0.7713, allocations: 187.3 kB / 0.573 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.7724, allocations: 1.311 MB / 0.5743 GB, free: 256 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004632/0.7729, allocations: 27.86 kB / 0.5743 GB, free: 228 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-05/0.773, allocations: 31.06 kB / 0.5744 GB, free: 204 kB / 378.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: ind.i[3] = ind.i_start[3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * Array equations: 3 * 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.0001571/0.7731, allocations: 124.5 kB / 0.5745 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.7732, allocations: 59.25 kB / 0.5745 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.7752, allocations: 1.158 MB / 0.5757 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.907e-05/0.7753, allocations: 23.36 kB / 0.5757 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.7753, allocations: 0 / 0.5757 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.7753, allocations: 3.984 kB / 0.5757 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003679/0.779, allocations: 2.07 MB / 0.5777 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.779, allocations: 12.5 kB / 0.5777 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007604/0.7798, allocations: 155.2 kB / 0.5779 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001141/0.7799, allocations: 43.58 kB / 0.5779 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.594e-05/0.78, allocations: 8 kB / 0.5779 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.781, allocations: 1.313 MB / 0.5792 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.781, allocations: 8 kB / 0.5792 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0023/0.7833, allocations: 1.942 MB / 0.5811 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003055/0.7864, allocations: 2.807 MB / 0.5838 GB, free: 7.375 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.7865, allocations: 140.3 kB / 0.584 GB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.7867, allocations: 11.91 kB / 0.584 GB, free: 7.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.7871, allocations: 27.91 kB / 0.584 GB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.7872, allocations: 52.28 kB / 0.5841 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.359e-05/0.7872, allocations: 24 kB / 0.5841 GB, free: 7.102 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002648/0.7875, allocations: 247.2 kB / 0.5843 GB, free: 6.859 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001312/0.7888, allocations: 188 kB / 0.5845 GB, free: 6.676 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002907/0.7891, allocations: 147 kB / 0.5846 GB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.7907, allocations: 0.9856 MB / 0.5856 GB, free: 5.531 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.7907, allocations: 0 / 0.5856 GB, free: 5.531 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007761/0.7915, allocations: 0.5595 MB / 0.5862 GB, free: 4.961 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006397/0.7922, allocations: 97.06 kB / 0.5862 GB, free: 4.871 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.7951, allocations: 1.669 MB / 0.5879 GB, free: 3.109 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009164/0.796, allocations: 1.113 MB / 0.589 GB, free: 1.973 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.796, allocations: 0 / 0.589 GB, free: 1.973 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)