Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 108.1 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.1 MB / 223.3 MB, free: 12.4 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1929/0.1929, allocations: 37.98 MB / 308.6 MB, free: 6.234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.91 kB / 374.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2499, allocations: 55.24 MB / 430 MB, free: 19.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005916/0.2559, allocations: 7.345 MB / 437.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.2584, allocations: 1.832 MB / 439.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004501/0.2589, allocations: 47.69 kB / 439.2 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004643/0.2594, allocations: 119.2 kB / 439.3 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006334/0.26, allocations: 362.4 kB / 439.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003884/0.2604, allocations: 163.8 kB / 439.8 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007373/0.2612, allocations: 1.383 MB / 441.2 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002619/0.2614, allocations: 237.4 kB / 441.4 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003411/0.2618, allocations: 350.3 kB / 441.8 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004744/0.2623, allocations: 494.3 kB / 442.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.254e-05/0.2623, allocations: 36 kB / 442.3 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.362e-05/0.2625, allocations: 32 kB / 442.3 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.2626, allocations: 243.3 kB / 442.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.2629, allocations: 306.4 kB / 442.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003751/0.2632, allocations: 0.6462 MB / 443.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2632, allocations: 0 / 443.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2633, allocations: 0 / 443.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.2633, allocations: 0 / 443.5 MB, free: 6.27 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001372/0.2647, allocations: 0.9563 MB / 444.5 MB, free: 5.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.2647, allocations: 8.031 kB / 444.5 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.2648, allocations: 90.7 kB / 444.6 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.236e-05/0.2649, allocations: 72.09 kB / 444.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/0.2656, allocations: 0.5258 MB / 445.2 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.2657, allocations: 40.94 kB / 445.2 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.453e-05/0.2657, allocations: 48 kB / 445.2 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007186/0.2665, allocations: 0.621 MB / 445.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2665, allocations: 0 / 445.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.055e-05/0.2665, allocations: 20 kB / 445.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-05/0.2666, allocations: 36.97 kB / 445.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006371/0.2673, allocations: 0.5074 MB / 446.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.2698, allocations: 2.237 MB / 448.7 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006951/0.2705, allocations: 0.4897 MB / 449.2 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005153/0.271, allocations: 341.6 kB / 449.5 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.271, allocations: 11.92 kB / 449.5 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.228e-05/0.2711, allocations: 42.5 kB / 449.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.843e-06/0.2711, allocations: 0 / 449.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=47): time 0.003276/0.2744, allocations: 1.75 MB / 451.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.2745, allocations: 81.11 kB / 451.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004529/0.2749, allocations: 417.8 kB / 451.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.275, allocations: 37.7 kB / 451.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.2752, allocations: 296.5 kB / 452.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.2754, allocations: 169.7 kB / 452.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.2755, allocations: 90.16 kB / 452.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.2757, allocations: 366.8 kB / 452.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.276, allocations: 185 kB / 452.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.2764, allocations: 311.6 kB / 453.2 MB, free: 12.13 MB / 334.1 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/0.279, allocations: 1.226 MB / 454.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.279, allocations: 8 kB / 454.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001169/0.2802, allocations: 0.7147 MB / 455.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.2802, allocations: 7.984 kB / 455.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.2802, allocations: 4 kB / 455.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003802/0.2806, allocations: 136.8 kB / 455.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.2811, allocations: 107.8 kB / 455.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002683/0.2838, allocations: 2.377 MB / 457.8 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.2841, allocations: 28.02 kB / 457.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.962e-05/0.2841, allocations: 20.11 kB / 457.8 MB, free: 7.297 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003102/0.2845, allocations: 233.6 kB / 458.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.222e-05/0.2846, allocations: 51.34 kB / 458.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.2856, allocations: 0.6542 MB / 458.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.2856, allocations: 8 kB / 458.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2857, allocations: 0 / 458.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.2857, allocations: 7.984 kB / 458.8 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.2877, allocations: 1.373 MB / 460.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2877, allocations: 4.156 kB / 460.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.2881, allocations: 71.89 kB / 460.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004054/0.2885, allocations: 148.7 kB / 460.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.535e-05/0.2885, allocations: 8 kB / 460.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002601/0.2911, allocations: 2.377 MB / 462.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.2911, allocations: 8.078 kB / 462.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.2926, allocations: 0.9931 MB / 463.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.2927, allocations: 120.5 kB / 463.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.039e-05/0.2928, allocations: 12 kB / 463.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.2931, allocations: 16.03 kB / 463.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.2932, allocations: 47.88 kB / 463.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.2932, allocations: 12 kB / 464 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003444/0.2936, allocations: 295.1 kB / 464.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2936, allocations: 0 / 464.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006356/0.2942, allocations: 144 kB / 464.4 MB, free: 448 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001708/0.2959, allocations: 1.541 MB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.2971, allocations: 0.6566 MB / 466.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2971, allocations: 4.125 kB / 466.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006329/0.2977, allocations: 434.2 kB / 467 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007349/0.2985, allocations: 134.4 kB / 467.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006907/0.3054, allocations: 5.379 MB / 472.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000522/0.3059, allocations: 0.9292 MB / 473.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003545/0.3063, allocations: 104.7 kB / 473.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.3066, allocations: 195.4 kB / 473.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3066, allocations: 0 / 473.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.3346, allocations: 11.34 MB / 485.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002358/0.3349, allocations: 235.3 kB / 485.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.302, allocations: 0 / 485.3 MB, free: 11.16 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)