Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007972/0.0007973, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.0009445/0.0009447, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.4 MB / 223.7 MB, free: 12.99 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1721/0.1721, allocations: 38.06 MB / 310.1 MB, free: 5.883 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005232/0.0005232, allocations: 12 kB / 377.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2712, allocations: 56.33 MB / 433.5 MB, free: 18.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.004571/0.2759, allocations: 4.468 MB / 438 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.2778, allocations: 1.151 MB / 439.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000441/0.2783, allocations: 23.81 kB / 439.1 MB, free: 13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002232/0.2785, allocations: 39.69 kB / 439.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005948/0.2791, allocations: 187.1 kB / 439.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.2794, allocations: 87.91 kB / 439.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005768/0.28, allocations: 0.6309 MB / 440.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.2802, allocations: 131.3 kB / 440.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.2805, allocations: 171.1 kB / 440.4 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004135/0.2809, allocations: 231.1 kB / 440.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.044e-05/0.281, allocations: 16 kB / 440.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.705e-05/0.2811, allocations: 12 kB / 440.6 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2812, allocations: 107.6 kB / 440.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.2813, allocations: 196.8 kB / 440.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.2816, allocations: 346.7 kB / 441.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2816, allocations: 0 / 441.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2816, allocations: 0 / 441.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.2816, allocations: 0 / 441.3 MB, free: 10.86 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001033/0.2827, allocations: 0.6401 MB / 441.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2827, allocations: 12.03 kB / 441.9 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.937e-05/0.2828, allocations: 36.47 kB / 441.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.2833, allocations: 383.1 kB / 442.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.2833, allocations: 20.56 kB / 442.3 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.839e-05/0.2834, allocations: 24 kB / 442.4 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.2838, allocations: 372.7 kB / 442.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.2838, allocations: 4 kB / 442.7 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.2838, allocations: 11.98 kB / 442.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2839, allocations: 8 kB / 442.8 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003252/0.2842, allocations: 254 kB / 443 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.2856, allocations: 1.458 MB / 444.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.2858, allocations: 153.1 kB / 444.6 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.2859, allocations: 85.67 kB / 444.7 MB, free: 7.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2859, allocations: 0 / 444.7 MB, free: 7.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.286, allocations: 34.5 kB / 444.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.863e-06/0.286, allocations: 7.922 kB / 444.7 MB, free: 7.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.001018/0.287, allocations: 0.6759 MB / 445.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.2871, allocations: 85.23 kB / 445.5 MB, free: 6.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.2873, allocations: 300.5 kB / 445.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.2874, allocations: 25.7 kB / 445.8 MB, free: 5.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.99e-05/0.2875, allocations: 223.5 kB / 446 MB, free: 5.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.711e-05/0.2875, allocations: 59.19 kB / 446.1 MB, free: 5.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.2876, allocations: 25.7 kB / 446.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.204e-05/0.2876, allocations: 334.8 kB / 446.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.894e-05/0.2877, allocations: 67.95 kB / 446.5 MB, free: 5.262 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.2879, allocations: 160.8 kB / 446.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.2881, allocations: 264.6 kB / 446.9 MB, free: 4.754 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2881, allocations: 4 kB / 446.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003596/0.2885, allocations: 288.9 kB / 447.2 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2885, allocations: 4 kB / 447.2 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2885, allocations: 4 kB / 447.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.2886, allocations: 4 kB / 447.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000231/0.2888, allocations: 55.91 kB / 447.3 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.2888, allocations: 7.984 kB / 447.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.289, allocations: 20.38 kB / 447.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.289, allocations: 19.98 kB / 447.3 MB, free: 4.348 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.2892, allocations: 165.7 kB / 447.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.2892, allocations: 31.56 kB / 447.5 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003288/0.2896, allocations: 232 kB / 447.7 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2896, allocations: 4 kB / 447.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2896, allocations: 0 / 447.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2896, allocations: 3.984 kB / 447.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005971/0.2902, allocations: 0.624 MB / 448.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2902, allocations: 0 / 448.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.2904, allocations: 39.98 kB / 448.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2904, allocations: 0 / 448.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.2904, allocations: 4 kB / 448.4 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.2904, allocations: 0 / 448.4 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2904, allocations: 7.938 kB / 448.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.2908, allocations: 436 kB / 448.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.2909, allocations: 104.8 kB / 449 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.2909, allocations: 4 kB / 449 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.2911, allocations: 11.98 kB / 449 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.2911, allocations: 15.89 kB / 449 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2911, allocations: 4 kB / 449 MB, free: 2.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001496/0.2913, allocations: 219.1 kB / 449.2 MB, free: 2.355 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2913, allocations: 0 / 449.2 MB, free: 2.355 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00031/0.2916, allocations: 63.94 kB / 449.3 MB, free: 2.293 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.358e-05/0.2917, allocations: 99.17 kB / 449.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.292, allocations: 188.5 kB / 449.5 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.292, allocations: 0 / 449.5 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.2921, allocations: 88.02 kB / 449.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005014/0.2926, allocations: 60.61 kB / 449.7 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009279/0.2935, allocations: 0.8173 MB / 450.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.2938, allocations: 0.807 MB / 451.3 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001852/0.294, allocations: 58.92 kB / 451.4 MB, free: 120 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.765e-05/0.294, allocations: 23.44 kB / 451.4 MB, free: 96 kB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2941, allocations: 0 / 451.4 MB, free: 96 kB / 318.1 MB Notification: Performance of Templates: time 0.006167/0.3002, allocations: 2.801 MB / 454.2 MB, free: 13.3 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) Environment - environmentSimulation: