Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 166 kB / 16.07 MB, free: 5.598 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.186/1.186, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0007272/0.0007272, allocations: 84.92 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.1723/0.1723, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003267, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2243, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006502/0.2308, allocations: 6.987 MB / 486.6 MB, free: 4.523 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003271/0.2341, allocations: 1.997 MB / 488.6 MB, free: 3.113 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009031/0.235, allocations: 52.81 kB / 488.7 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006918/0.2357, allocations: 169.3 kB / 488.8 MB, free: 3.004 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.2372, allocations: 492.9 kB / 489.3 MB, free: 2.742 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.2382, allocations: 328.6 kB / 489.6 MB, free: 2.598 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001973/0.2402, allocations: 1.622 MB / 491.2 MB, free: 2.004 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005125/0.2408, allocations: 336 kB / 491.6 MB, free: 1.875 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009893/0.2418, allocations: 0.4886 MB / 492.1 MB, free: 1.699 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.2429, allocations: 0.6194 MB / 492.7 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.2432, allocations: 42.53 kB / 492.7 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002648/0.2434, allocations: 42.94 kB / 492.8 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004762/0.2439, allocations: 362.2 kB / 493.1 MB, free: 1.41 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007088/0.2446, allocations: 411.2 kB / 493.5 MB, free: 1.184 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.2457, allocations: 0.9024 MB / 494.4 MB, free: 1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2457, allocations: 5.344 kB / 494.4 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2457, allocations: 0 / 494.4 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.902e-05/0.2458, allocations: 0 / 494.4 MB, free: 0.9961 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002854/0.2487, allocations: 1.169 MB / 495.6 MB, free: 276 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2487, allocations: 9.562 kB / 495.6 MB, free: 276 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003613/0.2491, allocations: 91.84 kB / 495.7 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.2506, allocations: 0.7003 MB / 496.4 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005242/0.2512, allocations: 359.8 kB / 496.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001987/0.2514, allocations: 69.75 kB / 496.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002706/0.2541, allocations: 1.194 MB / 498 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.2541, allocations: 0.9062 kB / 498 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.565e-05/0.2542, allocations: 30.23 kB / 498 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.2543, allocations: 39.25 kB / 498.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003012/0.2574, allocations: 1.28 MB / 499.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005844/0.2632, allocations: 3.557 MB / 0.4911 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/0.2658, allocations: 1.053 MB / 0.4922 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001746/0.2676, allocations: 0.7346 MB / 0.4929 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.947e-05/0.2677, allocations: 6.594 kB / 0.4929 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001614/0.2693, allocations: 0.7537 MB / 0.4936 GB, free: 10.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 3.006e-06/0.2693, allocations: 1.25 kB / 0.4936 GB, free: 10.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.0197/0.289, allocations: 6.975 MB / 0.5004 GB, free: 5.184 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.2891, allocations: 93.61 kB / 0.5005 GB, free: 5.074 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005649/0.2897, allocations: 465.8 kB / 0.501 GB, free: 4.609 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.723e-05/0.2897, allocations: 41.7 kB / 0.501 GB, free: 4.562 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002466/0.29, allocations: 324.2 kB / 0.5013 GB, free: 4.238 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.2902, allocations: 209.1 kB / 0.5015 GB, free: 4.031 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.2903, allocations: 12 kB / 0.5015 GB, free: 4.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2904, allocations: 370.8 kB / 0.5019 GB, free: 3.648 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.2916, allocations: 0.5559 MB / 0.5024 GB, free: 3.094 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.2928, allocations: 0.6727 MB / 0.5031 GB, free: 2.379 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006908/0.2997, allocations: 3.373 MB / 0.5064 GB, free: 14.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.2997, allocations: 0 / 0.5064 GB, free: 14.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007591/0.3073, allocations: 3.053 MB / 0.5094 GB, free: 11.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.584e-05/0.3074, allocations: 53.69 kB / 0.5094 GB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3074, allocations: 4 kB / 0.5094 GB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002401/0.3098, allocations: 1.183 MB / 0.5106 GB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.3102, allocations: 111.8 kB / 0.5107 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/0.3251, allocations: 7.148 MB / 0.5176 GB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007929/0.3259, allocations: 116 kB / 0.5178 GB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.326, allocations: 43.92 kB / 0.5178 GB, free: 3.059 MB / 346.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[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[4],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * 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 (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: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005414/0.3266, allocations: 287.4 kB / 0.5181 GB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3267, allocations: 59.25 kB / 0.5181 GB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008123/0.3349, allocations: 3.003 MB / 0.5211 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.3349, allocations: 8 kB / 0.5211 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3349, allocations: 3.938 kB / 0.5211 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.3349, allocations: 3.984 kB / 0.5211 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00996/0.3449, allocations: 4.134 MB / 0.5251 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.345, allocations: 4 kB / 0.5251 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.3454, allocations: 83.83 kB / 0.5252 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002468/0.3478, allocations: 1.199 MB / 0.5264 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.348, allocations: 23.98 kB / 0.5264 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/0.3629, allocations: 7.108 MB / 0.5333 GB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.363, allocations: 0 / 0.5333 GB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00971/0.3727, allocations: 3.84 MB / 0.5371 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003927/0.3731, allocations: 220.3 kB / 0.5373 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.3733, allocations: 27.98 kB / 0.5373 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007733/0.374, allocations: 132 kB / 0.5374 GB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/0.3744, allocations: 172.2 kB / 0.5376 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.034e-05/0.3745, allocations: 23.98 kB / 0.5376 GB, free: 14.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004076/0.3749, allocations: 318.9 kB / 0.5379 GB, free: 14.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3749, allocations: 0 / 0.5379 GB, free: 14.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008669/0.3758, allocations: 232 kB / 0.5382 GB, free: 13.9 MB / 378.7 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 (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: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.000192/0.376, allocations: 135 kB / 0.5383 GB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004543/0.3806, allocations: 1.934 MB / 0.5402 GB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3806, allocations: 0 / 0.5402 GB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003221/0.3838, allocations: 1.283 MB / 0.5414 GB, free: 10.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000953/0.3848, allocations: 150.4 kB / 0.5416 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/0.3879, allocations: 2.061 MB / 0.5436 GB, free: 8.246 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005893/0.3885, allocations: 1.005 MB / 0.5446 GB, free: 7.211 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3887, allocations: 43.44 kB / 0.5446 GB, free: 7.172 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3887, allocations: 0 / 0.5446 GB, free: 7.172 MB / 378.7 MB Notification: Performance of Templates: time 0.01705/0.4057, allocations: 13.36 MB / 0.5577 GB, free: 9.797 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)