Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001336/0.001336, allocations: 184.8 kB / 16.38 MB, free: 5.621 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.721/1.721, allocations: 194.5 MB / 211.6 MB, free: 7.52 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.001851/0.001851, allocations: 124.6 kB / 256.9 MB, free: 10.14 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.2178/0.2178, allocations: 38.01 MB / 340.1 MB, free: 13.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004045, allocations: 15.66 kB / 403.8 MB, free: 55.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06702/0.06744, allocations: 53.23 MB / 457 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.005582/0.07307, allocations: 5.957 MB / 463 MB, free: 4.359 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002453/0.07556, allocations: 1.856 MB / 464.8 MB, free: 2.496 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003473/0.07593, allocations: 43.69 kB / 464.9 MB, free: 2.453 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003767/0.07632, allocations: 135.2 kB / 465 MB, free: 2.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000638/0.07697, allocations: 330.9 kB / 465.3 MB, free: 1.996 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006214/0.07761, allocations: 283.5 kB / 465.6 MB, free: 1.719 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006406/0.07827, allocations: 0.7018 MB / 466.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003681/0.07865, allocations: 259.7 kB / 466.6 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005428/0.07921, allocations: 406.7 kB / 467 MB, free: 372 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005221/0.07975, allocations: 410.8 kB / 467.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.07987, allocations: 36 kB / 467.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.08001, allocations: 40 kB / 467.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.08037, allocations: 279.3 kB / 467.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.08058, allocations: 153.4 kB / 467.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009772/0.08157, allocations: 0.7988 MB / 468.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.128e-06/0.08159, allocations: 0 / 468.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.646e-06/0.0816, allocations: 0 / 468.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.39e-06/0.08162, allocations: 0 / 468.7 MB, free: 14.66 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002444/0.08408, allocations: 1.086 MB / 469.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.08413, allocations: 8.031 kB / 469.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.08435, allocations: 83.14 kB / 469.8 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.0858, allocations: 0.6188 MB / 470.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005297/0.08634, allocations: 350.8 kB / 470.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.0865, allocations: 59.95 kB / 470.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002771/0.08928, allocations: 1.097 MB / 472 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.08932, allocations: 0 / 472 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.08946, allocations: 39.92 kB / 472 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.08949, allocations: 12 kB / 472 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003304/0.0928, allocations: 1.194 MB / 473.2 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006087/0.09891, allocations: 3.252 MB / 476.5 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.1016, allocations: 0.8456 MB / 477.3 MB, free: 5.715 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.1017, allocations: 8.438 kB / 477.3 MB, free: 5.707 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001824/0.1035, allocations: 0.6812 MB / 478 MB, free: 5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.384e-06/0.1035, allocations: 0 / 478 MB, free: 5 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.005204/0.1088, allocations: 1.561 MB / 479.5 MB, free: 3.434 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.1089, allocations: 140.5 kB / 479.7 MB, free: 3.266 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006173/0.1095, allocations: 385.8 kB / 480.1 MB, free: 2.883 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.501e-05/0.1096, allocations: 37.7 kB / 480.1 MB, free: 2.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.1099, allocations: 304.2 kB / 480.4 MB, free: 2.535 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.1101, allocations: 157.8 kB / 480.5 MB, free: 2.379 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/0.1102, allocations: 16.03 kB / 480.6 MB, free: 2.363 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.1104, allocations: 358.8 kB / 480.9 MB, free: 2.004 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.1117, allocations: 496.9 kB / 481.4 MB, free: 1.516 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.1131, allocations: 0.5874 MB / 482 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.1145, allocations: 0.4918 MB / 482.5 MB, free: 396 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.686e-06/0.1145, allocations: 0 / 482.5 MB, free: 396 kB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00309/0.1176, allocations: 1.16 MB / 483.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.7e-05/0.1177, allocations: 49.66 kB / 483.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1177, allocations: 8 kB / 483.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.1177, allocations: 8 kB / 483.7 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006548/0.1243, allocations: 1.588 MB / 485.3 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.1343, allocations: 4.977 MB / 490.3 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008485/0.1352, allocations: 135.5 kB / 490.4 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.1354, allocations: 39.98 kB / 490.4 MB, free: 8.141 MB / 330.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.0004679/0.1358, allocations: 259.1 kB / 490.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.136, allocations: 51.34 kB / 490.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003317/0.1393, allocations: 1.114 MB / 491.9 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.1393, allocations: 7.953 kB / 491.9 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.3e-06/0.1393, allocations: 0 / 491.9 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.1394, allocations: 11.98 kB / 491.9 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005093/0.1445, allocations: 2.195 MB / 494.1 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.895e-06/0.1445, allocations: 4 kB / 494.1 MB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008144/0.1526, allocations: 1.842 MB / 495.9 MB, free: 2.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/0.1527, allocations: 4 kB / 495.9 MB, free: 2.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.06e-05/0.1528, allocations: 15.98 kB / 495.9 MB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.131e-06/0.1528, allocations: 4 kB / 495.9 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.857e-06/0.1528, allocations: 3.938 kB / 495.9 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005601/0.1584, allocations: 1.958 MB / 497.9 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004102/0.1588, allocations: 212.3 kB / 498.1 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.159, allocations: 31.98 kB / 498.1 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008368/0.1598, allocations: 119.9 kB / 498.3 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002473/0.1601, allocations: 99.77 kB / 498.4 MB, free: 44 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.448e-05/0.1602, allocations: 16 kB / 498.4 MB, free: 28 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003957/0.1606, allocations: 267.2 kB / 498.6 MB, free: 15.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.94e-07/0.1606, allocations: 0 / 498.6 MB, free: 15.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007913/0.1614, allocations: 183.5 kB / 498.8 MB, free: 15.59 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.0001983/0.1616, allocations: 127.1 kB / 498.9 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009123/0.1708, allocations: 2.636 MB / 0.4898 GB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.607e-06/0.1708, allocations: 0 / 0.4898 GB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004339/0.1751, allocations: 1.195 MB / 0.491 GB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007472/0.1759, allocations: 117.6 kB / 0.4911 GB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004429/0.1803, allocations: 1.875 MB / 0.4929 GB, free: 9.578 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007288/0.1811, allocations: 0.9449 MB / 0.4939 GB, free: 8.605 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007562/0.1819, allocations: 164.6 kB / 0.494 GB, free: 8.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.1821, allocations: 39.42 kB / 0.494 GB, free: 8.406 MB / 346.7 MB Notification: Performance of SimCode: time 1.436e-06/0.1821, allocations: 3.938 kB / 0.494 GB, free: 8.402 MB / 346.7 MB Notification: Performance of Templates: time 0.01801/0.2001, allocations: 7.707 MB / 0.5016 GB, free: 0.7188 MB / 346.7 MB