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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001143/0.001143, allocations: 187.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.23/1.23, allocations: 194.2 MB / 212.2 MB, free: 2.371 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001627/0.001627, allocations: 128 kB / 256.6 MB, free: 4.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1906/0.1906, allocations: 37.95 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 67.89 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09829, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006914/0.1053, allocations: 7.937 MB / 461.9 MB, free: 8.59 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002585/0.1079, allocations: 1.808 MB / 463.7 MB, free: 6.773 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003689/0.1083, allocations: 55.62 kB / 463.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000286/0.1086, allocations: 99.3 kB / 463.9 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006972/0.1093, allocations: 402.3 kB / 464.3 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.1096, allocations: 203.7 kB / 464.5 MB, free: 6.027 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009962/0.1106, allocations: 1.648 MB / 466.1 MB, free: 4.375 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003935/0.111, allocations: 340.2 kB / 466.5 MB, free: 4.043 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004253/0.1115, allocations: 438 kB / 466.9 MB, free: 3.613 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005693/0.1121, allocations: 0.5373 MB / 467.4 MB, free: 3.074 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.896e-05/0.1121, allocations: 40 kB / 467.5 MB, free: 3.035 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.1123, allocations: 44 kB / 467.5 MB, free: 2.992 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.1125, allocations: 315.1 kB / 467.8 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002908/0.1128, allocations: 386.1 kB / 468.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005454/0.1134, allocations: 0.876 MB / 469.1 MB, free: 1.426 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1134, allocations: 4 kB / 469.1 MB, free: 1.422 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1134, allocations: 3.984 kB / 469.1 MB, free: 1.418 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1134, allocations: 0 / 469.1 MB, free: 1.418 MB / 314.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.001719/0.1151, allocations: 1.152 MB / 470.2 MB, free: 204 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.1152, allocations: 12.03 kB / 470.2 MB, free: 192 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.1153, allocations: 84 kB / 470.3 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008892/0.1162, allocations: 0.5727 MB / 470.9 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.1163, allocations: 116.6 kB / 471 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.1164, allocations: 64 kB / 471.1 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.1178, allocations: 0.8653 MB / 471.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1179, allocations: 4 kB / 471.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.1179, allocations: 24 kB / 472 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.1181, allocations: 45.22 kB / 472 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.1192, allocations: 0.614 MB / 472.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003732/0.1229, allocations: 2.766 MB / 475.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.1246, allocations: 0.9004 MB / 476.3 MB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007234/0.1254, allocations: 314.2 kB / 476.6 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.895e-05/0.1254, allocations: 8.312 kB / 476.6 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000753/0.1262, allocations: 354.3 kB / 477 MB, free: 9.156 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 4.779e-06/0.1262, allocations: 0 / 477 MB, free: 9.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.004431/0.1306, allocations: 1.967 MB / 478.9 MB, free: 7.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.827e-05/0.1307, allocations: 114.8 kB / 479 MB, free: 6.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005986/0.1313, allocations: 0.5105 MB / 479.5 MB, free: 6.418 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.1314, allocations: 33.7 kB / 479.6 MB, free: 6.379 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.1317, allocations: 359.7 kB / 479.9 MB, free: 6.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.1318, allocations: 150 kB / 480.1 MB, free: 5.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.132, allocations: 122.1 kB / 480.2 MB, free: 5.746 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1321, allocations: 366.8 kB / 480.6 MB, free: 5.379 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/0.1325, allocations: 229 kB / 480.8 MB, free: 5.152 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004456/0.1329, allocations: 390.2 kB / 481.2 MB, free: 4.699 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007803/0.1337, allocations: 0.6211 MB / 481.8 MB, free: 4.004 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1337, allocations: 4 kB / 481.8 MB, free: 4 MB / 330.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001211/0.1349, allocations: 0.8903 MB / 482.7 MB, free: 3.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.354e-05/0.135, allocations: 53.67 kB / 482.7 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.135, allocations: 12.03 kB / 482.7 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002839/0.1353, allocations: 89.59 kB / 482.8 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.1357, allocations: 103.8 kB / 482.9 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002747/0.1385, allocations: 2.981 MB / 485.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003856/0.1389, allocations: 35.97 kB / 485.9 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/0.139, allocations: 44.06 kB / 486 MB, free: 15.48 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,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.0004207/0.1394, allocations: 273.5 kB / 486.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.453e-05/0.1395, allocations: 55.25 kB / 486.3 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.141, allocations: 0.712 MB / 487 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.141, allocations: 8 kB / 487 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.141, allocations: 96 / 487 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.141, allocations: 11.97 kB / 487 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/0.1435, allocations: 1.528 MB / 488.6 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.1436, allocations: 7.938 kB / 488.6 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.1438, allocations: 59.91 kB / 488.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002871/0.1441, allocations: 89.62 kB / 488.7 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.306e-05/0.1442, allocations: 19.98 kB / 488.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002373/0.1466, allocations: 2.977 MB / 491.7 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.1466, allocations: 4.156 kB / 491.7 MB, free: 9.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01073/0.1573, allocations: 8.03 MB / 499.7 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002562/0.1576, allocations: 172.3 kB / 499.9 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.251e-05/0.1577, allocations: 31.92 kB / 499.9 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003936/0.1581, allocations: 51.97 kB / 500 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.346e-05/0.1582, allocations: 23.97 kB / 0.4883 GB, free: 488 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/0.1583, allocations: 19.98 kB / 0.4883 GB, free: 468 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004201/0.1587, allocations: 354.8 kB / 0.4887 GB, free: 116 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1587, allocations: 0 / 0.4887 GB, free: 116 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.000908/0.1596, allocations: 208 kB / 0.4889 GB, free: 15.91 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 (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.0001727/0.1598, allocations: 131.1 kB / 0.489 GB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.1613, allocations: 0.8977 MB / 0.4899 GB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.1613, allocations: 0 / 0.4899 GB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008952/0.1622, allocations: 0.4941 MB / 0.4903 GB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007641/0.163, allocations: 146.6 kB / 0.4905 GB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/0.1665, allocations: 2.299 MB / 0.4927 GB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007076/0.1673, allocations: 0.9918 MB / 0.4937 GB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003945/0.1677, allocations: 104.9 kB / 0.4938 GB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.1678, allocations: 47.42 kB / 0.4938 GB, free: 10.63 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.1678, allocations: 0 / 0.4938 GB, free: 10.63 MB / 362.7 MB Notification: Performance of Templates: time 0.01507/0.1829, allocations: 8.354 MB / 0.502 GB, free: 2.273 MB / 362.7 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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)