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.001124/0.001124, allocations: 95.77 kB / 16.3 MB, free: 6.461 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.0009694/0.0009695, allocations: 183 kB / 17.19 MB, free: 6.34 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.636/1.636, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1725/0.1725, allocations: 38.04 MB / 309.7 MB, free: 6.141 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.0005082/0.0005082, allocations: 20 kB / 376.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2809, allocations: 56.33 MB / 432.8 MB, free: 18.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.004852/0.2858, allocations: 6.757 MB / 439.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.2879, allocations: 1.786 MB / 441.3 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003559/0.2883, allocations: 51.62 kB / 441.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.2885, allocations: 131.1 kB / 441.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007399/0.2893, allocations: 402.7 kB / 441.9 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004294/0.2897, allocations: 263.5 kB / 442.2 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000471/0.2902, allocations: 0.573 MB / 442.8 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.2905, allocations: 296.5 kB / 443 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.2909, allocations: 366.6 kB / 443.4 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003799/0.2913, allocations: 346.8 kB / 443.7 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.342e-05/0.2913, allocations: 28 kB / 443.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.502e-05/0.2914, allocations: 32 kB / 443.8 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.2916, allocations: 271.3 kB / 444.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.2917, allocations: 169.3 kB / 444.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003985/0.2921, allocations: 0.6897 MB / 444.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2921, allocations: 0 / 444.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2921, allocations: 0 / 444.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.2922, allocations: 4 kB / 444.9 MB, free: 6.695 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.00148/0.2936, allocations: 1.02 MB / 445.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2937, allocations: 8.031 kB / 445.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.2938, allocations: 83.06 kB / 446 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000735/0.2946, allocations: 0.56 MB / 446.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.013e-05/0.2946, allocations: 108.7 kB / 446.7 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.314e-05/0.2947, allocations: 75.92 kB / 446.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.2959, allocations: 0.8692 MB / 447.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.2959, allocations: 4 kB / 447.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.504e-05/0.296, allocations: 23.95 kB / 447.7 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.403e-05/0.2961, allocations: 41.28 kB / 447.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009745/0.2971, allocations: 0.6334 MB / 448.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.2998, allocations: 2.77 MB / 451.1 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.3014, allocations: 0.9242 MB / 452 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.3014, allocations: 4.391 kB / 452 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006753/0.3021, allocations: 362.3 kB / 452.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.823e-06/0.3021, allocations: 0 / 452.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.00394/0.3061, allocations: 2.007 MB / 454.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.3061, allocations: 114.7 kB / 454.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005442/0.3067, allocations: 0.5066 MB / 455 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.3067, allocations: 37.7 kB / 455.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.307, allocations: 359.8 kB / 455.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.3071, allocations: 142.1 kB / 455.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-05/0.3071, allocations: 8 kB / 455.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3073, allocations: 374.7 kB / 455.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.3076, allocations: 213.1 kB / 456.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003855/0.308, allocations: 370.2 kB / 456.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003735/0.3084, allocations: 294.4 kB / 456.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3084, allocations: 0 / 456.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0011/0.3095, allocations: 0.8512 MB / 457.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.055e-05/0.3096, allocations: 49.69 kB / 457.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.3096, allocations: 4 kB / 457.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/0.3098, allocations: 73.67 kB / 457.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.3102, allocations: 111.8 kB / 457.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.3126, allocations: 2.907 MB / 460.8 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/0.313, allocations: 44.06 kB / 460.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-05/0.3131, allocations: 43.98 kB / 460.9 MB, free: 5.82 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,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004425/0.3135, allocations: 273.3 kB / 461.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.758e-05/0.3136, allocations: 55.3 kB / 461.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.315, allocations: 0.7082 MB / 461.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3151, allocations: 4 kB / 461.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3151, allocations: 0 / 461.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.3151, allocations: 11.92 kB / 461.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.3174, allocations: 1.532 MB / 463.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3175, allocations: 4.062 kB / 463.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002956/0.3178, allocations: 63.89 kB / 463.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002425/0.318, allocations: 93.47 kB / 463.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.3181, allocations: 15.98 kB / 463.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002055/0.3201, allocations: 2.889 MB / 466.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3201, allocations: 0 / 466.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.3221, allocations: 1.119 MB / 467.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.3224, allocations: 168.4 kB / 467.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.181e-05/0.3225, allocations: 31.98 kB / 467.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.3229, allocations: 51.95 kB / 467.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-05/0.323, allocations: 27.95 kB / 467.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.323, allocations: 15.98 kB / 467.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003869/0.3234, allocations: 354.8 kB / 468.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3234, allocations: 4 kB / 468.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006435/0.324, allocations: 152 kB / 468.4 MB, free: 13.78 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 (43): * Single equations (assignments): 34 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001529/0.3242, allocations: 127.2 kB / 468.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.3256, allocations: 0.898 MB / 469.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3256, allocations: 0 / 469.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008277/0.3265, allocations: 0.4977 MB / 469.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.3271, allocations: 138.6 kB / 470.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.3295, allocations: 1.79 MB / 471.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.3302, allocations: 0.9877 MB / 472.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003092/0.3305, allocations: 105 kB / 472.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.3306, allocations: 47.42 kB / 473 MB, free: 9.059 MB / 350.1 MB Notification: Performance of SimCode: time 1.225e-05/0.3306, allocations: 0 / 473 MB, free: 9.059 MB / 350.1 MB Notification: Performance of Templates: time 0.01115/0.3418, allocations: 6.792 MB / 479.8 MB, free: 2.289 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: