Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001848/0.001848, allocations: 182.4 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.2 MB / 213.7 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008548/0.0008547, allocations: 96.56 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1653/0.1653, allocations: 37.97 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1991/0.3644, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.4666, allocations: 56.32 MB / 466.4 MB, free: 6.375 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3313/0.7979, allocations: 110.3 MB / 0.5632 GB, free: 120 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.7982, allocations: 93.17 kB / 0.5633 GB, free: 28 kB / 394.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.0684/0.8667, allocations: 22.27 MB / 0.5851 GB, free: 9.457 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.8667, allocations: 12 kB / 0.5851 GB, free: 9.445 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/0.8678, allocations: 126.9 kB / 0.5852 GB, free: 9.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004309/0.8722, allocations: 1.144 MB / 0.5863 GB, free: 8.137 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.326e-05/0.8723, allocations: 20 kB / 0.5864 GB, free: 8.117 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003601/0.8726, allocations: 44 kB / 0.5864 GB, free: 8.074 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001941/0.8746, allocations: 0.7607 MB / 0.5871 GB, free: 7.312 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.8764, allocations: 0.9144 MB / 0.588 GB, free: 6.355 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.8764, allocations: 3.938 kB / 0.588 GB, free: 6.352 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-05/0.8765, allocations: 0 / 0.588 GB, free: 6.352 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001661/0.8767, allocations: 69.17 kB / 0.5881 GB, free: 6.285 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006056/0.8827, allocations: 3.132 MB / 0.5912 GB, free: 3.051 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.8839, allocations: 0.69 MB / 0.5918 GB, free: 2.344 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007299/0.8847, allocations: 467.5 kB / 0.5923 GB, free: 1.883 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.529e-05/0.8848, allocations: 14.34 kB / 0.5923 GB, free: 1.871 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.8848, allocations: 47.06 kB / 0.5923 GB, free: 1.812 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 4.038e-06/0.8848, allocations: 0 / 0.5923 GB, free: 1.812 MB / 426.7 MB Notification: Performance of matching and sorting (n=79): time 0.005116/0.89, allocations: 2.468 MB / 0.5947 GB, free: 15.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.89, allocations: 85.77 kB / 0.5948 GB, free: 15.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004423/0.8905, allocations: 325 kB / 0.5951 GB, free: 14.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.8905, allocations: 25.7 kB / 0.5952 GB, free: 14.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.8907, allocations: 295.8 kB / 0.5954 GB, free: 14.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.8909, allocations: 267.9 kB / 0.5957 GB, free: 14.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/0.891, allocations: 0 / 0.5957 GB, free: 14.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.8912, allocations: 378.8 kB / 0.5961 GB, free: 13.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005537/0.8917, allocations: 369.6 kB / 0.5964 GB, free: 13.51 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006604/0.8924, allocations: 0.5182 MB / 0.5969 GB, free: 12.93 MB / 442.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.009203/0.9016, allocations: 2.382 MB / 0.5992 GB, free: 10.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.9016, allocations: 0 / 0.5992 GB, free: 10.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002347/0.904, allocations: 1.221 MB / 0.6004 GB, free: 9.285 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.904, allocations: 4 kB / 0.6004 GB, free: 9.281 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.904, allocations: 4 kB / 0.6004 GB, free: 9.277 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000161/0.9042, allocations: 41.41 kB / 0.6005 GB, free: 9.234 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000864/0.9051, allocations: 191.7 kB / 0.6007 GB, free: 9.047 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.9063, allocations: 1.315 MB / 0.602 GB, free: 7.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005496/0.9068, allocations: 20.02 kB / 0.602 GB, free: 7.594 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.807e-05/0.9069, allocations: 32 kB / 0.602 GB, free: 7.562 MB / 442.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.0001834/0.9071, allocations: 122.4 kB / 0.6021 GB, free: 7.438 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.9072, allocations: 55.25 kB / 0.6022 GB, free: 7.383 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.9093, allocations: 1.16 MB / 0.6033 GB, free: 6.188 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.661e-05/0.9094, allocations: 19.98 kB / 0.6033 GB, free: 6.168 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.9094, allocations: 0 / 0.6033 GB, free: 6.168 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.9094, allocations: 7.984 kB / 0.6033 GB, free: 6.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00392/0.9133, allocations: 2.076 MB / 0.6054 GB, free: 3.961 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.9134, allocations: 4 kB / 0.6054 GB, free: 3.957 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007835/0.9141, allocations: 155.8 kB / 0.6055 GB, free: 3.805 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.9143, allocations: 37.31 kB / 0.6055 GB, free: 3.766 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.403e-05/0.9144, allocations: 23.98 kB / 0.6056 GB, free: 3.742 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.9154, allocations: 1.303 MB / 0.6068 GB, free: 2.324 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.9154, allocations: 11.88 kB / 0.6069 GB, free: 2.312 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00251/0.9179, allocations: 1.938 MB / 0.6087 GB, free: 164 kB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003219/0.9212, allocations: 2.808 MB / 0.6115 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.9214, allocations: 136.3 kB / 0.6116 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.9215, allocations: 11.98 kB / 0.6116 GB, free: 12.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.9219, allocations: 15.98 kB / 0.6116 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.936e-05/0.922, allocations: 60.28 kB / 0.6117 GB, free: 12.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.596e-05/0.9221, allocations: 27.98 kB / 0.6117 GB, free: 12.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003437/0.9225, allocations: 247.2 kB / 0.612 GB, free: 12.63 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001465/0.9239, allocations: 183.9 kB / 0.6121 GB, free: 12.45 MB / 458.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.0003471/0.9243, allocations: 162.9 kB / 0.6123 GB, free: 12.28 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001723/0.926, allocations: 0.9822 MB / 0.6133 GB, free: 11.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.926, allocations: 0 / 0.6133 GB, free: 11.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008303/0.9269, allocations: 0.5504 MB / 0.6138 GB, free: 10.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007086/0.9276, allocations: 98.97 kB / 0.6139 GB, free: 10.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003416/0.931, allocations: 1.675 MB / 0.6155 GB, free: 8.871 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/0.9322, allocations: 1.106 MB / 0.6166 GB, free: 7.742 MB / 458.7 MB Notification: Performance of SimCode: time 8.52e-07/0.9323, allocations: 0 / 0.6166 GB, free: 7.742 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)