Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008979/0.0008979, allocations: 174.5 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.236/1.236, allocations: 205.4 MB / 222.2 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007156/0.0007156, allocations: 94.28 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1678/0.1678, allocations: 38.07 MB / 356.9 MB, free: 1.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003726, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2275, allocations: 56.32 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.008039/0.2356, allocations: 9.346 MB / 489 MB, free: 2.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004645/0.2403, allocations: 2.781 MB / 491.8 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001209/0.2415, allocations: 55.66 kB / 491.8 MB, free: 0.832 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.2427, allocations: 332 kB / 492.1 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002539/0.2452, allocations: 0.8645 MB / 493 MB, free: 252 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.2465, allocations: 408.2 kB / 493.4 MB, free: 72 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003193/0.2497, allocations: 2.311 MB / 495.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005695/0.2503, allocations: 314.4 kB / 496 MB, free: 15.14 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.252, allocations: 0.6923 MB / 496.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002432/0.2545, allocations: 1.111 MB / 497.8 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003946/0.2549, allocations: 62.47 kB / 497.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004943/0.2554, allocations: 63.56 kB / 497.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008596/0.2563, allocations: 0.5686 MB / 498.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.2575, allocations: 0.6151 MB / 499.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001226/0.2587, allocations: 1.201 MB / 0.4886 GB, free: 13.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2587, allocations: 0 / 0.4886 GB, free: 13.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2587, allocations: 0 / 0.4886 GB, free: 13.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.2588, allocations: 1.125 kB / 0.4886 GB, free: 13.32 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003697/0.2625, allocations: 1.651 MB / 0.4902 GB, free: 12.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2625, allocations: 13.53 kB / 0.4902 GB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003518/0.2629, allocations: 127.5 kB / 0.4903 GB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002393/0.2653, allocations: 1.134 MB / 0.4915 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.661e-05/0.2654, allocations: 74.8 kB / 0.4915 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.2656, allocations: 99.28 kB / 0.4916 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.2677, allocations: 1.314 MB / 0.4929 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.2678, allocations: 5.281 kB / 0.4929 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.2679, allocations: 40.86 kB / 0.4929 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006117/0.2685, allocations: 198.8 kB / 0.4931 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.2701, allocations: 0.9472 MB / 0.4941 GB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007303/0.2775, allocations: 4.534 MB / 0.4985 GB, free: 6.797 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.2791, allocations: 1.182 MB / 0.4996 GB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.2801, allocations: 0.7267 MB / 0.5004 GB, free: 5.309 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.466e-05/0.2802, allocations: 9 kB / 0.5004 GB, free: 5.297 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001293/0.2815, allocations: 0.9379 MB / 0.5013 GB, free: 4.332 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 3.056e-06/0.2815, allocations: 0 / 0.5013 GB, free: 4.332 MB / 330.7 MB Notification: Performance of matching and sorting (n=105): time 0.01148/0.293, allocations: 6.593 MB / 0.5077 GB, free: 13.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.2931, allocations: 208.9 kB / 0.5079 GB, free: 13.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008969/0.294, allocations: 0.747 MB / 0.5086 GB, free: 12.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.2942, allocations: 53.7 kB / 0.5087 GB, free: 12.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.2946, allocations: 488 kB / 0.5092 GB, free: 11.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003683/0.2949, allocations: 379 kB / 0.5095 GB, free: 11.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.081e-05/0.295, allocations: 28 kB / 0.5095 GB, free: 11.36 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2952, allocations: 365.9 kB / 0.5099 GB, free: 11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.2962, allocations: 0.6637 MB / 0.5105 GB, free: 10.33 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.2974, allocations: 0.9473 MB / 0.5115 GB, free: 9.293 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00718/0.3046, allocations: 3.515 MB / 0.5149 GB, free: 5.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.3046, allocations: 4 kB / 0.5149 GB, free: 5.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00489/0.3095, allocations: 2.749 MB / 0.5176 GB, free: 2.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-05/0.3096, allocations: 63.39 kB / 0.5177 GB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.3096, allocations: 8 kB / 0.5177 GB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003194/0.3128, allocations: 1.136 MB / 0.5188 GB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007655/0.3137, allocations: 179.7 kB / 0.5189 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/0.3261, allocations: 8.163 MB / 0.5269 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000998/0.3271, allocations: 111.9 kB / 0.527 GB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.3273, allocations: 48 kB / 0.5271 GB, free: 8.973 MB / 362.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.trafo.i1 = 0.0 $DER.lineF.i[2,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$PRE.switch2.switch_1.open,$PRE.switch1.switch_1.open,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * 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 {(5,88.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007704/0.328, allocations: 444.8 kB / 0.5275 GB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.3282, allocations: 102.8 kB / 0.5276 GB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003933/0.3322, allocations: 2.333 MB / 0.5299 GB, free: 6.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.3322, allocations: 11.98 kB / 0.5299 GB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-05/0.3322, allocations: 8 kB / 0.5299 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.3323, allocations: 7.922 kB / 0.5299 GB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005909/0.3382, allocations: 3.628 MB / 0.5334 GB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.3382, allocations: 4.031 kB / 0.5334 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005189/0.3387, allocations: 123.9 kB / 0.5336 GB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002752/0.3415, allocations: 1.038 MB / 0.5346 GB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001885/0.3417, allocations: 79.94 kB / 0.5346 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/0.3543, allocations: 14.92 MB / 0.5492 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3544, allocations: 0 / 0.5492 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005187/0.3596, allocations: 3.076 MB / 0.5522 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00074/0.3603, allocations: 315.7 kB / 0.5525 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003157/0.3607, allocations: 75.97 kB / 0.5526 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008035/0.3615, allocations: 99.8 kB / 0.5527 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003333/0.3618, allocations: 120.8 kB / 0.5528 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.3619, allocations: 39.95 kB / 0.5528 GB, free: 13 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006968/0.3626, allocations: 0.5068 MB / 0.5533 GB, free: 12.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3627, allocations: 0 / 0.5533 GB, free: 12.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001462/0.3641, allocations: 436 kB / 0.5538 GB, free: 12.07 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first,relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(3,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00028/0.3644, allocations: 174.8 kB / 0.5539 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004379/0.3688, allocations: 2.251 MB / 0.5561 GB, free: 9.605 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3688, allocations: 4.125 kB / 0.5561 GB, free: 9.602 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004069/0.3729, allocations: 2.765 MB / 0.5588 GB, free: 6.562 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/0.3746, allocations: 255 kB / 0.5591 GB, free: 6.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007042/0.3816, allocations: 4.989 MB / 0.5639 GB, free: 1.285 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009302/0.3826, allocations: 1.217 MB / 0.5651 GB, free: 40 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3829, allocations: 79.41 kB / 0.5652 GB, free: 15.96 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.3829, allocations: 0 / 0.5652 GB, free: 15.96 MB / 410.7 MB Notification: Performance of Templates: time 0.04645/0.4294, allocations: 43.89 MB / 0.6081 GB, free: 4.012 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)