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/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.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.001356/0.001356, allocations: 114.9 kB / 16.63 MB, free: 6.812 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.001505/0.001505, allocations: 186 kB / 17.55 MB, free: 5.934 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.351/1.351, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1695/0.1695, allocations: 38 MB / 329.4 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.28 kB / 398.4 MB, free: 34.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.09023, allocations: 58.06 MB / 456.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.00765/0.0979, allocations: 7.945 MB / 464.4 MB, free: 288 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002828/0.1007, allocations: 1.757 MB / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007017/0.1015, allocations: 55.62 kB / 466.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003527/0.1018, allocations: 95.3 kB / 466.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009771/0.1028, allocations: 390.3 kB / 466.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.1033, allocations: 207.7 kB / 466.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.1045, allocations: 1.118 MB / 468 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004283/0.1049, allocations: 409.7 kB / 468.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000691/0.1056, allocations: 0.4902 MB / 468.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007511/0.1064, allocations: 0.5606 MB / 469.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.1065, allocations: 64 kB / 469.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001605/0.1067, allocations: 68 kB / 469.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002842/0.107, allocations: 335.2 kB / 469.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004176/0.1074, allocations: 410 kB / 470.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006912/0.1081, allocations: 0.8994 MB / 471.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.1081, allocations: 0 / 471.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1081, allocations: 0 / 471.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.166e-05/0.1081, allocations: 0 / 471.2 MB, free: 9.445 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001818/0.1099, allocations: 1.152 MB / 472.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.11, allocations: 11.89 kB / 472.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.1101, allocations: 110.7 kB / 472.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.1103, allocations: 87.91 kB / 472.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007628/0.111, allocations: 0.5689 MB / 473.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.414e-05/0.1111, allocations: 120.6 kB / 473.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.806e-05/0.1112, allocations: 64 kB / 473.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.1126, allocations: 0.8652 MB / 474.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1126, allocations: 0 / 474.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.939e-05/0.1127, allocations: 31.94 kB / 474.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001026/0.1128, allocations: 37.28 kB / 474.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.1139, allocations: 0.6218 MB / 474.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003139/0.117, allocations: 2.755 MB / 477.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.1185, allocations: 0.9083 MB / 478.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006298/0.1191, allocations: 328.8 kB / 478.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.1192, allocations: 4.328 kB / 478.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006159/0.1198, allocations: 346.7 kB / 479.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.944e-06/0.1198, allocations: 3.938 kB / 479.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.003581/0.1234, allocations: 1.975 MB / 481.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.1235, allocations: 110.8 kB / 481.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004625/0.1239, allocations: 0.5144 MB / 481.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/0.124, allocations: 41.7 kB / 481.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.1242, allocations: 355.8 kB / 482.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.1243, allocations: 146 kB / 482.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.1245, allocations: 118.1 kB / 482.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1246, allocations: 370.8 kB / 482.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.1249, allocations: 225 kB / 483 MB, free: 13.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/0.1253, allocations: 394.2 kB / 483.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006396/0.1259, allocations: 0.6094 MB / 484 MB, free: 11.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1259, allocations: 4 kB / 484 MB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001074/0.127, allocations: 0.9056 MB / 484.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/0.127, allocations: 49.69 kB / 485 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1271, allocations: 7.938 kB / 485 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002416/0.1273, allocations: 94 kB / 485.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/0.1277, allocations: 103.8 kB / 485.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002082/0.1297, allocations: 3.259 MB / 488.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.1301, allocations: 31.98 kB / 488.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.07e-05/0.1301, allocations: 39.97 kB / 488.5 MB, free: 7.094 MB / 366.1 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.0002631/0.1304, allocations: 269.6 kB / 488.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.308e-05/0.1305, allocations: 67.31 kB / 488.8 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.1318, allocations: 0.7003 MB / 489.5 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1318, allocations: 4 kB / 489.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1318, allocations: 4 kB / 489.5 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1318, allocations: 3.984 kB / 489.5 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.1339, allocations: 1.539 MB / 491.1 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1339, allocations: 0 / 491.1 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.1341, allocations: 71.89 kB / 491.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002416/0.1344, allocations: 97.62 kB / 491.2 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.1344, allocations: 15.98 kB / 491.3 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.1364, allocations: 3.247 MB / 494.5 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1364, allocations: 3.938 kB / 494.5 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.1382, allocations: 1.071 MB / 495.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.1383, allocations: 168.4 kB / 495.7 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.81e-05/0.1384, allocations: 27.98 kB / 495.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.1388, allocations: 43.94 kB / 495.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.13e-05/0.1389, allocations: 31.89 kB / 495.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/0.1389, allocations: 19.98 kB / 495.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003139/0.1392, allocations: 354.8 kB / 496.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1392, allocations: 0 / 496.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005484/0.1398, allocations: 152 kB / 496.4 MB, free: 14.74 MB / 382.1 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.001963/0.1418, allocations: 1.634 MB / 498 MB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.1431, allocations: 0.9647 MB / 499 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1431, allocations: 0 / 499 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007674/0.1439, allocations: 0.4975 MB / 499.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007103/0.1446, allocations: 156.8 kB / 499.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007002/0.1516, allocations: 6.419 MB / 0.4942 GB, free: 4.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.1521, allocations: 0.9682 MB / 0.4951 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003129/0.1525, allocations: 108.9 kB / 0.4952 GB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.1527, allocations: 227.3 kB / 0.4954 GB, free: 3.332 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1527, allocations: 0 / 0.4954 GB, free: 3.332 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.851/2.003, allocations: 12.93 MB / 0.5081 GB, free: 6.598 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/2.004, allocations: 230.7 kB / 0.5083 GB, free: 6.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.521/4.524, allocations: 3.938 kB / 0.5083 GB, free: 6.328 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)