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.002462/0.002462, allocations: 354.4 kB / 16.57 MB, free: 5.59 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 3.502/3.502, allocations: 388.9 MB / 406.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003435/0.003435, allocations: 225.4 kB / 451.6 MB, free: 14.59 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6513/0.6513, allocations: 76 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005422/0.0005424, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06926/0.06983, allocations: 53.23 MB / 0.6736 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006545/0.07641, allocations: 7.063 MB / 0.6805 GB, free: 53.72 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.07911, allocations: 1.731 MB / 0.6822 GB, free: 51.98 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000426/0.07956, allocations: 59.56 kB / 0.6823 GB, free: 51.93 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000289/0.07987, allocations: 123.1 kB / 0.6824 GB, free: 51.8 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009718/0.08085, allocations: 489.3 kB / 0.6828 GB, free: 51.32 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005703/0.08144, allocations: 259.5 kB / 0.6831 GB, free: 51.07 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.08251, allocations: 1.305 MB / 0.6844 GB, free: 49.76 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004018/0.08292, allocations: 296.5 kB / 0.6846 GB, free: 49.46 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004677/0.08341, allocations: 394.2 kB / 0.685 GB, free: 49.08 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006406/0.08406, allocations: 0.4945 MB / 0.6855 GB, free: 48.58 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 8.451e-05/0.08417, allocations: 28 kB / 0.6855 GB, free: 48.55 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.0843, allocations: 32 kB / 0.6856 GB, free: 48.52 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000285/0.0846, allocations: 295.2 kB / 0.6858 GB, free: 48.23 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.08478, allocations: 165.3 kB / 0.686 GB, free: 48.07 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005975/0.08539, allocations: 0.6974 MB / 0.6867 GB, free: 47.37 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.08543, allocations: 4 kB / 0.6867 GB, free: 47.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.672e-06/0.08544, allocations: 0 / 0.6867 GB, free: 47.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.08546, allocations: 0 / 0.6867 GB, free: 47.36 MB / 442.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.001672/0.08714, allocations: 1.014 MB / 0.6877 GB, free: 46.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.08719, allocations: 12.83 kB / 0.6877 GB, free: 46.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.08735, allocations: 86.97 kB / 0.6878 GB, free: 46.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008763/0.08824, allocations: 0.5524 MB / 0.6883 GB, free: 45.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.08839, allocations: 116.7 kB / 0.6884 GB, free: 45.47 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.08854, allocations: 64 kB / 0.6885 GB, free: 45.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.09021, allocations: 0.877 MB / 0.6893 GB, free: 44.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.09025, allocations: 3.938 kB / 0.6893 GB, free: 44.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.481e-05/0.09035, allocations: 27.98 kB / 0.6894 GB, free: 44.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001154/0.09047, allocations: 41.28 kB / 0.6894 GB, free: 44.42 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.09188, allocations: 0.6257 MB / 0.69 GB, free: 43.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.09571, allocations: 2.77 MB / 0.6927 GB, free: 40.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/0.09753, allocations: 0.9252 MB / 0.6936 GB, free: 39.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.09856, allocations: 326.2 kB / 0.6939 GB, free: 39.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.09862, allocations: 8.312 kB / 0.6939 GB, free: 39.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007891/0.09942, allocations: 362.5 kB / 0.6943 GB, free: 39.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 4.16e-06/0.09944, allocations: 4 kB / 0.6943 GB, free: 39.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=42): time 0.004573/0.104, allocations: 2.021 MB / 0.6963 GB, free: 37.05 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.1041, allocations: 130.7 kB / 0.6964 GB, free: 36.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006101/0.1047, allocations: 0.5027 MB / 0.6969 GB, free: 36.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.1048, allocations: 37.7 kB / 0.6969 GB, free: 36.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/0.105, allocations: 359.7 kB / 0.6973 GB, free: 35.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.1051, allocations: 142 kB / 0.6974 GB, free: 35.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.1052, allocations: 12 kB / 0.6974 GB, free: 35.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.608e-05/0.1053, allocations: 374.7 kB / 0.6978 GB, free: 35.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003904/0.1057, allocations: 209.1 kB / 0.698 GB, free: 35.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004562/0.1062, allocations: 378.2 kB / 0.6983 GB, free: 34.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.1067, allocations: 302.3 kB / 0.6986 GB, free: 34.51 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.842e-06/0.1067, allocations: 0 / 0.6986 GB, free: 34.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001383/0.1081, allocations: 0.8589 MB / 0.6995 GB, free: 33.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.803e-05/0.1081, allocations: 53.69 kB / 0.6995 GB, free: 33.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.1082, allocations: 4 kB / 0.6995 GB, free: 33.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003476/0.1085, allocations: 89.64 kB / 0.6996 GB, free: 33.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004704/0.109, allocations: 104.2 kB / 0.6997 GB, free: 33.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.1112, allocations: 3.001 MB / 0.7026 GB, free: 30.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.1116, allocations: 27.98 kB / 0.7027 GB, free: 30.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-05/0.1117, allocations: 51.95 kB / 0.7027 GB, free: 30.01 MB / 442.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 (66): * Single equations (assignments): 63 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003645/0.1121, allocations: 273.7 kB / 0.703 GB, free: 29.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.42e-05/0.1122, allocations: 63.19 kB / 0.703 GB, free: 29.67 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.1138, allocations: 0.7238 MB / 0.7037 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7e-06/0.1138, allocations: 4 kB / 0.7037 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1138, allocations: 4 kB / 0.7037 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.847e-06/0.1139, allocations: 3.984 kB / 0.7037 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.1166, allocations: 1.547 MB / 0.7053 GB, free: 27.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.803e-06/0.1166, allocations: 4.062 kB / 0.7053 GB, free: 27.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003532/0.117, allocations: 63.89 kB / 0.7053 GB, free: 27.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003275/0.1173, allocations: 93.62 kB / 0.7054 GB, free: 27.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.687e-05/0.1174, allocations: 11.98 kB / 0.7054 GB, free: 27.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002027/0.1194, allocations: 2.989 MB / 0.7083 GB, free: 23.83 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.662e-06/0.1195, allocations: 0 / 0.7083 GB, free: 23.83 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.1217, allocations: 1.11 MB / 0.7094 GB, free: 22.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.1219, allocations: 172.4 kB / 0.7096 GB, free: 22.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.1221, allocations: 27.98 kB / 0.7096 GB, free: 22.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.1225, allocations: 47.94 kB / 0.7097 GB, free: 22.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.1226, allocations: 31.91 kB / 0.7097 GB, free: 22.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.143e-05/0.1227, allocations: 19.98 kB / 0.7097 GB, free: 22.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004004/0.1231, allocations: 350.8 kB / 0.71 GB, free: 22.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.88e-07/0.1231, allocations: 0 / 0.71 GB, free: 22.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007685/0.1239, allocations: 152 kB / 0.7102 GB, free: 21.87 MB / 442.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 (42): * Single equations (assignments): 33 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001472/0.124, allocations: 131.1 kB / 0.7103 GB, free: 21.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.1257, allocations: 0.894 MB / 0.7112 GB, free: 20.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.079e-06/0.1257, allocations: 0 / 0.7112 GB, free: 20.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009637/0.1266, allocations: 0.5095 MB / 0.7117 GB, free: 20.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008816/0.1275, allocations: 139.8 kB / 0.7118 GB, free: 20.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.1302, allocations: 1.813 MB / 0.7136 GB, free: 18.28 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.1307, allocations: 0.9838 MB / 0.7145 GB, free: 17.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003958/0.1311, allocations: 100.9 kB / 0.7146 GB, free: 17.17 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.1312, allocations: 43.44 kB / 0.7147 GB, free: 17.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.486e-06/0.1312, allocations: 4 kB / 0.7147 GB, free: 17.12 MB / 442.7 MB Notification: Performance of Templates: time 0.01509/0.1463, allocations: 6.843 MB / 0.7214 GB, free: 10.31 MB / 442.7 MB