Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 175.3 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007845/0.0007844, allocations: 94.23 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1663/0.1663, allocations: 38.07 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003708, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1065, allocations: 56.33 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007735/0.1143, allocations: 7.064 MB / 486.1 MB, free: 10.94 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003323/0.1177, allocations: 1.751 MB / 487.9 MB, free: 9.184 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000665/0.1184, allocations: 51.62 kB / 487.9 MB, free: 9.133 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.1188, allocations: 146.9 kB / 488.1 MB, free: 8.988 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.1199, allocations: 493.5 kB / 488.6 MB, free: 8.504 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005912/0.1205, allocations: 263.6 kB / 488.8 MB, free: 8.246 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.1216, allocations: 1.305 MB / 490.1 MB, free: 6.938 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.122, allocations: 292.6 kB / 490.4 MB, free: 6.652 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005405/0.1225, allocations: 410.2 kB / 490.8 MB, free: 6.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006659/0.1232, allocations: 0.5022 MB / 491.3 MB, free: 5.746 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.219e-05/0.1233, allocations: 28 kB / 491.3 MB, free: 5.719 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.1234, allocations: 32 kB / 491.4 MB, free: 5.688 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002873/0.1237, allocations: 295.2 kB / 491.7 MB, free: 5.398 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.1239, allocations: 169.3 kB / 491.8 MB, free: 5.227 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006567/0.1246, allocations: 0.6858 MB / 492.5 MB, free: 4.539 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1246, allocations: 0 / 492.5 MB, free: 4.539 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1246, allocations: 0 / 492.5 MB, free: 4.539 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1246, allocations: 0 / 492.5 MB, free: 4.539 MB / 330.7 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.001796/0.1264, allocations: 1.02 MB / 493.5 MB, free: 3.453 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.1265, allocations: 8.031 kB / 493.5 MB, free: 3.445 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.1266, allocations: 83.06 kB / 493.6 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008167/0.1275, allocations: 0.5601 MB / 494.2 MB, free: 2.762 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.1276, allocations: 120.7 kB / 494.3 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1277, allocations: 60 kB / 494.3 MB, free: 2.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.1292, allocations: 0.8692 MB / 495.2 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.1293, allocations: 7.984 kB / 495.2 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.547e-05/0.1293, allocations: 31.95 kB / 495.3 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.1294, allocations: 37.28 kB / 495.3 MB, free: 1.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.1307, allocations: 0.6256 MB / 495.9 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004364/0.1351, allocations: 2.774 MB / 498.7 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.1372, allocations: 0.9205 MB / 499.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009263/0.1382, allocations: 334.2 kB / 499.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.1382, allocations: 4.328 kB / 499.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007529/0.139, allocations: 370.7 kB / 0.4886 GB, free: 12.35 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 2.926e-06/0.139, allocations: 0 / 0.4886 GB, free: 12.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.004138/0.1431, allocations: 2.018 MB / 0.4906 GB, free: 10.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/0.1432, allocations: 130.7 kB / 0.4907 GB, free: 10.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.1437, allocations: 0.5027 MB / 0.4912 GB, free: 9.551 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.179e-05/0.1438, allocations: 41.7 kB / 0.4912 GB, free: 9.504 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.1441, allocations: 359.7 kB / 0.4915 GB, free: 9.145 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1442, allocations: 142 kB / 0.4917 GB, free: 9.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.568e-05/0.1442, allocations: 12 kB / 0.4917 GB, free: 8.992 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1444, allocations: 370.8 kB / 0.492 GB, free: 8.621 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.1447, allocations: 209.1 kB / 0.4922 GB, free: 8.414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.1451, allocations: 382.2 kB / 0.4926 GB, free: 7.969 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003862/0.1455, allocations: 290.4 kB / 0.4929 GB, free: 7.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1455, allocations: 4 kB / 0.4929 GB, free: 7.676 MB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001127/0.1466, allocations: 0.8627 MB / 0.4937 GB, free: 6.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.237e-05/0.1467, allocations: 53.69 kB / 0.4938 GB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.1467, allocations: 4 kB / 0.4938 GB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002665/0.147, allocations: 89.94 kB / 0.4939 GB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/0.1474, allocations: 111.8 kB / 0.494 GB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/0.1497, allocations: 2.989 MB / 0.4969 GB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003373/0.15, allocations: 27.98 kB / 0.4969 GB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.942e-05/0.1501, allocations: 51.91 kB / 0.497 GB, free: 3.176 MB / 346.7 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 (66): * Single equations (assignments): 63 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003246/0.1504, allocations: 273.5 kB / 0.4972 GB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.911e-05/0.1505, allocations: 55.34 kB / 0.4973 GB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.152, allocations: 0.7392 MB / 0.498 GB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.152, allocations: 4 kB / 0.498 GB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.152, allocations: 4 kB / 0.498 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.152, allocations: 3.984 kB / 0.498 GB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.1544, allocations: 1.551 MB / 0.4995 GB, free: 432 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.1544, allocations: 7.953 kB / 0.4995 GB, free: 424 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.1547, allocations: 59.89 kB / 0.4996 GB, free: 364 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000262/0.155, allocations: 93.62 kB / 0.4997 GB, free: 264 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.155, allocations: 15.98 kB / 0.4997 GB, free: 248 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/0.1571, allocations: 2.978 MB / 0.5026 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.1571, allocations: 8.25 kB / 0.5026 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.159, allocations: 1.098 MB / 0.5037 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.1592, allocations: 172.4 kB / 0.5039 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-05/0.1593, allocations: 27.98 kB / 0.5039 GB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003726/0.1597, allocations: 47.94 kB / 0.5039 GB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.1598, allocations: 35.91 kB / 0.504 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.106e-05/0.1599, allocations: 15.98 kB / 0.504 GB, free: 11.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000378/0.1602, allocations: 354.8 kB / 0.5043 GB, free: 11.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1602, allocations: 0 / 0.5043 GB, free: 11.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006352/0.1609, allocations: 148 kB / 0.5045 GB, free: 11.04 MB / 362.7 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 (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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001641/0.1611, allocations: 123.2 kB / 0.5046 GB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.1626, allocations: 0.9015 MB / 0.5055 GB, free: 9.973 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1626, allocations: 0 / 0.5055 GB, free: 9.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008754/0.1634, allocations: 0.5098 MB / 0.506 GB, free: 9.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007471/0.1642, allocations: 146.2 kB / 0.5061 GB, free: 9.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.1668, allocations: 1.87 MB / 0.5079 GB, free: 7.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.1674, allocations: 0.976 MB / 0.5089 GB, free: 6.375 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.1675, allocations: 39.44 kB / 0.5089 GB, free: 6.336 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1675, allocations: 0 / 0.5089 GB, free: 6.336 MB / 362.7 MB Notification: Performance of Templates: time 0.217/0.3845, allocations: 13.38 MB / 0.522 GB, free: 51.11 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)