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.001198/0.001198, allocations: 105.8 kB / 16.92 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.001101/0.001101, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.342/1.342, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1681/0.1681, allocations: 38.02 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 60.02 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09862, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007208/0.1059, allocations: 6.549 MB / 463.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.1084, allocations: 1.66 MB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002899/0.1087, allocations: 35.81 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004604/0.1092, allocations: 158.7 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007627/0.11, allocations: 433.9 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005399/0.1105, allocations: 351.4 kB / 466.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.1117, allocations: 1.504 MB / 467.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004362/0.1122, allocations: 393.8 kB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006843/0.1129, allocations: 0.5918 MB / 468.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008021/0.1137, allocations: 0.6582 MB / 469.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.1138, allocations: 96 kB / 469.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.114, allocations: 103.9 kB / 469.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003567/0.1144, allocations: 415 kB / 469.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004079/0.1148, allocations: 470 kB / 470.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009349/0.1157, allocations: 1.172 MB / 471.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1158, allocations: 0 / 471.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1158, allocations: 0 / 471.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1158, allocations: 4 kB / 471.5 MB, free: 9.363 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.002468/0.1183, allocations: 1.305 MB / 472.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1183, allocations: 11.89 kB / 472.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/0.1184, allocations: 122.7 kB / 472.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.1186, allocations: 92 kB / 473 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.1198, allocations: 0.6976 MB / 473.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003875/0.1202, allocations: 338.8 kB / 474.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.1203, allocations: 67.98 kB / 474.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002116/0.1225, allocations: 1.138 MB / 475.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.1225, allocations: 0 / 475.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.019e-05/0.1226, allocations: 35.98 kB / 475.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.1227, allocations: 41.22 kB / 475.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002618/0.1253, allocations: 1.176 MB / 476.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004751/0.1301, allocations: 3.492 MB / 480 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.1325, allocations: 0.9539 MB / 481 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/0.1341, allocations: 0.6904 MB / 481.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.377e-05/0.1341, allocations: 8.562 kB / 481.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001468/0.1356, allocations: 0.681 MB / 482.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.434e-06/0.1356, allocations: 0 / 482.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01891/0.1545, allocations: 5.67 MB / 488 MB, free: 8.422 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.1546, allocations: 85.67 kB / 488.1 MB, free: 8.316 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005223/0.1552, allocations: 481.8 kB / 488.6 MB, free: 7.836 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.608e-05/0.1552, allocations: 37.7 kB / 488.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.1555, allocations: 328.2 kB / 488.9 MB, free: 7.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.1556, allocations: 197.2 kB / 489.1 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/0.1559, allocations: 130.2 kB / 489.2 MB, free: 7.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.156, allocations: 374.8 kB / 489.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/0.1571, allocations: 0.509 MB / 490.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.1582, allocations: 0.6335 MB / 490.7 MB, free: 5.586 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.006647/0.1649, allocations: 3.135 MB / 493.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1649, allocations: 0 / 493.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007475/0.1724, allocations: 2.49 MB / 496.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.559e-05/0.1725, allocations: 53.12 kB / 496.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1725, allocations: 4 kB / 496.4 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002402/0.1749, allocations: 1.094 MB / 497.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004851/0.1754, allocations: 107.8 kB / 497.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01578/0.1912, allocations: 6.862 MB / 0.4927 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008114/0.192, allocations: 88.08 kB / 0.4927 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.1922, allocations: 51.91 kB / 0.4928 GB, free: 7.461 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.0004841/0.1927, allocations: 275.4 kB / 0.4931 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.1928, allocations: 59.25 kB / 0.4931 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008041/0.2009, allocations: 2.429 MB / 0.4955 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.2009, allocations: 8 kB / 0.4955 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2009, allocations: 0 / 0.4955 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.2009, allocations: 7.984 kB / 0.4955 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009579/0.2105, allocations: 3.563 MB / 0.499 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/0.2106, allocations: 4 kB / 0.499 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.211, allocations: 75.89 kB / 0.4991 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1801/0.3911, allocations: 1.082 MB / 0.5001 GB, free: 57.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002193/0.3914, allocations: 22 kB / 0.5001 GB, free: 57.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01553/0.4069, allocations: 6.839 MB / 0.5068 GB, free: 55.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.407, allocations: 5.125 kB / 0.5068 GB, free: 55.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009611/0.4166, allocations: 3.196 MB / 0.5099 GB, free: 54.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003784/0.417, allocations: 220.7 kB / 0.5102 GB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.4172, allocations: 33.02 kB / 0.5102 GB, free: 54.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007664/0.4179, allocations: 93.86 kB / 0.5103 GB, free: 54.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004101/0.4184, allocations: 175.5 kB / 0.5104 GB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.557e-05/0.4184, allocations: 22.36 kB / 0.5105 GB, free: 54.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004078/0.4189, allocations: 326.3 kB / 0.5108 GB, free: 54.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4189, allocations: 0.5 kB / 0.5108 GB, free: 54.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000811/0.4197, allocations: 223.8 kB / 0.511 GB, free: 54.02 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.009203/0.4289, allocations: 3.783 MB / 0.5147 GB, free: 52.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004415/0.4333, allocations: 1.835 MB / 0.5165 GB, free: 52.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4333, allocations: 384 / 0.5165 GB, free: 52.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003012/0.4364, allocations: 1.121 MB / 0.5176 GB, free: 51.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008866/0.4373, allocations: 159.5 kB / 0.5177 GB, free: 51.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01983/0.4571, allocations: 9.956 MB / 0.5274 GB, free: 44.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.4576, allocations: 0.9975 MB / 0.5284 GB, free: 43.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005333/0.4581, allocations: 126.4 kB / 0.5285 GB, free: 43.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.4584, allocations: 231.4 kB / 0.5288 GB, free: 43.19 MB / 382.1 MB Notification: Performance of SimCode: time 1.502e-06/0.4584, allocations: 4 kB / 0.5288 GB, free: 43.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.042/0.5004, allocations: 22.48 MB / 0.5507 GB, free: 20.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.27, allocations: 9.531 kB / 0.5507 GB, free: 20.91 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)