Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 108.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1781/0.1781, allocations: 38.03 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 61.53 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09582/0.09731, allocations: 58.06 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007389/0.1047, allocations: 5.969 MB / 462.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002547/0.1073, allocations: 1.551 MB / 464.5 MB, free: 396 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004614/0.1078, allocations: 23.88 kB / 464.5 MB, free: 372 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005359/0.1084, allocations: 142.9 kB / 464.6 MB, free: 228 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000966/0.1094, allocations: 362.2 kB / 465 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006389/0.11, allocations: 311.5 kB / 465.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001371/0.1114, allocations: 1.337 MB / 466.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004694/0.1119, allocations: 384.6 kB / 467 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009187/0.1128, allocations: 0.5217 MB / 467.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009454/0.1138, allocations: 0.5414 MB / 468.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.114, allocations: 92 kB / 468.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000248/0.1142, allocations: 96 kB / 468.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004019/0.1146, allocations: 351.2 kB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005543/0.1152, allocations: 402.3 kB / 469 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.1162, allocations: 1.048 MB / 470 MB, free: 10.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1162, allocations: 4 kB / 470.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1163, allocations: 0 / 470.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.915e-05/0.1163, allocations: 0 / 470.1 MB, free: 10.8 MB / 350.1 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.002701/0.119, allocations: 1.188 MB / 471.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1191, allocations: 19.83 kB / 471.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001514/0.1192, allocations: 110.7 kB / 471.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.1194, allocations: 80.09 kB / 471.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.1206, allocations: 0.6315 MB / 472.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004102/0.121, allocations: 339.2 kB / 472.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.1211, allocations: 59.91 kB / 472.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.1233, allocations: 1.046 MB / 473.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.1233, allocations: 0 / 473.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.733e-05/0.1234, allocations: 24 kB / 473.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.1234, allocations: 23.92 kB / 473.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002671/0.1261, allocations: 1.081 MB / 474.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004979/0.1311, allocations: 3.217 MB / 477.9 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/0.1332, allocations: 0.7495 MB / 478.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001353/0.1346, allocations: 0.526 MB / 479.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.55e-05/0.1346, allocations: 4.438 kB / 479.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001418/0.1361, allocations: 0.6264 MB / 479.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.266e-06/0.1361, allocations: 4 kB / 479.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003821/0.1399, allocations: 1.356 MB / 481.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.14, allocations: 152.4 kB / 481.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.1404, allocations: 389.9 kB / 481.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.696e-05/0.1405, allocations: 41.7 kB / 481.7 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/0.1407, allocations: 292.3 kB / 482 MB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.1409, allocations: 161.7 kB / 482.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.1411, allocations: 118.1 kB / 482.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1412, allocations: 358.8 kB / 482.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.1423, allocations: 456.9 kB / 483 MB, free: 13.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.1433, allocations: 0.5523 MB / 483.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/0.1452, allocations: 0.8896 MB / 484.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1452, allocations: 0 / 484.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002337/0.1476, allocations: 1.089 MB / 485.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.628e-05/0.1477, allocations: 45.69 kB / 485.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1477, allocations: 4 kB / 485.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.1477, allocations: 4 kB / 485.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005867/0.1536, allocations: 1.116 MB / 486.7 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00789/0.1615, allocations: 4.697 MB / 491.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007656/0.1623, allocations: 103.5 kB / 491.5 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/0.1624, allocations: 43.91 kB / 491.6 MB, free: 4.457 MB / 366.1 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 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004743/0.1629, allocations: 259.3 kB / 491.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.1631, allocations: 55.28 kB / 491.9 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002687/0.1658, allocations: 0.9849 MB / 492.9 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.1658, allocations: 4 kB / 492.9 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1658, allocations: 3.938 kB / 492.9 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.1658, allocations: 7.984 kB / 492.9 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00411/0.1699, allocations: 2.128 MB / 495 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.17, allocations: 4.188 kB / 495 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00709/0.1771, allocations: 1.287 MB / 496.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.1771, allocations: 4 kB / 496.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.811e-05/0.1772, allocations: 19.92 kB / 496.3 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/0.1772, allocations: 4 kB / 496.3 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.1772, allocations: 7.938 kB / 496.4 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004132/0.1813, allocations: 1.687 MB / 498 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003151/0.1817, allocations: 204.4 kB / 498.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.1818, allocations: 27.98 kB / 498.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007293/0.1826, allocations: 91.88 kB / 498.4 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.1828, allocations: 95.78 kB / 498.4 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.958e-05/0.1828, allocations: 19.98 kB / 498.5 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003153/0.1832, allocations: 267.2 kB / 498.7 MB, free: 13.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1832, allocations: 0 / 498.7 MB, free: 13.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006867/0.1839, allocations: 179.6 kB / 498.9 MB, free: 12.98 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004451/0.1883, allocations: 2.278 MB / 0.4894 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007684/0.196, allocations: 2.16 MB / 0.4915 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.1961, allocations: 0 / 0.4915 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003562/0.1996, allocations: 0.9683 MB / 0.4925 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009096/0.2006, allocations: 137.6 kB / 0.4926 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.2121, allocations: 6.604 MB / 0.4991 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005502/0.2126, allocations: 0.929 MB / 0.5 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005938/0.2133, allocations: 156.6 kB / 0.5001 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.2136, allocations: 203.4 kB / 0.5003 GB, free: 15.26 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2136, allocations: 0 / 0.5003 GB, free: 15.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03617/0.2498, allocations: 13.5 MB / 0.5135 GB, free: 1.941 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.93, allocations: 9.641 kB / 0.5135 GB, free: 1.934 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)