Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008497/0.0008497, 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.191/1.191, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0007569/0.0007569, allocations: 80.8 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1654/0.1654, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003148, allocations: 12 kB / 423.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2178, allocations: 56.33 MB / 479.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.006354/0.2242, allocations: 8.273 MB / 487.9 MB, free: 3.574 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.228, allocations: 2.725 MB / 490.6 MB, free: 1.637 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006061/0.2287, allocations: 56.5 kB / 490.7 MB, free: 1.613 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000626/0.2293, allocations: 264.7 kB / 490.9 MB, free: 1.477 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.2305, allocations: 0.5921 MB / 491.5 MB, free: 1.145 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.2318, allocations: 474.8 kB / 492 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.2333, allocations: 1.559 MB / 493.6 MB, free: 392 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001546/0.2349, allocations: 1.098 MB / 494.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007815/0.2356, allocations: 469.1 kB / 495.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009874/0.2366, allocations: 0.6701 MB / 495.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.2368, allocations: 41.47 kB / 495.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005645/0.2373, allocations: 230.6 kB / 496 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005129/0.2379, allocations: 483.4 kB / 496.5 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000548/0.2384, allocations: 499.4 kB / 497 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.2395, allocations: 0.9828 MB / 498 MB, free: 14.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2395, allocations: 4 kB / 498 MB, free: 14.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2395, allocations: 0 / 498 MB, free: 14.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.2396, allocations: 1.156 kB / 498 MB, free: 14.7 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002085/0.2417, allocations: 1.156 MB / 499.1 MB, free: 13.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2417, allocations: 9.312 kB / 499.2 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009136/0.2426, allocations: 167.6 kB / 499.3 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.2438, allocations: 0.7075 MB / 0.4883 GB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.009e-05/0.2438, allocations: 73.97 kB / 0.4884 GB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.2441, allocations: 100.8 kB / 0.4885 GB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.2459, allocations: 1.206 MB / 0.4897 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.2459, allocations: 7.344 kB / 0.4897 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.824e-05/0.246, allocations: 40.55 kB / 0.4897 GB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002345/0.2463, allocations: 65.67 kB / 0.4898 GB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.2479, allocations: 0.9996 MB / 0.4907 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005725/0.2536, allocations: 4.788 MB / 0.4954 GB, free: 7.926 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.2547, allocations: 0.6616 MB / 0.4961 GB, free: 7.562 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006374/0.2553, allocations: 448.9 kB / 0.4965 GB, free: 7.336 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.689e-05/0.2554, allocations: 11.73 kB / 0.4965 GB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007205/0.2561, allocations: 0.5041 MB / 0.497 GB, free: 6.988 MB / 330.7 MB Notification: Performance of pre-optimization done (n=69): time 2.735e-06/0.2562, allocations: 0 / 0.497 GB, free: 6.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.004535/0.2607, allocations: 2.774 MB / 0.4997 GB, free: 5.289 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.2608, allocations: 163.6 kB / 0.4999 GB, free: 5.102 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006446/0.2614, allocations: 0.5909 MB / 0.5004 GB, free: 4.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.2615, allocations: 46.61 kB / 0.5005 GB, free: 4.703 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.2619, allocations: 482.8 kB / 0.5009 GB, free: 4.281 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.2621, allocations: 256.1 kB / 0.5012 GB, free: 4.062 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-05/0.2621, allocations: 15.75 kB / 0.5012 GB, free: 4.051 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2623, allocations: 395 kB / 0.5016 GB, free: 3.676 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005809/0.2629, allocations: 369.8 kB / 0.5019 GB, free: 3.445 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006936/0.2636, allocations: 0.6271 MB / 0.5025 GB, free: 2.703 MB / 330.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: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00663/0.2702, allocations: 3.466 MB / 0.5059 GB, free: 15.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.2703, allocations: 0 / 0.5059 GB, free: 15.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002135/0.2724, allocations: 1.332 MB / 0.5072 GB, free: 13.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.2724, allocations: 33.7 kB / 0.5073 GB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.2725, allocations: 8 kB / 0.5073 GB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005933/0.2731, allocations: 243 kB / 0.5075 GB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.2741, allocations: 267.5 kB / 0.5078 GB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004824/0.279, allocations: 5.585 MB / 0.5132 GB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006011/0.2796, allocations: 43.95 kB / 0.5132 GB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-05/0.2797, allocations: 36 kB / 0.5133 GB, free: 7.09 MB / 346.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$PRE.switch.t0,$PRE.switch.open,$PRE.switch.closed,$whenCondition2,switch.control[1],switch.t0,switch.open,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005688/0.2803, allocations: 383 kB / 0.5136 GB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.2804, allocations: 79.05 kB / 0.5137 GB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.2823, allocations: 1.137 MB / 0.5148 GB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.2823, allocations: 12 kB / 0.5148 GB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2823, allocations: 4 kB / 0.5148 GB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.2824, allocations: 7.984 kB / 0.5149 GB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.2857, allocations: 2.246 MB / 0.517 GB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.2857, allocations: 4.156 kB / 0.5171 GB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008515/0.2866, allocations: 183.8 kB / 0.5172 GB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006677/0.2873, allocations: 246.3 kB / 0.5175 GB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.055e-05/0.2874, allocations: 27.97 kB / 0.5175 GB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005345/0.2927, allocations: 5.503 MB / 0.5229 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2927, allocations: 4.219 kB / 0.5229 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.2952, allocations: 1.642 MB / 0.5245 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.2954, allocations: 148.2 kB / 0.5246 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.2955, allocations: 27.92 kB / 0.5246 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.2959, allocations: 27.92 kB / 0.5247 GB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.296, allocations: 52.48 kB / 0.5247 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.2961, allocations: 31.98 kB / 0.5247 GB, free: 10.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004577/0.2965, allocations: 407 kB / 0.5251 GB, free: 10.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2966, allocations: 0 / 0.5251 GB, free: 10.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001015/0.2976, allocations: 280 kB / 0.5254 GB, free: 10.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001921/0.2978, allocations: 123.1 kB / 0.5255 GB, free: 9.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001991/0.2998, allocations: 1.384 MB / 0.5269 GB, free: 8.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2998, allocations: 0 / 0.5269 GB, free: 8.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.3011, allocations: 0.9132 MB / 0.5278 GB, free: 7.531 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009462/0.302, allocations: 176.6 kB / 0.5279 GB, free: 7.359 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.3054, allocations: 2.701 MB / 0.5306 GB, free: 4.605 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006636/0.3061, allocations: 1.111 MB / 0.5317 GB, free: 3.469 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.3063, allocations: 63.42 kB / 0.5317 GB, free: 3.406 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.3063, allocations: 0 / 0.5317 GB, free: 3.406 MB / 362.7 MB Notification: Performance of Templates: time 0.02232/0.3286, allocations: 20.93 MB / 0.5522 GB, free: 14.45 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)