Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 112.3 kB / 17.29 MB, free: 6.059 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.00236/0.00236, allocations: 193.3 kB / 18.21 MB, free: 5.145 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.538/2.538, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4284/0.4284, allocations: 38.03 MB / 330 MB, free: 8.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002425/0.002426, allocations: 63.62 kB / 398.9 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2267, allocations: 58.06 MB / 457 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.01877/0.2456, allocations: 7.53 MB / 464.5 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008662/0.2543, allocations: 2.746 MB / 467.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001814/0.2562, allocations: 47.69 kB / 467.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.2589, allocations: 390.3 kB / 467.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004017/0.2629, allocations: 0.5526 MB / 468.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002931/0.2659, allocations: 447.3 kB / 468.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004373/0.2705, allocations: 1.961 MB / 470.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003107/0.2737, allocations: 0.8805 MB / 471.5 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002936/0.2767, allocations: 0.7828 MB / 472.3 MB, free: 9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.2799, allocations: 1.017 MB / 473.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009026/0.2809, allocations: 160 kB / 473.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.2838, allocations: 0.6904 MB / 474.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001938/0.2857, allocations: 0.6471 MB / 474.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003092/0.2889, allocations: 0.6848 MB / 475.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004041/0.293, allocations: 1.575 MB / 477.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.293, allocations: 0 / 477.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.293, allocations: 0 / 477.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.829e-05/0.2931, allocations: 4 kB / 477.1 MB, free: 4.215 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.01141/0.3045, allocations: 1.908 MB / 479 MB, free: 2.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.659e-05/0.3046, allocations: 15.89 kB / 479 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001847/0.3065, allocations: 159.6 kB / 479.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004557/0.3111, allocations: 0.9322 MB / 480.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00136/0.3125, allocations: 0.495 MB / 480.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007987/0.3133, allocations: 111.8 kB / 480.7 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009852/0.3232, allocations: 2.011 MB / 482.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-05/0.3234, allocations: 4 kB / 482.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004483/0.3238, allocations: 35.98 kB / 482.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005252/0.3244, allocations: 93.88 kB / 482.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01162/0.336, allocations: 2.236 MB / 485.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02045/0.3566, allocations: 5.691 MB / 490.8 MB, free: 6.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008857/0.3655, allocations: 1.785 MB / 492.6 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00525/0.3708, allocations: 1.152 MB / 493.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002617/0.3711, allocations: 16.97 kB / 493.7 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006524/0.3777, allocations: 1.383 MB / 495.1 MB, free: 1.777 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 9.187e-06/0.3778, allocations: 0 / 495.1 MB, free: 1.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.02779/0.4056, allocations: 5.626 MB / 0.489 GB, free: 12.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.4058, allocations: 102.1 kB / 0.4891 GB, free: 11.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.407, allocations: 0.4901 MB / 0.4896 GB, free: 11.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003206/0.4073, allocations: 61.69 kB / 0.4896 GB, free: 11.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005028/0.4079, allocations: 356.7 kB / 0.49 GB, free: 11.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007943/0.4087, allocations: 418 kB / 0.4904 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008804/0.4096, allocations: 226.8 kB / 0.4906 GB, free: 10.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002924/0.4099, allocations: 398.7 kB / 0.491 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004525/0.4144, allocations: 1.021 MB / 0.492 GB, free: 8.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004794/0.4192, allocations: 1.176 MB / 0.4931 GB, free: 7.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008345/0.4276, allocations: 2.039 MB / 0.4951 GB, free: 5.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.4277, allocations: 4 kB / 0.4951 GB, free: 5.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.02193/0.4497, allocations: 3.903 MB / 0.4989 GB, free: 1.773 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002196/0.4499, allocations: 61.67 kB / 0.499 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.118e-05/0.45, allocations: 4 kB / 0.499 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3706/0.8206, allocations: 2.065 MB / 0.501 GB, free: 57.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/0.8226, allocations: 191.2 kB / 0.5012 GB, free: 57.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05325/0.8759, allocations: 11.31 MB / 0.5122 GB, free: 53.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/0.8785, allocations: 162.8 kB / 0.5124 GB, free: 53.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005708/0.8791, allocations: 75.77 kB / 0.5125 GB, free: 53.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001493/0.8806, allocations: 381.5 kB / 0.5128 GB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000665/0.8813, allocations: 80.64 kB / 0.5129 GB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/0.8922, allocations: 2.355 MB / 0.5152 GB, free: 52.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.945e-05/0.8923, allocations: 38.31 kB / 0.5152 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.8924, allocations: 1.375 kB / 0.5152 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.651e-05/0.8924, allocations: 7.875 kB / 0.5152 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/0.9093, allocations: 4.111 MB / 0.5193 GB, free: 50.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.448e-05/0.9094, allocations: 3.438 kB / 0.5193 GB, free: 50.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01958/0.929, allocations: 2.023 MB / 0.5212 GB, free: 50.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.202e-05/0.9291, allocations: 6.875 kB / 0.5212 GB, free: 50.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005093/0.9296, allocations: 35.36 kB / 0.5213 GB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.232e-05/0.9297, allocations: 7.719 kB / 0.5213 GB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/0.9297, allocations: 6.062 kB / 0.5213 GB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/0.9451, allocations: 3.864 MB / 0.5251 GB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/0.9467, allocations: 340.3 kB / 0.5254 GB, free: 47.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008763/0.9476, allocations: 79.94 kB / 0.5255 GB, free: 47.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0027/0.9503, allocations: 190.8 kB / 0.5256 GB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000855/0.9512, allocations: 196.7 kB / 0.5258 GB, free: 46.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003274/0.9516, allocations: 40.97 kB / 0.5259 GB, free: 46.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008137/0.9524, allocations: 350.8 kB / 0.5262 GB, free: 46.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9524, allocations: 0 / 0.5262 GB, free: 46.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002584/0.955, allocations: 354.2 kB / 0.5265 GB, free: 46.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009126/0.956, allocations: 223.4 kB / 0.5268 GB, free: 45.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0141/0.9701, allocations: 3.756 MB / 0.5304 GB, free: 42.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.9702, allocations: 5.156 kB / 0.5304 GB, free: 42.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01054/0.9808, allocations: 1.89 MB / 0.5323 GB, free: 40.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.9833, allocations: 181.1 kB / 0.5325 GB, free: 40.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.9968, allocations: 3.833 MB / 0.5362 GB, free: 36.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.9979, allocations: 1.144 MB / 0.5373 GB, free: 35.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.9992, allocations: 83.41 kB / 0.5374 GB, free: 34.98 MB / 382.1 MB Notification: Performance of SimCode: time 3.437e-06/0.9992, allocations: 4 kB / 0.5374 GB, free: 34.97 MB / 382.1 MB Notification: Performance of Templates: time 0.04455/1.044, allocations: 19.03 MB / 0.556 GB, free: 16 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)