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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001537/0.001537, allocations: 172.7 kB / 15.77 MB, free: 6.32 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.599/1.599, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007639/0.0007639, allocations: 90.34 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1672/0.1672, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003948, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 56.33 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007369/0.1171, allocations: 6.227 MB / 485.3 MB, free: 11.78 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0033/0.1205, allocations: 1.837 MB / 487.1 MB, free: 9.934 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004932/0.121, allocations: 43.69 kB / 487.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004821/0.1215, allocations: 147 kB / 487.3 MB, free: 9.746 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009261/0.1224, allocations: 389.9 kB / 487.7 MB, free: 9.363 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007379/0.1232, allocations: 291.6 kB / 488 MB, free: 9.078 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.1246, allocations: 1.371 MB / 489.4 MB, free: 7.703 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004341/0.125, allocations: 267.6 kB / 489.6 MB, free: 7.445 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007637/0.1258, allocations: 434.3 kB / 490 MB, free: 7.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007744/0.1266, allocations: 0.5218 MB / 490.6 MB, free: 6.496 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.1267, allocations: 40 kB / 490.6 MB, free: 6.457 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1268, allocations: 40 kB / 490.6 MB, free: 6.418 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003099/0.1272, allocations: 287.3 kB / 490.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.1274, allocations: 161.3 kB / 491.1 MB, free: 5.973 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007909/0.1282, allocations: 0.7988 MB / 491.9 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1282, allocations: 0 / 491.9 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1282, allocations: 0 / 491.9 MB, free: 5.172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.607e-05/0.1282, allocations: 0 / 491.9 MB, free: 5.172 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.002421/0.1306, allocations: 1.09 MB / 493 MB, free: 4.016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1307, allocations: 15.92 kB / 493 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.1309, allocations: 83.16 kB / 493.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.1321, allocations: 0.6111 MB / 493.7 MB, free: 3.266 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004658/0.1325, allocations: 346.9 kB / 494 MB, free: 2.879 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.1327, allocations: 56 kB / 494.1 MB, free: 2.824 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.135, allocations: 1.109 MB / 495.2 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.135, allocations: 3.938 kB / 495.2 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.301e-05/0.1351, allocations: 23.95 kB / 495.2 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.1351, allocations: 16 kB / 495.2 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002793/0.1379, allocations: 1.198 MB / 496.4 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.1429, allocations: 3.264 MB / 499.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.1452, allocations: 0.8314 MB / 0.4888 GB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.1466, allocations: 0.5924 MB / 0.4894 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.323e-05/0.1467, allocations: 12.31 kB / 0.4894 GB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001598/0.1483, allocations: 0.6851 MB / 0.49 GB, free: 10.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.264e-06/0.1483, allocations: 0 / 0.49 GB, free: 10.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.003933/0.1522, allocations: 1.55 MB / 0.4916 GB, free: 9.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.1523, allocations: 140.5 kB / 0.4917 GB, free: 9.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004042/0.1528, allocations: 389.8 kB / 0.4921 GB, free: 8.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.938e-05/0.1528, allocations: 41.7 kB / 0.4921 GB, free: 8.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.153, allocations: 296.2 kB / 0.4924 GB, free: 8.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.1532, allocations: 161.8 kB / 0.4925 GB, free: 8.285 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.1532, allocations: 8 kB / 0.4925 GB, free: 8.277 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1534, allocations: 362.8 kB / 0.4929 GB, free: 7.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.1544, allocations: 492.9 kB / 0.4934 GB, free: 7.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.1556, allocations: 0.5952 MB / 0.4939 GB, free: 6.789 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.1567, allocations: 0.4918 MB / 0.4944 GB, free: 6.297 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1567, allocations: 0 / 0.4944 GB, free: 6.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002353/0.159, allocations: 1.164 MB / 0.4956 GB, free: 5.117 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/0.1591, allocations: 45.69 kB / 0.4956 GB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1591, allocations: 4.219 kB / 0.4956 GB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1592, allocations: 12 kB / 0.4956 GB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006041/0.1652, allocations: 1.588 MB / 0.4972 GB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007765/0.173, allocations: 4.825 MB / 0.5019 GB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008017/0.1738, allocations: 135.4 kB / 0.502 GB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.153e-05/0.1739, allocations: 47.91 kB / 0.5021 GB, free: 14.19 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.000453/0.1744, allocations: 251.3 kB / 0.5023 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.896e-05/0.1745, allocations: 55.42 kB / 0.5023 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002661/0.1771, allocations: 1.102 MB / 0.5034 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.1772, allocations: 11.98 kB / 0.5034 GB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1772, allocations: 3.953 kB / 0.5034 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.1772, allocations: 7.984 kB / 0.5034 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003989/0.1812, allocations: 2.25 MB / 0.5056 GB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.1812, allocations: 0 / 0.5056 GB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007215/0.1884, allocations: 1.834 MB / 0.5074 GB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.557e-05/0.1885, allocations: 7.938 kB / 0.5074 GB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.413e-05/0.1886, allocations: 19.92 kB / 0.5075 GB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.1886, allocations: 4 kB / 0.5075 GB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1886, allocations: 4 kB / 0.5075 GB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004248/0.1929, allocations: 1.891 MB / 0.5093 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003326/0.1932, allocations: 200.4 kB / 0.5095 GB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.1933, allocations: 31.98 kB / 0.5095 GB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007145/0.194, allocations: 119.9 kB / 0.5097 GB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.1943, allocations: 91.84 kB / 0.5097 GB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.022e-05/0.1943, allocations: 19.98 kB / 0.5098 GB, free: 6.145 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003193/0.1946, allocations: 267.1 kB / 0.51 GB, free: 5.887 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1947, allocations: 4 kB / 0.51 GB, free: 5.883 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006843/0.1953, allocations: 183.5 kB / 0.5102 GB, free: 5.703 MB / 362.7 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 (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.0001989/0.1956, allocations: 131 kB / 0.5103 GB, free: 5.566 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007885/0.2034, allocations: 2.621 MB / 0.5129 GB, free: 2.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.2035, allocations: 8.312 kB / 0.5129 GB, free: 2.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003612/0.2071, allocations: 1.152 MB / 0.514 GB, free: 1.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008549/0.208, allocations: 125.5 kB / 0.5141 GB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1772/0.3852, allocations: 1.927 MB / 0.516 GB, free: 53.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.3857, allocations: 0.9321 MB / 0.5169 GB, free: 52.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/0.3861, allocations: 46.31 kB / 0.517 GB, free: 52.96 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.3861, allocations: 0 / 0.517 GB, free: 52.96 MB / 362.7 MB Notification: Performance of Templates: time 0.01718/0.4033, allocations: 11.33 MB / 0.528 GB, free: 49.92 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)