Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001385/0.001388, allocations: 185.4 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.743/1.743, allocations: 194.5 MB / 211.6 MB, free: 7.609 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.001745/0.001745, allocations: 132.6 kB / 256.9 MB, free: 10.22 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.2168/0.2168, allocations: 38.02 MB / 340.1 MB, free: 13.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004113/0.0004115, allocations: 10.84 kB / 403.8 MB, free: 55.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07206/0.0725, allocations: 53.23 MB / 457 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005703/0.07824, allocations: 6.226 MB / 463.2 MB, free: 4.098 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.08073, allocations: 1.79 MB / 465 MB, free: 2.301 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003899/0.08114, allocations: 47.62 kB / 465.1 MB, free: 2.254 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004051/0.08156, allocations: 139.1 kB / 465.2 MB, free: 2.117 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006895/0.08227, allocations: 374.8 kB / 465.6 MB, free: 1.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005013/0.08278, allocations: 227.6 kB / 465.8 MB, free: 1.527 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004791/0.08328, allocations: 498.9 kB / 466.3 MB, free: 1.039 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003035/0.0836, allocations: 184.3 kB / 466.5 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003751/0.08399, allocations: 298.9 kB / 466.8 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004107/0.08441, allocations: 315 kB / 467.1 MB, free: 260 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.579e-05/0.08449, allocations: 28 kB / 467.1 MB, free: 232 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.429e-05/0.08459, allocations: 24 kB / 467.1 MB, free: 208 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.0848, allocations: 211.5 kB / 467.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.08498, allocations: 137.3 kB / 467.5 MB, free: 15.85 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006309/0.08562, allocations: 0.4987 MB / 468 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.654e-06/0.08564, allocations: 0 / 468 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.717e-06/0.08565, allocations: 0 / 468 MB, free: 15.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.907e-06/0.08567, allocations: 0 / 468 MB, free: 15.36 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001734/0.08741, allocations: 0.8512 MB / 468.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.08747, allocations: 8.031 kB / 468.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.08762, allocations: 71.09 kB / 468.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00099/0.08862, allocations: 0.4976 MB / 469.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.958e-05/0.08869, allocations: 40.98 kB / 469.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.696e-05/0.0888, allocations: 48 kB / 469.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.08999, allocations: 0.621 MB / 470.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.09002, allocations: 0 / 470.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-05/0.09009, allocations: 20 kB / 470.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/0.09022, allocations: 36.97 kB / 470.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.09126, allocations: 0.5112 MB / 470.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.0951, allocations: 2.234 MB / 472.9 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.0962, allocations: 495.4 kB / 473.4 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.09624, allocations: 4.062 kB / 473.4 MB, free: 9.695 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.09629, allocations: 38.56 kB / 473.4 MB, free: 9.648 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 4.722e-06/0.0963, allocations: 4 kB / 473.4 MB, free: 9.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.004178/0.1005, allocations: 1.721 MB / 475.2 MB, free: 7.844 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.1006, allocations: 81.11 kB / 475.2 MB, free: 7.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005575/0.1011, allocations: 417.8 kB / 475.6 MB, free: 7.328 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.181e-05/0.1012, allocations: 33.7 kB / 475.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.1015, allocations: 300.4 kB / 476 MB, free: 6.992 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.1016, allocations: 157.7 kB / 476.1 MB, free: 6.836 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.1017, allocations: 12 kB / 476.1 MB, free: 6.824 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.1019, allocations: 362.8 kB / 476.5 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000362/0.1023, allocations: 189 kB / 476.7 MB, free: 6.277 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004618/0.1027, allocations: 299.6 kB / 477 MB, free: 5.934 MB / 314.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.1052, allocations: 0.7631 MB / 477.7 MB, free: 5.156 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1053, allocations: 0 / 477.7 MB, free: 5.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001425/0.1067, allocations: 0.7027 MB / 478.4 MB, free: 4.445 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1067, allocations: 8.406 kB / 478.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1067, allocations: 8 kB / 478.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004801/0.1072, allocations: 136.7 kB / 478.6 MB, free: 4.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.1078, allocations: 107.9 kB / 478.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003369/0.1112, allocations: 2.334 MB / 481 MB, free: 1.719 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/0.1116, allocations: 31.95 kB / 481 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.804e-05/0.1117, allocations: 20 kB / 481.1 MB, free: 1.668 MB / 314.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003742/0.1121, allocations: 233 kB / 481.3 MB, free: 1.434 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.1122, allocations: 55.28 kB / 481.3 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.1136, allocations: 0.6425 MB / 482 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.1136, allocations: 8 kB / 482 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.443e-06/0.1136, allocations: 0 / 482 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.211e-06/0.1136, allocations: 3.953 kB / 482 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/0.1163, allocations: 1.364 MB / 483.4 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.038e-06/0.1164, allocations: 0 / 483.4 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004247/0.1168, allocations: 79.89 kB / 483.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005126/0.1173, allocations: 136.9 kB / 483.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.965e-05/0.1174, allocations: 15.98 kB / 483.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003485/0.1209, allocations: 2.346 MB / 485.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.371e-06/0.1209, allocations: 8 kB / 485.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.1227, allocations: 1.033 MB / 487 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.1229, allocations: 128.5 kB / 487.1 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.123, allocations: 12 kB / 487.1 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.1234, allocations: 19.98 kB / 487.1 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.84e-05/0.1235, allocations: 41.08 kB / 487.2 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.1235, allocations: 16 kB / 487.2 MB, free: 11.22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004194/0.124, allocations: 287.1 kB / 487.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.23e-07/0.124, allocations: 3.938 kB / 487.5 MB, free: 10.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007218/0.1247, allocations: 144 kB / 487.6 MB, free: 10.79 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001555/0.1249, allocations: 111.2 kB / 487.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.1262, allocations: 0.641 MB / 488.4 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.4e-06/0.1262, allocations: 192 / 488.4 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008319/0.127, allocations: 437 kB / 488.8 MB, free: 9.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007616/0.1278, allocations: 110.2 kB / 488.9 MB, free: 9.473 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.1306, allocations: 1.599 MB / 490.5 MB, free: 7.836 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007684/0.1314, allocations: 0.9372 MB / 491.4 MB, free: 6.871 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004701/0.1319, allocations: 104.7 kB / 491.5 MB, free: 6.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.1321, allocations: 47.36 kB / 491.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of SimCode: time 1.396e-06/0.1321, allocations: 0 / 491.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of Templates: time 0.01623/0.1483, allocations: 6.061 MB / 497.6 MB, free: 0.6836 MB / 330.7 MB