Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 112.8 kB / 17.69 MB, free: 5.309 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.001152/0.001152, allocations: 188 kB / 18.63 MB, free: 4.379 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.412/1.412, allocations: 205.1 MB / 224.5 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1729/0.1729, allocations: 37.98 MB / 309.8 MB, free: 5.977 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.001476/0.001476, allocations: 71.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2111, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.005824/0.217, allocations: 6.478 MB / 438.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.2189, allocations: 1.364 MB / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002641/0.2192, allocations: 27.81 kB / 439.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.2195, allocations: 122.9 kB / 440 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007736/0.2203, allocations: 421.9 kB / 440.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.2207, allocations: 239.6 kB / 440.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007815/0.2215, allocations: 1.122 MB / 441.8 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.2219, allocations: 401.8 kB / 442.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004559/0.2224, allocations: 498.1 kB / 442.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000573/0.223, allocations: 0.5294 MB / 443.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.736e-05/0.2231, allocations: 64 kB / 443.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.874e-05/0.2232, allocations: 64 kB / 443.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002633/0.2234, allocations: 335.2 kB / 443.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002872/0.2237, allocations: 402.1 kB / 444 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005882/0.2243, allocations: 0.911 MB / 445 MB, free: 6.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2243, allocations: 4 kB / 445 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.2243, allocations: 0 / 445 MB, free: 6.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.2244, allocations: 3.938 kB / 445 MB, free: 6.52 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001632/0.226, allocations: 1.152 MB / 446.1 MB, free: 5.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.226, allocations: 11.89 kB / 446.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.2262, allocations: 87.91 kB / 446.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008526/0.227, allocations: 0.6118 MB / 446.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.24e-05/0.2271, allocations: 116.8 kB / 446.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.051e-05/0.2272, allocations: 64 kB / 447 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.2284, allocations: 0.8652 MB / 447.9 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.2285, allocations: 4 kB / 447.9 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.809e-05/0.2285, allocations: 24 kB / 447.9 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.699e-05/0.2286, allocations: 37.28 kB / 447.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009636/0.2296, allocations: 0.6256 MB / 448.6 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.2327, allocations: 2.747 MB / 451.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.2344, allocations: 0.9004 MB / 452.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00076/0.2351, allocations: 318.2 kB / 452.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.2352, allocations: 4.328 kB / 452.5 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007466/0.2359, allocations: 358.5 kB / 452.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.094e-06/0.2359, allocations: 0 / 452.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.00396/0.2399, allocations: 1.967 MB / 454.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.24, allocations: 118.9 kB / 455 MB, free: 12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/0.2406, allocations: 0.5143 MB / 455.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.2406, allocations: 41.7 kB / 455.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003155/0.2409, allocations: 351.9 kB / 455.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.2411, allocations: 142 kB / 456 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.2412, allocations: 118.1 kB / 456.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.2414, allocations: 370.8 kB / 456.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/0.2417, allocations: 225.1 kB / 456.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.2422, allocations: 394.2 kB / 457.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007696/0.243, allocations: 0.6211 MB / 457.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.243, allocations: 0 / 457.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001301/0.2443, allocations: 0.8901 MB / 458.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.172e-05/0.2444, allocations: 49.69 kB / 458.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.2444, allocations: 4 kB / 458.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002835/0.2447, allocations: 98 kB / 458.7 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003939/0.2451, allocations: 107.8 kB / 458.8 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003074/0.2482, allocations: 3.259 MB / 462.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.2487, allocations: 35.97 kB / 462.1 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.868e-05/0.2488, allocations: 40.08 kB / 462.2 MB, free: 4.273 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000446/0.2493, allocations: 278.6 kB / 462.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.218e-05/0.2494, allocations: 55.34 kB / 462.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/0.2508, allocations: 0.7119 MB / 463.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.2509, allocations: 12 kB / 463.2 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2509, allocations: 0 / 463.2 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.2509, allocations: 3.984 kB / 463.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.2532, allocations: 1.536 MB / 464.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2532, allocations: 0 / 464.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.2535, allocations: 63.91 kB / 464.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000261/0.2538, allocations: 93.69 kB / 464.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.2538, allocations: 19.97 kB / 464.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002317/0.2562, allocations: 3.251 MB / 468.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2562, allocations: 0 / 468.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.258, allocations: 1.072 MB / 469.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.2583, allocations: 168.4 kB / 469.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.181e-05/0.2584, allocations: 27.98 kB / 469.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003603/0.2587, allocations: 39.95 kB / 469.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-05/0.2588, allocations: 35.83 kB / 469.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/0.2589, allocations: 19.98 kB / 469.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003773/0.2593, allocations: 354.8 kB / 469.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2593, allocations: 0 / 469.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006864/0.26, allocations: 156 kB / 470 MB, free: 11.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001612/0.2602, allocations: 119.8 kB / 470.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.2616, allocations: 0.9102 MB / 471.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2616, allocations: 0 / 471.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008471/0.2625, allocations: 0.497 MB / 471.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007358/0.2632, allocations: 153.5 kB / 471.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.2656, allocations: 1.485 MB / 473.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.2662, allocations: 0.9721 MB / 474.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002711/0.2665, allocations: 109 kB / 474.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2666, allocations: 47.42 kB / 474.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2666, allocations: 0 / 474.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of Templates: time 0.01241/0.2791, allocations: 7.437 MB / 481.8 MB, free: 88 kB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)