Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001499/0.001502, allocations: 191.3 kB / 15.77 MB, free: 5.988 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.987/1.987, 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.001136/0.001136, allocations: 102.8 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2505/0.2505, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004332, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.009615/0.1181, allocations: 5.959 MB / 485.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004605/0.1228, allocations: 1.868 MB / 487 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005996/0.1234, allocations: 43.69 kB / 487 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005911/0.124, allocations: 139.1 kB / 487.1 MB, free: 9.887 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.1252, allocations: 334.9 kB / 487.5 MB, free: 9.559 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.1263, allocations: 279.5 kB / 487.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.1276, allocations: 0.7018 MB / 488.4 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005351/0.1282, allocations: 263.6 kB / 488.7 MB, free: 8.328 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008723/0.129, allocations: 406.7 kB / 489.1 MB, free: 7.93 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008627/0.1299, allocations: 406.8 kB / 489.5 MB, free: 7.531 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.1301, allocations: 36 kB / 489.5 MB, free: 7.496 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.1303, allocations: 40 kB / 489.6 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004555/0.1307, allocations: 279.3 kB / 489.8 MB, free: 7.184 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002538/0.131, allocations: 149.4 kB / 490 MB, free: 7.031 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.1322, allocations: 0.7988 MB / 490.8 MB, free: 6.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1322, allocations: 4 kB / 490.8 MB, free: 6.227 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1322, allocations: 0 / 490.8 MB, free: 6.227 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1322, allocations: 0 / 490.8 MB, free: 6.227 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003715/0.136, allocations: 1.086 MB / 491.9 MB, free: 5.074 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.136, allocations: 11.98 kB / 491.9 MB, free: 5.062 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002268/0.1363, allocations: 114.5 kB / 492 MB, free: 4.941 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002324/0.1365, allocations: 79.16 kB / 492.1 MB, free: 4.863 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.1385, allocations: 0.615 MB / 492.7 MB, free: 4.207 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007235/0.1392, allocations: 350.8 kB / 493 MB, free: 3.816 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.1394, allocations: 59.94 kB / 493.1 MB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/0.1436, allocations: 1.093 MB / 494.2 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.1436, allocations: 7.938 kB / 494.2 MB, free: 2.621 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.1438, allocations: 24 kB / 494.2 MB, free: 2.598 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.1438, allocations: 12 kB / 494.2 MB, free: 2.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00545/0.1493, allocations: 1.198 MB / 495.4 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008579/0.1579, allocations: 3.268 MB / 498.7 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004397/0.1623, allocations: 0.8471 MB / 499.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.1625, allocations: 4.438 kB / 499.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003005/0.1655, allocations: 0.689 MB / 0.4885 GB, free: 12.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.849e-06/0.1655, allocations: 0 / 0.4885 GB, free: 12.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.008126/0.1737, allocations: 1.561 MB / 0.49 GB, free: 10.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.1738, allocations: 136.5 kB / 0.4902 GB, free: 10.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006868/0.1745, allocations: 385.9 kB / 0.4905 GB, free: 10.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002186/0.1748, allocations: 41.69 kB / 0.4906 GB, free: 10.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003136/0.1751, allocations: 334.8 kB / 0.4909 GB, free: 9.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.1754, allocations: 161.8 kB / 0.4911 GB, free: 9.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/0.1755, allocations: 16.03 kB / 0.4911 GB, free: 9.766 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1757, allocations: 338.8 kB / 0.4914 GB, free: 9.426 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/0.1778, allocations: 492.9 kB / 0.4919 GB, free: 8.941 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002353/0.1802, allocations: 0.5874 MB / 0.4924 GB, free: 8.309 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002111/0.1824, allocations: 0.4957 MB / 0.4929 GB, free: 7.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1824, allocations: 0 / 0.4929 GB, free: 7.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004701/0.1871, allocations: 1.137 MB / 0.494 GB, free: 6.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.219e-05/0.1873, allocations: 53.91 kB / 0.4941 GB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.1873, allocations: 4 kB / 0.4941 GB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-05/0.1873, allocations: 8 kB / 0.4941 GB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01276/0.2001, allocations: 1.588 MB / 0.4956 GB, free: 5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/0.2157, allocations: 4.973 MB / 0.5005 GB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.2171, allocations: 139.5 kB / 0.5006 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.2173, allocations: 39.97 kB / 0.5007 GB, free: 15.59 MB / 362.7 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 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005723/0.2179, allocations: 251.3 kB / 0.5009 GB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.218, allocations: 51.34 kB / 0.501 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005262/0.2233, allocations: 1.11 MB / 0.502 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.2233, allocations: 4 kB / 0.502 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2233, allocations: 8 kB / 0.5021 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.2234, allocations: 7.938 kB / 0.5021 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007363/0.2307, allocations: 2.195 MB / 0.5042 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.2308, allocations: 7.953 kB / 0.5042 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02107/0.2519, allocations: 1.842 MB / 0.506 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.997e-05/0.252, allocations: 4 kB / 0.506 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.2521, allocations: 15.98 kB / 0.506 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.609e-06/0.2521, allocations: 4 kB / 0.506 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.2522, allocations: 7.938 kB / 0.506 GB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008191/0.2604, allocations: 1.966 MB / 0.508 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005098/0.2609, allocations: 208.3 kB / 0.5082 GB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/0.2611, allocations: 27.98 kB / 0.5082 GB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/0.2625, allocations: 119.9 kB / 0.5083 GB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000411/0.2629, allocations: 95.78 kB / 0.5084 GB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/0.263, allocations: 19.98 kB / 0.5084 GB, free: 7.473 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004693/0.2635, allocations: 267.1 kB / 0.5087 GB, free: 7.215 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2635, allocations: 0 / 0.5087 GB, free: 7.215 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009338/0.2644, allocations: 179.6 kB / 0.5088 GB, free: 7.039 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008702/0.2731, allocations: 2.947 MB / 0.5117 GB, free: 4.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01617/0.2894, allocations: 2.632 MB / 0.5143 GB, free: 1.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.2894, allocations: 0 / 0.5143 GB, free: 1.371 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007278/0.2967, allocations: 1.152 MB / 0.5154 GB, free: 224 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.2978, allocations: 121.6 kB / 0.5155 GB, free: 104 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3027/0.6005, allocations: 6.624 MB / 0.522 GB, free: 50.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005697/0.6012, allocations: 0.9446 MB / 0.5229 GB, free: 50.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006868/0.6019, allocations: 199.4 kB / 0.5231 GB, free: 50.13 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6019, allocations: 0 / 0.5231 GB, free: 50.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.882/3.483, allocations: 13.79 MB / 0.5366 GB, free: 45.04 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)