Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00182/0.00182, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1729/0.1729, allocations: 38.02 MB / 330.4 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 64.97 kB / 399.5 MB, free: 34.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09948, allocations: 58.06 MB / 457.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007127/0.1067, allocations: 5.959 MB / 463.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.1091, allocations: 1.55 MB / 465 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003025/0.1095, allocations: 23.88 kB / 465.1 MB, free: 480 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004557/0.11, allocations: 146.9 kB / 465.2 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007224/0.1107, allocations: 358.2 kB / 465.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005426/0.1113, allocations: 319.5 kB / 465.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.1125, allocations: 1.34 MB / 467.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004331/0.1129, allocations: 376.6 kB / 467.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006439/0.1136, allocations: 0.5217 MB / 468.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007028/0.1143, allocations: 0.5414 MB / 468.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.1144, allocations: 92 kB / 468.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.1146, allocations: 91.94 kB / 468.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000334/0.1149, allocations: 355.2 kB / 469.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003938/0.1153, allocations: 410.3 kB / 469.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008697/0.1162, allocations: 1.044 MB / 470.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.483e-05/0.1162, allocations: 0 / 470.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1162, allocations: 0 / 470.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.1163, allocations: 4 kB / 470.6 MB, free: 10.9 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002339/0.1186, allocations: 1.188 MB / 471.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.1186, allocations: 11.89 kB / 471.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.1188, allocations: 84.09 kB / 471.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.1199, allocations: 0.6355 MB / 472.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004043/0.1203, allocations: 331.4 kB / 472.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.1205, allocations: 59.94 kB / 472.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002023/0.1225, allocations: 1.054 MB / 474 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1225, allocations: 0 / 474 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.382e-05/0.1226, allocations: 20 kB / 474 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.1226, allocations: 16 kB / 474 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00253/0.1252, allocations: 1.085 MB / 475.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.1296, allocations: 3.22 MB / 478.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.1317, allocations: 0.7456 MB / 479.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.1331, allocations: 0.5299 MB / 479.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.1331, allocations: 4.438 kB / 479.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001407/0.1346, allocations: 0.6225 MB / 480.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.494e-06/0.1346, allocations: 4 kB / 480.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003782/0.1384, allocations: 1.36 MB / 481.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.1384, allocations: 148.4 kB / 481.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004104/0.1389, allocations: 389.9 kB / 482.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.062e-05/0.1389, allocations: 45.72 kB / 482.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.1391, allocations: 288.4 kB / 482.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.1393, allocations: 161.7 kB / 482.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.1395, allocations: 114.2 kB / 482.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1396, allocations: 358.8 kB / 483 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.1407, allocations: 460.9 kB / 483.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.1417, allocations: 0.5484 MB / 484 MB, free: 13.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001897/0.1436, allocations: 0.8934 MB / 484.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1437, allocations: 0 / 484.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002321/0.146, allocations: 1.089 MB / 486 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.585e-05/0.1461, allocations: 53.62 kB / 486.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.1461, allocations: 4 kB / 486.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.1461, allocations: 4 kB / 486.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005985/0.1521, allocations: 1.108 MB / 487.2 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007923/0.16, allocations: 4.705 MB / 491.9 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008358/0.1609, allocations: 107.5 kB / 492 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.1611, allocations: 43.91 kB / 492 MB, free: 4.668 MB / 366.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: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004752/0.1616, allocations: 247.3 kB / 492.3 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.1617, allocations: 63.3 kB / 492.4 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.1645, allocations: 0.9848 MB / 493.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.1645, allocations: 4 kB / 493.3 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1645, allocations: 0 / 493.3 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.1645, allocations: 7.984 kB / 493.3 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/0.1686, allocations: 2.131 MB / 495.5 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.1686, allocations: 4 kB / 495.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007053/0.1757, allocations: 1.284 MB / 496.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.1757, allocations: 4 kB / 496.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.704e-05/0.1758, allocations: 15.92 kB / 496.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.106e-06/0.1759, allocations: 8 kB / 496.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1759, allocations: 4 kB / 496.8 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004184/0.1801, allocations: 1.695 MB / 498.5 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/0.1805, allocations: 200.5 kB / 498.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.1807, allocations: 31.98 kB / 498.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00076/0.1815, allocations: 91.88 kB / 498.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.1817, allocations: 91.8 kB / 498.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-05/0.1818, allocations: 19.98 kB / 498.9 MB, free: 13.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003075/0.1821, allocations: 271.1 kB / 499.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1821, allocations: 0 / 499.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006667/0.1828, allocations: 179.5 kB / 499.4 MB, free: 13.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001894/0.183, allocations: 142.3 kB / 499.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007927/0.1909, allocations: 2.156 MB / 0.4899 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.1909, allocations: 0 / 0.4899 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003614/0.1946, allocations: 0.9331 MB / 0.4908 GB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009042/0.1955, allocations: 140.8 kB / 0.4909 GB, free: 9.805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003873/0.1994, allocations: 1.65 MB / 0.4926 GB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/0.1999, allocations: 0.933 MB / 0.4935 GB, free: 7.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002586/0.2002, allocations: 51.36 kB / 0.4935 GB, free: 7.094 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2002, allocations: 0 / 0.4935 GB, free: 7.094 MB / 382.1 MB Notification: Performance of Templates: time 0.1881/0.3883, allocations: 11.39 MB / 0.5046 GB, free: 56.7 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)