Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 112 kB / 17.07 MB, free: 5.945 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.001165/0.001165, allocations: 196 kB / 18.01 MB, free: 5.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1842/0.1842, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 60.14 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3705, allocations: 58.06 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.0063/0.3768, allocations: 4.347 MB / 0.5083 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.3787, allocations: 0.9314 MB / 0.5092 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.379, allocations: 11.28 kB / 0.5093 GB, free: 4.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002347/0.3792, allocations: 53.33 kB / 0.5093 GB, free: 4.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006377/0.3799, allocations: 247.5 kB / 0.5095 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.3802, allocations: 104.7 kB / 0.5096 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005753/0.3808, allocations: 0.4982 MB / 0.5101 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.381, allocations: 148.3 kB / 0.5103 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.3814, allocations: 230 kB / 0.5105 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004421/0.3818, allocations: 269.2 kB / 0.5107 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.185e-05/0.3819, allocations: 23.34 kB / 0.5108 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.559e-05/0.382, allocations: 27.91 kB / 0.5108 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.3822, allocations: 142.7 kB / 0.5109 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.3824, allocations: 176.5 kB / 0.5111 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000466/0.3828, allocations: 368 kB / 0.5115 GB, free: 3.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3828, allocations: 0.9375 kB / 0.5115 GB, free: 3.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3829, allocations: 0 / 0.5115 GB, free: 3.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3829, allocations: 0 / 0.5115 GB, free: 3.117 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001161/0.384, allocations: 0.6595 MB / 0.5121 GB, free: 2.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3841, allocations: 14.22 kB / 0.5121 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.781e-05/0.3842, allocations: 38.97 kB / 0.5121 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005442/0.3847, allocations: 386.1 kB / 0.5125 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.3848, allocations: 23.78 kB / 0.5125 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.287e-05/0.3848, allocations: 25.86 kB / 0.5126 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005505/0.3854, allocations: 352.1 kB / 0.5129 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.3854, allocations: 1.641 kB / 0.5129 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.3854, allocations: 11.19 kB / 0.5129 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.3856, allocations: 25.31 kB / 0.5129 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.386, allocations: 242 kB / 0.5132 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.3875, allocations: 1.375 MB / 0.5145 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003775/0.3879, allocations: 163.8 kB / 0.5147 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.3881, allocations: 101.3 kB / 0.5148 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.3882, allocations: 1.797 kB / 0.5148 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.3882, allocations: 37.52 kB / 0.5148 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.694e-06/0.3882, allocations: 0 / 0.5148 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001307/0.3895, allocations: 0.7666 MB / 0.5156 GB, free: 212 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.3896, allocations: 83.38 kB / 0.5156 GB, free: 112 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.3899, allocations: 301.1 kB / 0.5159 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.3899, allocations: 25.7 kB / 0.5159 GB, free: 15.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.3901, allocations: 216.4 kB / 0.5161 GB, free: 15.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.607e-05/0.3902, allocations: 51.89 kB / 0.5162 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.733e-05/0.3903, allocations: 52.06 kB / 0.5162 GB, free: 15.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3904, allocations: 339.8 kB / 0.5166 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.3906, allocations: 67.03 kB / 0.5166 GB, free: 15.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.3908, allocations: 177.5 kB / 0.5168 GB, free: 15.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.3912, allocations: 252 kB / 0.517 GB, free: 14.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3912, allocations: 1.031 kB / 0.517 GB, free: 14.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005912/0.3918, allocations: 325.8 kB / 0.5174 GB, free: 14.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.3919, allocations: 6.672 kB / 0.5174 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.3919, allocations: 3.5 kB / 0.5174 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/0.3921, allocations: 51.94 kB / 0.5174 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.3923, allocations: 51.16 kB / 0.5175 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.3939, allocations: 1.606 MB / 0.519 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.3941, allocations: 14.12 kB / 0.519 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.3942, allocations: 10.73 kB / 0.5191 GB, free: 13.33 MB / 398.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000262/0.3944, allocations: 171.2 kB / 0.5192 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.3945, allocations: 24.92 kB / 0.5192 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004821/0.395, allocations: 244.2 kB / 0.5195 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.395, allocations: 6.469 kB / 0.5195 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.395, allocations: 0 / 0.5195 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.395, allocations: 2.344 kB / 0.5195 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009867/0.396, allocations: 0.6376 MB / 0.5201 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.396, allocations: 1.031 kB / 0.5201 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.3961, allocations: 21.38 kB / 0.5201 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/0.3964, allocations: 58.98 kB / 0.5202 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.3964, allocations: 17.02 kB / 0.5202 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00183/0.3982, allocations: 1.607 MB / 0.5218 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3983, allocations: 0 / 0.5218 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007522/0.399, allocations: 407 kB / 0.5222 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.3991, allocations: 103.3 kB / 0.5223 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.221e-05/0.3992, allocations: 3.734 kB / 0.5223 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.3993, allocations: 8.891 kB / 0.5223 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.3994, allocations: 10.06 kB / 0.5223 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.3994, allocations: 12.5 kB / 0.5223 GB, free: 10.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002856/0.3997, allocations: 208.9 kB / 0.5225 GB, free: 10.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3997, allocations: 0 / 0.5225 GB, free: 10.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005125/0.4002, allocations: 65.38 kB / 0.5226 GB, free: 10.64 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.4004, allocations: 104.7 kB / 0.5227 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006767/0.4011, allocations: 306.6 kB / 0.5229 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4011, allocations: 5.219 kB / 0.5229 GB, free: 10.37 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.4015, allocations: 207.3 kB / 0.5231 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005585/0.402, allocations: 62.27 kB / 0.5232 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.4034, allocations: 0.7245 MB / 0.5239 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.4038, allocations: 0.8116 MB / 0.5247 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.404, allocations: 48.47 kB / 0.5248 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.212e-05/0.404, allocations: 21.19 kB / 0.5248 GB, free: 9.035 MB / 398.1 MB Notification: Performance of SimCode: time 1.814e-06/0.4041, allocations: 0 / 0.5248 GB, free: 9.035 MB / 398.1 MB Notification: Performance of Templates: time 0.008326/0.4124, allocations: 2.986 MB / 0.5277 GB, free: 8.797 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)