Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008518/0.0008519, allocations: 174.5 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.28/1.28, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0008294/0.0008293, allocations: 87.53 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1652/0.1652, allocations: 38.07 MB / 356.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003405, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2669, allocations: 56.33 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006446/0.2734, allocations: 6.931 MB / 486.7 MB, free: 4.551 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003814/0.2773, allocations: 2.183 MB / 488.9 MB, free: 3 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006258/0.2779, allocations: 50.09 kB / 488.9 MB, free: 2.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005294/0.2785, allocations: 169.9 kB / 489.1 MB, free: 2.895 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.2796, allocations: 476.9 kB / 489.5 MB, free: 2.633 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001138/0.2807, allocations: 368.5 kB / 489.9 MB, free: 2.473 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.2823, allocations: 1.201 MB / 491.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.2833, allocations: 0.6947 MB / 491.8 MB, free: 1.609 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000614/0.2839, allocations: 375.4 kB / 492.2 MB, free: 1.465 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000818/0.2848, allocations: 0.5596 MB / 492.7 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.447e-05/0.2849, allocations: 34.38 kB / 492.7 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005871/0.2854, allocations: 257.9 kB / 493 MB, free: 1.227 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003791/0.2858, allocations: 335.8 kB / 493.3 MB, free: 1.137 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003697/0.2862, allocations: 391.1 kB / 493.7 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009345/0.2872, allocations: 0.7501 MB / 494.5 MB, free: 0.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2872, allocations: 1.672 kB / 494.5 MB, free: 0.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2872, allocations: 0 / 494.5 MB, free: 0.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.2872, allocations: 0 / 494.5 MB, free: 0.75 MB / 314.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.001874/0.2891, allocations: 0.9879 MB / 495.5 MB, free: 80 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2891, allocations: 12.91 kB / 495.5 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.2893, allocations: 116.9 kB / 495.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007205/0.29, allocations: 130.2 kB / 495.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.2911, allocations: 0.5703 MB / 496.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.841e-05/0.2911, allocations: 52.25 kB / 496.3 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/0.2913, allocations: 79 kB / 496.4 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.293, allocations: 1.006 MB / 497.4 MB, free: 15.1 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.2931, allocations: 1.562 kB / 497.4 MB, free: 15.1 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.38e-05/0.2931, allocations: 25.81 kB / 497.4 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002157/0.2934, allocations: 76.27 kB / 497.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.295, allocations: 0.9753 MB / 498.5 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00486/0.2999, allocations: 3.282 MB / 0.49 GB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.301, allocations: 0.6718 MB / 0.4907 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006558/0.3017, allocations: 425.6 kB / 0.4911 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.625e-05/0.3017, allocations: 11.42 kB / 0.4911 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.3018, allocations: 38.28 kB / 0.4911 GB, free: 11.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=73): time 3.266e-06/0.3018, allocations: 1.031 kB / 0.4911 GB, free: 11.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=75): time 0.00399/0.3058, allocations: 2.429 MB / 0.4935 GB, free: 10.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.3059, allocations: 92.83 kB / 0.4936 GB, free: 10.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005071/0.3064, allocations: 434.9 kB / 0.494 GB, free: 9.836 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.3064, allocations: 35.42 kB / 0.494 GB, free: 9.797 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.3067, allocations: 363.2 kB / 0.4944 GB, free: 9.473 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.3069, allocations: 256 kB / 0.4946 GB, free: 9.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.425e-05/0.3069, allocations: 15.34 kB / 0.4946 GB, free: 9.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3071, allocations: 379.3 kB / 0.495 GB, free: 8.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/0.3076, allocations: 340.7 kB / 0.4953 GB, free: 8.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000593/0.3082, allocations: 0.5217 MB / 0.4958 GB, free: 8.328 MB / 330.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.005244/0.3134, allocations: 2.229 MB / 0.498 GB, free: 7.051 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3135, allocations: 1.25 kB / 0.498 GB, free: 7.051 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001758/0.3152, allocations: 1.096 MB / 0.4991 GB, free: 6.398 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.3153, allocations: 10.03 kB / 0.4991 GB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.3153, allocations: 4.594 kB / 0.4991 GB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.3155, allocations: 52.77 kB / 0.4991 GB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007516/0.3162, allocations: 183.7 kB / 0.4993 GB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.3174, allocations: 1.397 MB / 0.5007 GB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.3179, allocations: 35.97 kB / 0.5007 GB, free: 4.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.786e-05/0.318, allocations: 32 kB / 0.5007 GB, free: 4.551 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * 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.000472/0.3185, allocations: 273.5 kB / 0.501 GB, free: 4.273 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.3186, allocations: 63.19 kB / 0.5011 GB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.3201, allocations: 0.9662 MB / 0.502 GB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-05/0.3201, allocations: 16 kB / 0.502 GB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3202, allocations: 0 / 0.502 GB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.3202, allocations: 3.984 kB / 0.502 GB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.3234, allocations: 2.013 MB / 0.504 GB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.3235, allocations: 4 kB / 0.504 GB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006609/0.3241, allocations: 151.8 kB / 0.5041 GB, free: 0.9023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001119/0.3243, allocations: 36.78 kB / 0.5042 GB, free: 0.8633 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.479e-05/0.3243, allocations: 27.98 kB / 0.5042 GB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.3254, allocations: 1.394 MB / 0.5056 GB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.3254, allocations: 4 kB / 0.5056 GB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.3274, allocations: 1.525 MB / 0.5071 GB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/0.3277, allocations: 136.2 kB / 0.5072 GB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.582e-05/0.3278, allocations: 28.05 kB / 0.5072 GB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003454/0.3281, allocations: 27.97 kB / 0.5072 GB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.3283, allocations: 64.38 kB / 0.5073 GB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.276e-05/0.3283, allocations: 27.98 kB / 0.5073 GB, free: 13.38 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003364/0.3287, allocations: 295.1 kB / 0.5076 GB, free: 13.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3287, allocations: 0 / 0.5076 GB, free: 13.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008035/0.3295, allocations: 188 kB / 0.5078 GB, free: 12.91 MB / 346.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * 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.002332/0.3318, allocations: 2.116 MB / 0.5099 GB, free: 10.69 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.3334, allocations: 0.9421 MB / 0.5108 GB, free: 9.734 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3334, allocations: 5.438 kB / 0.5108 GB, free: 9.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006904/0.3341, allocations: 0.5258 MB / 0.5113 GB, free: 9.195 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.3353, allocations: 138.6 kB / 0.5114 GB, free: 9.059 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006987/0.3423, allocations: 5.216 MB / 0.5165 GB, free: 3.633 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005903/0.3429, allocations: 1.017 MB / 0.5175 GB, free: 2.586 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004266/0.3433, allocations: 279.3 kB / 0.5178 GB, free: 2.312 MB / 346.7 MB Notification: Performance of SimCode: time 6.52e-07/0.3433, allocations: 0 / 0.5178 GB, free: 2.312 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.381/4.725, allocations: 13.58 MB / 0.531 GB, free: 4.707 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)