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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001499, allocations: 183.3 kB / 15.77 MB, free: 6.375 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.977/1.977, 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.001086/0.001086, allocations: 102.8 kB / 270.2 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.266/0.266, allocations: 38.05 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004545/0.0004548, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1073, allocations: 56.33 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01453/0.1219, allocations: 6.758 MB / 485.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007218/0.1292, allocations: 1.786 MB / 487.7 MB, free: 9.348 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.1303, allocations: 51.62 kB / 487.7 MB, free: 9.297 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000509/0.1309, allocations: 135 kB / 487.9 MB, free: 9.164 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001855/0.1328, allocations: 398.7 kB / 488.3 MB, free: 8.773 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.1339, allocations: 259.6 kB / 488.5 MB, free: 8.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001328/0.1353, allocations: 0.5808 MB / 489.1 MB, free: 7.938 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006001/0.1359, allocations: 300.5 kB / 489.4 MB, free: 7.645 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008617/0.1368, allocations: 358.7 kB / 489.7 MB, free: 7.293 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007935/0.1376, allocations: 350.8 kB / 490.1 MB, free: 6.949 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.1377, allocations: 28 kB / 490.1 MB, free: 6.922 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.1379, allocations: 32 kB / 490.1 MB, free: 6.891 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004181/0.1383, allocations: 267.3 kB / 490.4 MB, free: 6.629 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.1386, allocations: 165.3 kB / 490.6 MB, free: 6.461 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.1396, allocations: 0.6896 MB / 491.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1396, allocations: 0 / 491.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1396, allocations: 0 / 491.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.1396, allocations: 4 kB / 491.2 MB, free: 5.766 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.002799/0.1424, allocations: 1.02 MB / 492.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.1425, allocations: 8.031 kB / 492.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002265/0.1427, allocations: 110.5 kB / 492.4 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.143, allocations: 87.06 kB / 492.5 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.1444, allocations: 0.5562 MB / 493 MB, free: 3.871 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.1446, allocations: 116.7 kB / 493.1 MB, free: 3.742 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.1448, allocations: 68 kB / 493.2 MB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002675/0.1475, allocations: 0.8575 MB / 494.1 MB, free: 2.777 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.077e-05/0.1476, allocations: 15.91 kB / 494.1 MB, free: 2.762 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.1477, allocations: 27.95 kB / 494.1 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001974/0.1479, allocations: 37.28 kB / 494.1 MB, free: 2.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.1501, allocations: 0.6295 MB / 494.8 MB, free: 2.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006858/0.157, allocations: 2.778 MB / 497.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003131/0.1602, allocations: 0.9245 MB / 498.5 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.1603, allocations: 8.344 kB / 498.5 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.1616, allocations: 350.5 kB / 498.8 MB, free: 13.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.807e-06/0.1616, allocations: 0 / 498.8 MB, free: 13.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.007047/0.1687, allocations: 2.007 MB / 0.4891 GB, free: 11.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.467e-05/0.1688, allocations: 118.8 kB / 0.4892 GB, free: 11.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009166/0.1697, allocations: 0.5027 MB / 0.4897 GB, free: 11.03 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.727e-05/0.1698, allocations: 41.69 kB / 0.4897 GB, free: 10.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000361/0.1702, allocations: 390.2 kB / 0.4901 GB, free: 10.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.1704, allocations: 142 kB / 0.4902 GB, free: 10.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.1704, allocations: 12 kB / 0.4903 GB, free: 10.44 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1706, allocations: 342.8 kB / 0.4906 GB, free: 10.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005597/0.1712, allocations: 209.1 kB / 0.4908 GB, free: 9.891 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006829/0.1719, allocations: 370.2 kB / 0.4911 GB, free: 9.457 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006887/0.1726, allocations: 290.4 kB / 0.4914 GB, free: 9.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1726, allocations: 8 kB / 0.4914 GB, free: 9.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001945/0.1746, allocations: 0.8125 MB / 0.4922 GB, free: 8.309 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.692e-05/0.1747, allocations: 49.69 kB / 0.4923 GB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.1747, allocations: 4 kB / 0.4923 GB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003926/0.1751, allocations: 73.67 kB / 0.4923 GB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007693/0.1759, allocations: 119.7 kB / 0.4924 GB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003257/0.1792, allocations: 2.904 MB / 0.4953 GB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006626/0.1799, allocations: 36.22 kB / 0.4953 GB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.18, allocations: 43.97 kB / 0.4954 GB, free: 4.805 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 (67): * Single equations (assignments): 64 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005564/0.1806, allocations: 269.3 kB / 0.4956 GB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.1807, allocations: 63.2 kB / 0.4957 GB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.1832, allocations: 0.716 MB / 0.4964 GB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.1833, allocations: 7.984 kB / 0.4964 GB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1833, allocations: 0 / 0.4964 GB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.1833, allocations: 4 kB / 0.4964 GB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.1874, allocations: 1.536 MB / 0.4979 GB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.1875, allocations: 0 / 0.4979 GB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005723/0.188, allocations: 59.91 kB / 0.4979 GB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004318/0.1885, allocations: 85.62 kB / 0.498 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.477e-05/0.1886, allocations: 15.98 kB / 0.498 GB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003222/0.1918, allocations: 2.889 MB / 0.5009 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.527e-05/0.1919, allocations: 7.953 kB / 0.5009 GB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003689/0.1956, allocations: 1.123 MB / 0.502 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/0.196, allocations: 168.4 kB / 0.5021 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.1961, allocations: 31.98 kB / 0.5022 GB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007258/0.1969, allocations: 47.89 kB / 0.5022 GB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.197, allocations: 31.89 kB / 0.5022 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-05/0.1971, allocations: 23.94 kB / 0.5023 GB, free: 13.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006286/0.1977, allocations: 358.8 kB / 0.5026 GB, free: 12.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1978, allocations: 0 / 0.5026 GB, free: 12.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009646/0.1987, allocations: 148 kB / 0.5027 GB, free: 12.76 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 (43): * Single equations (assignments): 34 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004133/0.2029, allocations: 1.886 MB / 0.5046 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.2055, allocations: 0.8936 MB / 0.5055 GB, free: 9.867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.2056, allocations: 0 / 0.5055 GB, free: 9.867 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.2072, allocations: 0.5018 MB / 0.5059 GB, free: 9.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.2083, allocations: 142 kB / 0.5061 GB, free: 9.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.2197, allocations: 7.632 MB / 0.5135 GB, free: 1.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008686/0.2206, allocations: 0.9838 MB / 0.5145 GB, free: 376 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005398/0.2211, allocations: 231.3 kB / 0.5147 GB, free: 148 kB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/0.2212, allocations: 3.938 kB / 0.5147 GB, free: 144 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.277/3.498, allocations: 16.3 MB / 0.5306 GB, free: 47.11 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)