Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001041/0.001041, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001092/0.001092, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.326/1.326, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1828/0.1828, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 68.08 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.0945, allocations: 58.06 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.008452/0.103, allocations: 6.931 MB / 463.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003448/0.1065, allocations: 2.029 MB / 465.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004706/0.107, allocations: 23.88 kB / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.1083, allocations: 0.4969 MB / 466.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.1095, allocations: 0.556 MB / 467 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008682/0.1104, allocations: 403.2 kB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.1118, allocations: 1.399 MB / 468.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009655/0.1128, allocations: 0.8224 MB / 469.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008212/0.1136, allocations: 0.6073 MB / 470.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009925/0.1146, allocations: 0.6737 MB / 470.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002204/0.1149, allocations: 104 kB / 471 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009071/0.1158, allocations: 0.5538 MB / 471.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000477/0.1163, allocations: 0.4988 MB / 472 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007175/0.117, allocations: 0.5599 MB / 472.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.1185, allocations: 1.499 MB / 474.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1185, allocations: 4 kB / 474.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1185, allocations: 0 / 474.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.527e-05/0.1186, allocations: 0 / 474.1 MB, free: 6.715 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003255/0.1218, allocations: 1.57 MB / 475.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1219, allocations: 15.89 kB / 475.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002594/0.1222, allocations: 156.3 kB / 475.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008739/0.123, allocations: 163.5 kB / 476 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.1242, allocations: 0.6864 MB / 476.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.1244, allocations: 183.4 kB / 476.9 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.1246, allocations: 103.9 kB / 477 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.1274, allocations: 1.528 MB / 478.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.1274, allocations: 7.938 kB / 478.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.1275, allocations: 36 kB / 478.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000173/0.1277, allocations: 73.95 kB / 478.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0023/0.13, allocations: 1.159 MB / 479.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006315/0.1363, allocations: 4.804 MB / 484.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.1392, allocations: 1.122 MB / 485.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/0.1405, allocations: 0.5695 MB / 486.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.867e-05/0.1405, allocations: 16.53 kB / 486.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.1419, allocations: 0.7106 MB / 487 MB, free: 9.398 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 2.675e-06/0.1419, allocations: 0 / 487 MB, free: 9.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=81): time 0.006854/0.1487, allocations: 3.189 MB / 490.2 MB, free: 6.113 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.887e-05/0.1488, allocations: 123.5 kB / 490.3 MB, free: 5.969 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006395/0.1495, allocations: 0.5965 MB / 490.9 MB, free: 5.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.537e-05/0.1496, allocations: 53.69 kB / 491 MB, free: 5.305 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003174/0.1499, allocations: 455 kB / 491.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.1501, allocations: 276.2 kB / 491.7 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.1504, allocations: 194.5 kB / 491.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1506, allocations: 390.8 kB / 492.2 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006911/0.1513, allocations: 490 kB / 492.7 MB, free: 3.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008058/0.1521, allocations: 0.7499 MB / 493.5 MB, free: 2.652 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.1535, allocations: 1.25 MB / 494.7 MB, free: 1.281 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1535, allocations: 4 kB / 494.7 MB, free: 1.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002266/0.1558, allocations: 1.584 MB / 496.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.767e-05/0.1559, allocations: 69.61 kB / 496.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001788/0.1577, allocations: 1.326 MB / 497.7 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003961/0.1581, allocations: 117.5 kB / 497.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000784/0.1589, allocations: 195.7 kB / 498 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002612/0.1615, allocations: 3.368 MB / 0.4896 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006567/0.1622, allocations: 67.94 kB / 0.4897 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.1623, allocations: 80.03 kB / 0.4898 GB, free: 10.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005359/0.1629, allocations: 377.3 kB / 0.4901 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.1631, allocations: 83.05 kB / 0.4902 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002668/0.1657, allocations: 1.27 MB / 0.4914 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/0.1658, allocations: 12 kB / 0.4915 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.1658, allocations: 8 kB / 0.4915 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.1658, allocations: 7.922 kB / 0.4915 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004285/0.1701, allocations: 2.44 MB / 0.4939 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.1701, allocations: 3.984 kB / 0.4939 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007235/0.1708, allocations: 143.8 kB / 0.494 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.171, allocations: 36.94 kB / 0.494 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.13e-05/0.171, allocations: 27.97 kB / 0.4941 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.1722, allocations: 1.63 MB / 0.4957 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.1722, allocations: 7.969 kB / 0.4957 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003786/0.176, allocations: 1.923 MB / 0.4975 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003531/0.1764, allocations: 240.1 kB / 0.4978 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.1766, allocations: 83.94 kB / 0.4978 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007509/0.1773, allocations: 91.81 kB / 0.4979 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.1775, allocations: 52.58 kB / 0.498 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.654e-05/0.1775, allocations: 27.98 kB / 0.498 GB, free: 1.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004546/0.178, allocations: 398.8 kB / 0.4984 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.178, allocations: 0 / 0.4984 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008967/0.1789, allocations: 244 kB / 0.4986 GB, free: 0.707 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.004162/0.1831, allocations: 2.541 MB / 0.5011 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003467/0.1866, allocations: 1.979 MB / 0.503 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.1866, allocations: 0 / 0.503 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.1879, allocations: 0.655 MB / 0.5037 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.1889, allocations: 175.1 kB / 0.5038 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.201, allocations: 9.4 MB / 0.513 GB, free: 1.418 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007002/0.2017, allocations: 1.114 MB / 0.5141 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006509/0.2024, allocations: 242.5 kB / 0.5143 GB, free: 36 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1692/0.3716, allocations: 321.5 kB / 0.5147 GB, free: 70.74 MB / 398.1 MB Notification: Performance of SimCode: time 1.733e-06/0.3716, allocations: 0 / 0.5147 GB, free: 70.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05758/0.4292, allocations: 18.5 MB / 0.5327 GB, free: 65.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.36/9.79, allocations: 0 / 0.5327 GB, free: 65.59 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)