Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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 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: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002559/0.002559, allocations: 106.8 kB / 17.29 MB, free: 6.215 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.003321/0.003321, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.823/2.823, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.488/0.488, allocations: 38.02 MB / 330.1 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003025/0.003025, allocations: 60.3 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2624, allocations: 58.06 MB / 457 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.02146/0.284, allocations: 8.382 MB / 465.4 MB, free: 16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.2957, allocations: 2.458 MB / 467.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002659/0.2985, allocations: 55.62 kB / 467.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00267/0.3012, allocations: 477.5 kB / 468.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003092/0.3043, allocations: 0.5058 MB / 468.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001795/0.3061, allocations: 363.5 kB / 469.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003353/0.3095, allocations: 1.41 MB / 470.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002479/0.312, allocations: 0.8381 MB / 471.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002407/0.3144, allocations: 0.6344 MB / 472.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002232/0.3167, allocations: 0.7127 MB / 472.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003334/0.3171, allocations: 100 kB / 472.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002148/0.3192, allocations: 0.5461 MB / 473.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009627/0.3202, allocations: 0.5066 MB / 474 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.3215, allocations: 0.5638 MB / 474.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002619/0.3242, allocations: 1.185 MB / 475.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.3242, allocations: 0 / 475.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.819e-06/0.3242, allocations: 0 / 475.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.706e-05/0.3243, allocations: 0 / 475.7 MB, free: 5.621 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.006754/0.3311, allocations: 1.575 MB / 477.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.634e-05/0.3312, allocations: 15.89 kB / 477.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001614/0.3328, allocations: 159.5 kB / 477.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002165/0.335, allocations: 0.6824 MB / 478.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002817/0.3353, allocations: 179.6 kB / 478.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003683/0.3357, allocations: 107.9 kB / 478.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009476/0.3452, allocations: 1.532 MB / 480 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.008e-05/0.3453, allocations: 7.938 kB / 480 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000188/0.3455, allocations: 36 kB / 480 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002811/0.3458, allocations: 69.97 kB / 480.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004074/0.3499, allocations: 1.171 MB / 481.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01447/0.3644, allocations: 4.801 MB / 486 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006144/0.3707, allocations: 1.119 MB / 487.2 MB, free: 9.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002633/0.3734, allocations: 0.5696 MB / 487.7 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001417/0.3736, allocations: 12.55 kB / 487.7 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003193/0.3768, allocations: 0.7178 MB / 488.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 8.236e-06/0.3768, allocations: 0 / 488.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=81): time 0.01594/0.3928, allocations: 3.193 MB / 491.6 MB, free: 5.156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001818/0.393, allocations: 119.5 kB / 491.8 MB, free: 5.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.3951, allocations: 0.5849 MB / 492.4 MB, free: 4.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003261/0.3955, allocations: 53.69 kB / 492.4 MB, free: 4.363 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009135/0.3964, allocations: 459 kB / 492.9 MB, free: 3.906 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007745/0.3972, allocations: 272.3 kB / 493.1 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/0.3983, allocations: 194.5 kB / 493.3 MB, free: 3.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0005619/0.3989, allocations: 394.7 kB / 493.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001684/0.4006, allocations: 486 kB / 494.2 MB, free: 2.566 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/0.4028, allocations: 0.7499 MB / 494.9 MB, free: 1.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/0.4068, allocations: 1.253 MB / 496.2 MB, free: 344 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.379e-05/0.4069, allocations: 4 kB / 496.2 MB, free: 340 kB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.006125/0.413, allocations: 1.584 MB / 497.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002055/0.4133, allocations: 65.61 kB / 497.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00423/0.4176, allocations: 1.325 MB / 499.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000937/0.4186, allocations: 121.8 kB / 499.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/0.4203, allocations: 195.7 kB / 499.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007721/0.4281, allocations: 3.365 MB / 0.491 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.4303, allocations: 79.77 kB / 0.4911 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005667/0.431, allocations: 75.94 kB / 0.4912 GB, free: 9.168 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002019/0.433, allocations: 381.4 kB / 0.4915 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008197/0.4339, allocations: 79.06 kB / 0.4916 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006922/0.4408, allocations: 1.267 MB / 0.4929 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.98e-05/0.441, allocations: 12 kB / 0.4929 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.807e-05/0.441, allocations: 4 kB / 0.4929 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.574e-05/0.4411, allocations: 7.922 kB / 0.4929 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.452, allocations: 2.448 MB / 0.4953 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/0.4521, allocations: 3.938 kB / 0.4953 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/0.4536, allocations: 143.8 kB / 0.4954 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002501/0.4539, allocations: 32.84 kB / 0.4954 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/0.4541, allocations: 32.06 kB / 0.4955 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/0.4575, allocations: 1.634 MB / 0.4971 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.4576, allocations: 7.969 kB / 0.4971 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/0.4679, allocations: 1.919 MB / 0.499 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.4693, allocations: 244 kB / 0.4992 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008118/0.4701, allocations: 75.95 kB / 0.4993 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/0.4718, allocations: 91.86 kB / 0.4993 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.4722, allocations: 52.53 kB / 0.4994 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/0.4724, allocations: 35.97 kB / 0.4994 GB, free: 392 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001441/0.4739, allocations: 399 kB / 0.4998 GB, free: 15.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4739, allocations: 0 / 0.4998 GB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002575/0.4765, allocations: 236 kB / 0.5 GB, free: 15.76 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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): 1 system {(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.0007993/0.4773, allocations: 179 kB / 0.5002 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006622/0.4839, allocations: 1.982 MB / 0.5021 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/0.484, allocations: 8.312 kB / 0.5022 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002306/0.4863, allocations: 0.6469 MB / 0.5028 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.4887, allocations: 172.6 kB / 0.5029 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009323/0.4981, allocations: 2.801 MB / 0.5057 GB, free: 9.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001822/0.5, allocations: 1.114 MB / 0.5068 GB, free: 8.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007306/0.5007, allocations: 67.42 kB / 0.5068 GB, free: 8.668 MB / 398.1 MB Notification: Performance of SimCode: time 2.765e-06/0.5008, allocations: 0 / 0.5068 GB, free: 8.668 MB / 398.1 MB Notification: Performance of Templates: time 0.521/1.022, allocations: 17.6 MB / 0.524 GB, free: 69.91 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)