Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.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.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 112.5 kB / 17.69 MB, free: 5.426 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.002208/0.002208, allocations: 191 kB / 18.63 MB, free: 4.496 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.478/1.478, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1726/0.1726, allocations: 37.99 MB / 309.8 MB, free: 5.977 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.001513/0.001513, allocations: 63.91 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2861, allocations: 55.25 MB / 432 MB, free: 19.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007187/0.2933, allocations: 7.58 MB / 439.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003504/0.2969, allocations: 2.369 MB / 442 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.2972, allocations: 27.81 kB / 442 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.2989, allocations: 0.8479 MB / 442.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008133/0.2998, allocations: 0.5052 MB / 443.4 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009611/0.3007, allocations: 447 kB / 443.8 MB, free: 7.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009456/0.3017, allocations: 1.274 MB / 445.1 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000658/0.3024, allocations: 0.6738 MB / 445.7 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005207/0.3029, allocations: 0.5602 MB / 446.3 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006513/0.3036, allocations: 0.6501 MB / 447 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.642e-05/0.3037, allocations: 83.88 kB / 447 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003355/0.304, allocations: 207.7 kB / 447.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000304/0.3043, allocations: 490.7 kB / 447.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000386/0.3047, allocations: 0.5287 MB / 448.2 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008261/0.3056, allocations: 1.242 MB / 449.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3056, allocations: 0 / 449.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3056, allocations: 0 / 449.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.3056, allocations: 0 / 449.5 MB, free: 2.125 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001858/0.3075, allocations: 1.3 MB / 450.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.3075, allocations: 11.89 kB / 450.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007939/0.3083, allocations: 171.4 kB / 451 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.3095, allocations: 0.7274 MB / 451.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.767e-05/0.3096, allocations: 70.34 kB / 451.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.3097, allocations: 83.88 kB / 451.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.3115, allocations: 1.175 MB / 453 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.094e-05/0.3116, allocations: 7.938 kB / 453 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.012e-05/0.3117, allocations: 36 kB / 453.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.338e-05/0.3118, allocations: 53.98 kB / 453.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.3132, allocations: 0.9327 MB / 454 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005776/0.319, allocations: 4.772 MB / 458.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.3201, allocations: 0.6678 MB / 459.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005328/0.3207, allocations: 371.8 kB / 459.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.712e-05/0.3208, allocations: 20.53 kB / 459.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005921/0.3214, allocations: 439.7 kB / 460.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=65): time 2.695e-06/0.3214, allocations: 0 / 460.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.005097/0.3265, allocations: 2.444 MB / 462.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.3266, allocations: 170.8 kB / 462.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000672/0.3273, allocations: 0.6016 MB / 463.5 MB, free: 3.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.3274, allocations: 37.7 kB / 463.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004237/0.3278, allocations: 486.5 kB / 464 MB, free: 3.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.328, allocations: 220.9 kB / 464.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.3283, allocations: 154.5 kB / 464.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002243/0.3285, allocations: 386.8 kB / 464.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000473/0.329, allocations: 289.8 kB / 465 MB, free: 1.969 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007016/0.3297, allocations: 0.5524 MB / 465.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.3309, allocations: 0.9573 MB / 466.6 MB, free: 208 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.3309, allocations: 7.938 kB / 466.6 MB, free: 200 kB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00201/0.3329, allocations: 1.219 MB / 467.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.333, allocations: 33.7 kB / 467.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.333, allocations: 8 kB / 467.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.3341, allocations: 342 kB / 468.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000506/0.3346, allocations: 143.8 kB / 468.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006303/0.3409, allocations: 5.391 MB / 473.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005891/0.3415, allocations: 35.97 kB / 473.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.3416, allocations: 40 kB / 473.8 MB, free: 8.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005637/0.3422, allocations: 375 kB / 474.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.3423, allocations: 79 kB / 474.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002274/0.3446, allocations: 1.033 MB / 475.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3446, allocations: 11.94 kB / 475.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.3446, allocations: 4 kB / 475.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3447, allocations: 3.984 kB / 475.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.3481, allocations: 2.055 MB / 477.3 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.3481, allocations: 4 kB / 477.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003313/0.3485, allocations: 71.89 kB / 477.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008632/0.3494, allocations: 321.5 kB / 477.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.3494, allocations: 23.91 kB / 477.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005894/0.3553, allocations: 5.294 MB / 483 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/0.3553, allocations: 7.984 kB / 483 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.3572, allocations: 1.12 MB / 484.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.3574, allocations: 148.2 kB / 484.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.884e-05/0.3575, allocations: 16 kB / 484.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.3578, allocations: 19.98 kB / 484.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.358, allocations: 68.44 kB / 484.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.223e-05/0.358, allocations: 16 kB / 484.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004882/0.3585, allocations: 419 kB / 484.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3585, allocations: 0 / 484.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001028/0.3595, allocations: 268 kB / 485.1 MB, free: 12.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001768/0.3597, allocations: 119.2 kB / 485.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.3617, allocations: 1.156 MB / 486.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3618, allocations: 0 / 486.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.363, allocations: 0.7565 MB / 487.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009222/0.3639, allocations: 189.3 kB / 487.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.3672, allocations: 1.739 MB / 489 MB, free: 8.762 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009144/0.3681, allocations: 1.099 MB / 490.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005441/0.3687, allocations: 174.4 kB / 490.3 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.3688, allocations: 59.42 kB / 490.4 MB, free: 7.398 MB / 366.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3688, allocations: 0 / 490.4 MB, free: 7.398 MB / 366.1 MB Notification: Performance of Templates: time 0.02006/0.3889, allocations: 10.77 MB / 0.4894 GB, free: 12.65 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)