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 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.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.001079/0.001079, allocations: 106.2 kB / 17.06 MB, free: 6.145 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.001132/0.001132, allocations: 195 kB / 18 MB, free: 5.219 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.413/1.413, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1745/0.1745, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.001426/0.001426, allocations: 63.91 kB / 431.4 MB, free: 16.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09725, allocations: 55.25 MB / 486.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.01013/0.1074, allocations: 6.551 MB / 493.2 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004331/0.1118, allocations: 1.692 MB / 494.9 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005671/0.1124, allocations: 31.81 kB / 494.9 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007249/0.1131, allocations: 166.7 kB / 495 MB, free: 500 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.1147, allocations: 433.9 kB / 495.5 MB, free: 64 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.116, allocations: 351.4 kB / 495.8 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002595/0.1186, allocations: 1.508 MB / 497.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007533/0.1194, allocations: 405.7 kB / 497.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.1208, allocations: 0.6035 MB / 498.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001602/0.1224, allocations: 0.662 MB / 499 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003138/0.1228, allocations: 96 kB / 499.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003285/0.1231, allocations: 100 kB / 499.2 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006358/0.1238, allocations: 419 kB / 499.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008446/0.1246, allocations: 466 kB / 0.4883 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001943/0.1266, allocations: 1.176 MB / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1266, allocations: 0 / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1266, allocations: 0 / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.856e-05/0.1267, allocations: 0 / 0.4895 GB, free: 10.3 MB / 382.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.004308/0.131, allocations: 1.321 MB / 0.4908 GB, free: 8.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1311, allocations: 11.89 kB / 0.4908 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002671/0.1313, allocations: 118.7 kB / 0.4909 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002838/0.1316, allocations: 92 kB / 0.491 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.1338, allocations: 0.7327 MB / 0.4917 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007094/0.1345, allocations: 346.8 kB / 0.492 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000206/0.1348, allocations: 64 kB / 0.4921 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.1373, allocations: 1.145 MB / 0.4932 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.1373, allocations: 3.938 kB / 0.4932 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.626e-05/0.1374, allocations: 24 kB / 0.4932 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.1375, allocations: 45.28 kB / 0.4933 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.1404, allocations: 1.176 MB / 0.4944 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005715/0.1462, allocations: 3.476 MB / 0.4978 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002598/0.1488, allocations: 0.9604 MB / 0.4987 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00177/0.1506, allocations: 0.6864 MB / 0.4994 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.437e-05/0.1506, allocations: 12.56 kB / 0.4994 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001661/0.1523, allocations: 0.6811 MB / 0.5001 GB, free: 15.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 3.807e-06/0.1523, allocations: 0 / 0.5001 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02107/0.1734, allocations: 5.663 MB / 0.5056 GB, free: 9.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.967e-05/0.1735, allocations: 97.66 kB / 0.5057 GB, free: 9.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006022/0.1741, allocations: 465.9 kB / 0.5062 GB, free: 8.742 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.413e-05/0.1742, allocations: 41.7 kB / 0.5062 GB, free: 8.695 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.1745, allocations: 324.1 kB / 0.5065 GB, free: 8.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.1747, allocations: 205.2 kB / 0.5067 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.175, allocations: 134.2 kB / 0.5068 GB, free: 8.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1751, allocations: 374.7 kB / 0.5072 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.1763, allocations: 0.509 MB / 0.5077 GB, free: 7.152 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/0.1775, allocations: 0.6258 MB / 0.5083 GB, free: 6.484 MB / 398.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.007017/0.1845, allocations: 3.123 MB / 0.5113 GB, free: 3.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1845, allocations: 7.938 kB / 0.5114 GB, free: 3.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007905/0.1925, allocations: 2.49 MB / 0.5138 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-05/0.1926, allocations: 49.69 kB / 0.5138 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.1926, allocations: 8.219 kB / 0.5138 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/0.195, allocations: 1.086 MB / 0.5149 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004871/0.1955, allocations: 111.8 kB / 0.515 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01651/0.2121, allocations: 6.865 MB / 0.5217 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008045/0.2129, allocations: 83.89 kB / 0.5218 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.2131, allocations: 35.98 kB / 0.5218 GB, free: 8.371 MB / 414.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.0004589/0.2135, allocations: 283.5 kB / 0.5221 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.2137, allocations: 63.23 kB / 0.5222 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008445/0.2221, allocations: 2.425 MB / 0.5245 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.2221, allocations: 7.938 kB / 0.5245 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.2222, allocations: 4 kB / 0.5245 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.2222, allocations: 7.984 kB / 0.5245 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.2325, allocations: 3.567 MB / 0.528 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.2325, allocations: 4 kB / 0.528 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.2329, allocations: 79.89 kB / 0.5281 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002545/0.2355, allocations: 1.094 MB / 0.5292 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.2356, allocations: 19.98 kB / 0.5292 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.214/0.4496, allocations: 6.819 MB / 0.5359 GB, free: 51.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.4496, allocations: 2.906 kB / 0.5359 GB, free: 51.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.4598, allocations: 3.208 MB / 0.539 GB, free: 50.47 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004505/0.4603, allocations: 222.7 kB / 0.5392 GB, free: 50.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.4605, allocations: 27.72 kB / 0.5392 GB, free: 50.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000804/0.4613, allocations: 95.36 kB / 0.5393 GB, free: 50.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004639/0.4617, allocations: 174.7 kB / 0.5395 GB, free: 50.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.088e-05/0.4618, allocations: 25.83 kB / 0.5395 GB, free: 50.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004359/0.4623, allocations: 322.9 kB / 0.5398 GB, free: 50.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4623, allocations: 0 / 0.5398 GB, free: 50.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001007/0.4633, allocations: 223.2 kB / 0.54 GB, free: 50.12 MB / 414.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.01012/0.4734, allocations: 3.772 MB / 0.5437 GB, free: 48.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004397/0.4778, allocations: 1.734 MB / 0.5454 GB, free: 48.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.4779, allocations: 0 / 0.5454 GB, free: 48.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003108/0.481, allocations: 1.112 MB / 0.5465 GB, free: 47.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008754/0.4819, allocations: 163.3 kB / 0.5467 GB, free: 47.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/0.5022, allocations: 9.847 MB / 0.5563 GB, free: 41.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.5026, allocations: 0.9929 MB / 0.5572 GB, free: 40.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003595/0.503, allocations: 125.1 kB / 0.5574 GB, free: 40.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/0.5033, allocations: 235.4 kB / 0.5576 GB, free: 40.43 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5033, allocations: 0 / 0.5576 GB, free: 40.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06472/0.568, allocations: 23.24 MB / 0.5803 GB, free: 17.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.28, allocations: 8 kB / 0.5803 GB, free: 17.13 MB / 414.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)