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.001682/0.001682, allocations: 113.6 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.001861/0.001862, allocations: 191 kB / 18.63 MB, free: 4.375 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.486/1.486, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1893/0.1893, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001663/0.001663, allocations: 67.89 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2808, 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.006476/0.2873, allocations: 6.493 MB / 438.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.2896, allocations: 1.357 MB / 439.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003617/0.29, allocations: 27.81 kB / 439.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.2904, allocations: 126.9 kB / 440 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.2915, allocations: 421.9 kB / 440.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000643/0.2922, allocations: 235.6 kB / 440.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.2933, allocations: 1.118 MB / 441.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000468/0.2938, allocations: 409.7 kB / 442.2 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005833/0.2944, allocations: 494.1 kB / 442.7 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006441/0.295, allocations: 0.5255 MB / 443.2 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.283e-05/0.2951, allocations: 64 kB / 443.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.2953, allocations: 68 kB / 443.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.2955, allocations: 331.2 kB / 443.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003784/0.2959, allocations: 406.1 kB / 444 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008105/0.2967, allocations: 0.9149 MB / 445 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.2968, allocations: 0 / 445 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.2968, allocations: 0 / 445 MB, free: 6.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.2968, allocations: 4 kB / 445 MB, free: 6.527 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.001863/0.2987, allocations: 1.154 MB / 446.1 MB, free: 5.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2987, allocations: 11.89 kB / 446.1 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.2988, allocations: 87.91 kB / 446.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009111/0.2998, allocations: 0.6079 MB / 446.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.19e-05/0.2999, allocations: 124.8 kB / 446.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.796e-05/0.3, allocations: 63.98 kB / 447 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.3011, allocations: 0.8614 MB / 447.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3012, allocations: 0 / 447.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.638e-05/0.3012, allocations: 24 kB / 447.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.766e-05/0.3013, allocations: 41.28 kB / 447.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009361/0.3023, allocations: 0.6256 MB / 448.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003004/0.3053, allocations: 2.747 MB / 451.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.3069, allocations: 0.8965 MB / 452.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006933/0.3076, allocations: 326.1 kB / 452.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.3077, allocations: 4.328 kB / 452.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007206/0.3084, allocations: 354.5 kB / 452.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.174e-06/0.3084, allocations: 0 / 452.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.004176/0.3126, allocations: 1.971 MB / 454.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.3127, allocations: 110.8 kB / 455 MB, free: 12.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005952/0.3133, allocations: 0.5143 MB / 455.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.3134, allocations: 41.7 kB / 455.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/0.3137, allocations: 355.9 kB / 455.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.3138, allocations: 146 kB / 456 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.314, allocations: 114.1 kB / 456.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3142, allocations: 370.8 kB / 456.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/0.3145, allocations: 221.1 kB / 456.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.3149, allocations: 398.2 kB / 457.1 MB, free: 9.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007486/0.3157, allocations: 0.6211 MB / 457.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.3157, allocations: 0 / 457.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001322/0.317, allocations: 0.8979 MB / 458.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.367e-05/0.3171, allocations: 49.69 kB / 458.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3171, allocations: 8 kB / 458.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003013/0.3174, allocations: 89.66 kB / 458.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.3178, allocations: 112.1 kB / 458.8 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/0.3205, allocations: 3.255 MB / 462.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000357/0.3209, allocations: 27.98 kB / 462.1 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-05/0.321, allocations: 43.97 kB / 462.2 MB, free: 4.281 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.0003909/0.3214, allocations: 274.7 kB / 462.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.552e-05/0.3215, allocations: 55.28 kB / 462.5 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/0.3229, allocations: 0.7158 MB / 463.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3229, allocations: 7.938 kB / 463.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3229, allocations: 0 / 463.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.016e-06/0.3229, allocations: 4 kB / 463.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.3254, allocations: 1.536 MB / 464.8 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3254, allocations: 8 kB / 464.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.3256, allocations: 59.89 kB / 464.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002896/0.3259, allocations: 97.69 kB / 464.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.326, allocations: 15.98 kB / 464.9 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002324/0.3283, allocations: 3.251 MB / 468.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3283, allocations: 0 / 468.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.3302, allocations: 1.072 MB / 469.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.3305, allocations: 168.4 kB / 469.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.399e-05/0.3306, allocations: 31.98 kB / 469.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003637/0.331, allocations: 39.94 kB / 469.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.3311, allocations: 31.91 kB / 469.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-05/0.3312, allocations: 15.98 kB / 469.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004102/0.3316, allocations: 358.8 kB / 469.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3316, allocations: 0 / 469.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006674/0.3323, allocations: 148 kB / 470 MB, free: 11.93 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.0001833/0.3324, allocations: 131.9 kB / 470.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.3339, allocations: 0.9095 MB / 471.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3339, allocations: 0 / 471.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008349/0.3348, allocations: 0.498 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.0007567/0.3356, allocations: 150.1 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.002562/0.3381, allocations: 1.477 MB / 473.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.3387, allocations: 0.9759 MB / 474.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003013/0.339, allocations: 108.9 kB / 474.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3391, allocations: 39.44 kB / 474.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3392, allocations: 4 kB / 474.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of Templates: time 0.01385/0.353, allocations: 7.436 MB / 481.8 MB, free: 100 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)