Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.001256/0.001256, allocations: 111.6 kB / 16.62 MB, free: 6.812 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.001408/0.001408, allocations: 189.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1638/0.1638, allocations: 38.03 MB / 329.4 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 63.11 kB / 398.4 MB, free: 34.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09364/0.09552, allocations: 58.05 MB / 456.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007186/0.1027, allocations: 7.806 MB / 464.2 MB, free: 488 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003036/0.1058, allocations: 2.022 MB / 466.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005985/0.1064, allocations: 51.62 kB / 466.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004435/0.1069, allocations: 139.1 kB / 466.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008494/0.1077, allocations: 402.3 kB / 466.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005914/0.1083, allocations: 311.7 kB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.1097, allocations: 1.512 MB / 468.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.1101, allocations: 393.8 kB / 469 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008013/0.1109, allocations: 0.6112 MB / 469.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008605/0.1118, allocations: 0.6777 MB / 470.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.112, allocations: 99.94 kB / 470.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.1122, allocations: 100 kB / 470.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000383/0.1126, allocations: 419.1 kB / 470.9 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005007/0.1131, allocations: 470 kB / 471.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008815/0.114, allocations: 1.176 MB / 472.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.114, allocations: 4 kB / 472.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.114, allocations: 4 kB / 472.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.084e-05/0.1141, allocations: 0 / 472.6 MB, free: 8.113 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002518/0.1166, allocations: 1.301 MB / 473.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.1166, allocations: 15.89 kB / 473.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001443/0.1168, allocations: 122.7 kB / 474 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.117, allocations: 95.91 kB / 474.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.1181, allocations: 0.7015 MB / 474.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000365/0.1185, allocations: 342.8 kB / 475.1 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.1186, allocations: 67.98 kB / 475.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002095/0.1207, allocations: 1.141 MB / 476.4 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1207, allocations: 3.938 kB / 476.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.691e-05/0.1208, allocations: 28 kB / 476.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.1209, allocations: 37.28 kB / 476.4 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0025/0.1234, allocations: 1.18 MB / 477.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004722/0.1282, allocations: 3.488 MB / 481.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/0.1304, allocations: 0.9612 MB / 482.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.1319, allocations: 0.6865 MB / 482.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.222e-05/0.132, allocations: 12.55 kB / 482.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001391/0.1334, allocations: 0.6849 MB / 483.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.164e-06/0.1334, allocations: 0 / 483.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01705/0.1504, allocations: 5.663 MB / 489.1 MB, free: 7.156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.1505, allocations: 89.67 kB / 489.2 MB, free: 7.047 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004349/0.1509, allocations: 473.8 kB / 489.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.202e-05/0.151, allocations: 41.7 kB / 489.7 MB, free: 6.527 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.1512, allocations: 324.2 kB / 490 MB, free: 6.207 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1514, allocations: 201.1 kB / 490.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.1516, allocations: 130.3 kB / 490.3 MB, free: 5.875 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1517, allocations: 370.8 kB / 490.7 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.1527, allocations: 0.5051 MB / 491.2 MB, free: 5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.1537, allocations: 0.6297 MB / 491.8 MB, free: 4.328 MB / 366.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.006095/0.1599, allocations: 3.141 MB / 495 MB, free: 1.109 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1599, allocations: 0 / 495 MB, free: 1.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006659/0.1665, allocations: 2.486 MB / 497.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.1666, allocations: 53.69 kB / 497.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1666, allocations: 7.938 kB / 497.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0023/0.1689, allocations: 1.101 MB / 498.6 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004715/0.1694, allocations: 103.9 kB / 498.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/0.1839, allocations: 6.867 MB / 0.4937 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007545/0.1847, allocations: 79.95 kB / 0.4938 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.1848, allocations: 47.97 kB / 0.4939 GB, free: 6.199 MB / 382.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: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004398/0.1853, allocations: 282.5 kB / 0.4941 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.1854, allocations: 55.34 kB / 0.4942 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00714/0.1925, allocations: 2.44 MB / 0.4966 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.1926, allocations: 11.94 kB / 0.4966 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1926, allocations: 0 / 0.4966 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1926, allocations: 0 / 0.4966 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1556/0.3482, allocations: 3.558 MB / 0.5 GB, free: 56.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.3482, allocations: 1.781 kB / 0.5 GB, free: 56.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004171/0.3487, allocations: 78.12 kB / 0.5001 GB, free: 56.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/0.351, allocations: 1.09 MB / 0.5012 GB, free: 56.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.3512, allocations: 20.2 kB / 0.5012 GB, free: 56.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.3647, allocations: 6.834 MB / 0.5079 GB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3647, allocations: 7.219 kB / 0.5079 GB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00848/0.3732, allocations: 3.206 MB / 0.511 GB, free: 53.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002957/0.3735, allocations: 220.8 kB / 0.5112 GB, free: 53.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.3737, allocations: 29.45 kB / 0.5113 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006513/0.3743, allocations: 96.3 kB / 0.5113 GB, free: 53.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003327/0.3747, allocations: 176.3 kB / 0.5115 GB, free: 53.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.424e-05/0.3747, allocations: 25.16 kB / 0.5115 GB, free: 53.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002943/0.375, allocations: 322 kB / 0.5118 GB, free: 53.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.375, allocations: 0 / 0.5118 GB, free: 53.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007374/0.3758, allocations: 225.7 kB / 0.5121 GB, free: 53.12 MB / 382.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: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008131/0.3839, allocations: 3.78 MB / 0.5158 GB, free: 51.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004002/0.3879, allocations: 1.837 MB / 0.5175 GB, free: 51.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3879, allocations: 0 / 0.5175 GB, free: 51.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.3905, allocations: 1.113 MB / 0.5186 GB, free: 50.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007775/0.3913, allocations: 153.2 kB / 0.5188 GB, free: 50.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01726/0.4086, allocations: 10.21 MB / 0.5288 GB, free: 42.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.4089, allocations: 0.9968 MB / 0.5297 GB, free: 41.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003343/0.4093, allocations: 127.2 kB / 0.5299 GB, free: 41.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.4095, allocations: 227.4 kB / 0.5301 GB, free: 41.6 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4095, allocations: 0 / 0.5301 GB, free: 41.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.425/1.834, allocations: 22 MB / 0.5516 GB, free: 19.83 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/1.834, allocations: 241.7 kB / 0.5518 GB, free: 19.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.659/4.493, allocations: 3.75 kB / 0.5518 GB, free: 19.57 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)