Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.001171/0.001171, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.226/0.226, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.91 kB / 458.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3684, allocations: 58.06 MB / 0.5041 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005317/0.3738, allocations: 4.074 MB / 0.5081 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3752, allocations: 0.9068 MB / 0.509 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001811/0.3754, allocations: 15.47 kB / 0.509 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.3756, allocations: 45.59 kB / 0.509 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005046/0.3761, allocations: 178.9 kB / 0.5092 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.3764, allocations: 96.7 kB / 0.5093 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.3768, allocations: 404.3 kB / 0.5097 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.377, allocations: 119 kB / 0.5098 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.3773, allocations: 181.6 kB / 0.51 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000312/0.3776, allocations: 186 kB / 0.5101 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.3777, allocations: 19.22 kB / 0.5101 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.889e-05/0.3777, allocations: 19.12 kB / 0.5102 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3779, allocations: 88.17 kB / 0.5102 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.378, allocations: 148.7 kB / 0.5104 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.3783, allocations: 297.4 kB / 0.5107 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3783, allocations: 0 / 0.5107 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3784, allocations: 0 / 0.5107 GB, free: 3.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.3784, allocations: 1.188 kB / 0.5107 GB, free: 3.586 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008738/0.3793, allocations: 0.5875 MB / 0.5112 GB, free: 3.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3793, allocations: 12.86 kB / 0.5113 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.613e-05/0.3794, allocations: 36 kB / 0.5113 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.3798, allocations: 343.6 kB / 0.5116 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3799, allocations: 16.53 kB / 0.5116 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.651e-05/0.3799, allocations: 22.19 kB / 0.5117 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.3804, allocations: 287.4 kB / 0.5119 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3804, allocations: 5 kB / 0.5119 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.3804, allocations: 10.66 kB / 0.5119 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.3804, allocations: 5.469 kB / 0.512 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004601/0.3809, allocations: 182 kB / 0.5121 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.3823, allocations: 1.223 MB / 0.5133 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.3826, allocations: 109.6 kB / 0.5134 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.328e-05/0.3827, allocations: 44.25 kB / 0.5135 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3827, allocations: 5.156 kB / 0.5135 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.3827, allocations: 32.34 kB / 0.5135 GB, free: 1.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.174e-06/0.3827, allocations: 0 / 0.5135 GB, free: 1.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008455/0.3836, allocations: 493.6 kB / 0.514 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.3837, allocations: 79.72 kB / 0.5141 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002762/0.3839, allocations: 243.9 kB / 0.5143 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.384, allocations: 29.64 kB / 0.5143 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.3841, allocations: 198.7 kB / 0.5145 GB, free: 0.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.3842, allocations: 45.44 kB / 0.5145 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.563e-05/0.3842, allocations: 47.69 kB / 0.5146 GB, free: 484 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3844, allocations: 344 kB / 0.5149 GB, free: 144 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.824e-05/0.3845, allocations: 36.3 kB / 0.515 GB, free: 132 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.3846, allocations: 132.7 kB / 0.5151 GB, free: 15.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.385, allocations: 189.7 kB / 0.5153 GB, free: 15.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.385, allocations: 1.922 kB / 0.5153 GB, free: 15.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003839/0.3854, allocations: 209.3 kB / 0.5155 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.3854, allocations: 6.719 kB / 0.5155 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3854, allocations: 7.188 kB / 0.5155 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.3855, allocations: 4.406 kB / 0.5155 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.3857, allocations: 44.61 kB / 0.5155 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.3857, allocations: 5.969 kB / 0.5155 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.3858, allocations: 12.19 kB / 0.5155 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.3858, allocations: 9.469 kB / 0.5155 GB, free: 15.69 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 (24): * Single equations (assignments): 24 * 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.0001837/0.386, allocations: 155 kB / 0.5157 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.971e-05/0.3861, allocations: 21.28 kB / 0.5157 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003056/0.3864, allocations: 143 kB / 0.5159 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3864, allocations: 5.875 kB / 0.5159 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3864, allocations: 1.25 kB / 0.5159 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.3864, allocations: 4.688 kB / 0.5159 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006277/0.3871, allocations: 473.8 kB / 0.5163 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3871, allocations: 0.5625 kB / 0.5163 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.3872, allocations: 25.09 kB / 0.5163 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3872, allocations: 2.188 kB / 0.5163 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.3872, allocations: 5.969 kB / 0.5163 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3873, allocations: 5.812 kB / 0.5164 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3873, allocations: 1.984 kB / 0.5164 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000437/0.3877, allocations: 286 kB / 0.5166 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.3878, allocations: 100.5 kB / 0.5167 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.3878, allocations: 6.062 kB / 0.5167 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.3879, allocations: 10.05 kB / 0.5167 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.388, allocations: 6.484 kB / 0.5167 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.388, allocations: 4.328 kB / 0.5168 GB, free: 14.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.3882, allocations: 171.7 kB / 0.5169 GB, free: 14.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3882, allocations: 1.469 kB / 0.5169 GB, free: 14.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.3886, allocations: 47.53 kB / 0.517 GB, free: 14.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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 0.0001152/0.3887, allocations: 97.88 kB / 0.5171 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002634/0.3889, allocations: 110.9 kB / 0.5172 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.389, allocations: 1.344 kB / 0.5172 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.883e-05/0.3891, allocations: 50.45 kB / 0.5172 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.3896, allocations: 51.03 kB / 0.5173 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.3907, allocations: 0.5407 MB / 0.5178 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.3911, allocations: 0.7716 MB / 0.5185 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.3913, allocations: 33.73 kB / 0.5186 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.916e-05/0.3914, allocations: 24.41 kB / 0.5186 GB, free: 13.38 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3914, allocations: 0 / 0.5186 GB, free: 13.38 MB / 398.1 MB Notification: Performance of Templates: time 0.005942/0.3973, allocations: 2.033 MB / 0.5206 GB, free: 13.19 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)