Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00136/0.001363, allocations: 185.6 kB / 16.38 MB, free: 5.594 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.773/1.773, allocations: 194.5 MB / 211.6 MB, free: 8.574 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001774/0.001774, allocations: 108.7 kB / 256.9 MB, free: 11.2 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2296/0.2296, allocations: 38.01 MB / 340.1 MB, free: 13.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000452/0.0004522, allocations: 14.44 kB / 403.8 MB, free: 55.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06796/0.06843, allocations: 53.22 MB / 457 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006352/0.07483, allocations: 6.76 MB / 463.8 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.07752, allocations: 1.79 MB / 465.6 MB, free: 2.074 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004755/0.07802, allocations: 51.62 kB / 465.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003186/0.07835, allocations: 131.1 kB / 465.7 MB, free: 1.895 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000858/0.07922, allocations: 406.8 kB / 466.1 MB, free: 1.496 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005511/0.07979, allocations: 255.5 kB / 466.4 MB, free: 1.246 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005999/0.08041, allocations: 0.5809 MB / 467 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.08083, allocations: 304.5 kB / 467.3 MB, free: 376 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005247/0.08137, allocations: 362.6 kB / 467.6 MB, free: 12 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006333/0.08202, allocations: 342.9 kB / 468 MB, free: 15.67 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.47e-05/0.08213, allocations: 32 kB / 468 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.08227, allocations: 32 kB / 468 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003413/0.08262, allocations: 271.3 kB / 468.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.08287, allocations: 165.3 kB / 468.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008524/0.08373, allocations: 0.6819 MB / 469.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.08375, allocations: 4 kB / 469.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.08376, allocations: 0 / 469.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.08378, allocations: 0 / 469.1 MB, free: 14.49 MB / 314.7 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.002113/0.08591, allocations: 1.016 MB / 470.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.08596, allocations: 16.02 kB / 470.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.08615, allocations: 83.06 kB / 470.2 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.08725, allocations: 0.5524 MB / 470.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.08742, allocations: 112.7 kB / 470.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.08758, allocations: 71.86 kB / 471 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.08964, allocations: 0.873 MB / 471.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.0897, allocations: 0 / 471.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.915e-05/0.0898, allocations: 28 kB / 471.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001293/0.08994, allocations: 37.28 kB / 471.9 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.09155, allocations: 0.6334 MB / 472.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.09654, allocations: 2.77 MB / 475.3 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/0.09876, allocations: 0.9305 MB / 476.2 MB, free: 7.023 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.09881, allocations: 4.391 kB / 476.2 MB, free: 7.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000912/0.09974, allocations: 366.2 kB / 476.6 MB, free: 6.641 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.664e-06/0.09976, allocations: 0 / 476.6 MB, free: 6.641 MB / 314.7 MB Notification: Performance of matching and sorting (n=42): time 0.005265/0.105, allocations: 1.995 MB / 478.6 MB, free: 4.527 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.1051, allocations: 122.8 kB / 478.7 MB, free: 4.383 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008233/0.106, allocations: 0.5065 MB / 479.2 MB, free: 3.871 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.007e-05/0.1061, allocations: 45.7 kB / 479.3 MB, free: 3.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003413/0.1064, allocations: 355.8 kB / 479.6 MB, free: 3.465 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.1066, allocations: 138.1 kB / 479.8 MB, free: 3.328 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.1066, allocations: 12 kB / 479.8 MB, free: 3.316 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1069, allocations: 370.8 kB / 480.1 MB, free: 2.945 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/0.1073, allocations: 209.1 kB / 480.3 MB, free: 2.738 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005881/0.1079, allocations: 372.5 kB / 480.7 MB, free: 2.305 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005899/0.1085, allocations: 294.4 kB / 481 MB, free: 2.016 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.35e-06/0.1086, allocations: 7.938 kB / 481 MB, free: 2.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00171/0.1103, allocations: 0.8429 MB / 481.8 MB, free: 1.125 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.063e-05/0.1104, allocations: 58.27 kB / 481.9 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.1104, allocations: 11.98 kB / 481.9 MB, free: 1.051 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003099/0.1107, allocations: 77.67 kB / 482 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000501/0.1112, allocations: 107.8 kB / 482.1 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/0.1145, allocations: 2.899 MB / 485 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004639/0.115, allocations: 35.97 kB / 485 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.166e-05/0.1151, allocations: 39.92 kB / 485.1 MB, free: 13.62 MB / 330.7 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,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.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): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004806/0.1156, allocations: 273.7 kB / 485.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.1157, allocations: 59.25 kB / 485.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/0.1176, allocations: 0.7082 MB / 486.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.1176, allocations: 8 kB / 486.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.658e-06/0.1176, allocations: 3.953 kB / 486.1 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.1176, allocations: 3.984 kB / 486.1 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.1209, allocations: 1.524 MB / 487.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.405e-06/0.1209, allocations: 4 kB / 487.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004119/0.1214, allocations: 67.89 kB / 487.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003912/0.1218, allocations: 89.69 kB / 487.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/0.1218, allocations: 15.98 kB / 487.8 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003041/0.1249, allocations: 2.903 MB / 490.7 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.506e-06/0.1249, allocations: 0 / 490.7 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002781/0.1277, allocations: 1.115 MB / 491.8 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.128, allocations: 168.5 kB / 492 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.1282, allocations: 27.98 kB / 492 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.1287, allocations: 51.94 kB / 492.1 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.1288, allocations: 31.91 kB / 492.1 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/0.1289, allocations: 19.98 kB / 492.1 MB, free: 6.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005673/0.1295, allocations: 346.8 kB / 492.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.19e-07/0.1295, allocations: 0 / 492.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008721/0.1304, allocations: 152 kB / 492.6 MB, free: 5.586 MB / 330.7 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 (43): * Single equations (assignments): 34 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002063/0.1306, allocations: 135.2 kB / 492.7 MB, free: 5.445 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.1325, allocations: 0.893 MB / 493.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.178e-06/0.1325, allocations: 1.375 kB / 493.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.1338, allocations: 0.4895 MB / 494.1 MB, free: 3.992 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008411/0.1346, allocations: 142.1 kB / 494.3 MB, free: 3.852 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.138, allocations: 1.802 MB / 496.1 MB, free: 2.012 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008684/0.1389, allocations: 0.9837 MB / 497 MB, free: 1 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004776/0.1394, allocations: 109 kB / 497.1 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.1396, allocations: 43.42 kB / 497.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of SimCode: time 1.424e-06/0.1396, allocations: 0 / 497.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of Templates: time 0.01757/0.1572, allocations: 6.786 MB / 0.4922 GB, free: 10.09 MB / 346.7 MB