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.001347/0.001347, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001365/0.001364, allocations: 190.9 kB / 18.62 MB, free: 4.562 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.506/1.506, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1757/0.1757, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001556/0.001557, allocations: 71.03 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2376, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.00639/0.244, allocations: 7.591 MB / 439.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002879/0.2469, allocations: 2.365 MB / 442 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.2472, allocations: 31.81 kB / 442 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.2489, allocations: 0.8501 MB / 442.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007588/0.2497, allocations: 0.5014 MB / 443.3 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008408/0.2506, allocations: 443 kB / 443.8 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008453/0.2514, allocations: 1.282 MB / 445.1 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000624/0.2521, allocations: 0.6738 MB / 445.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004558/0.2525, allocations: 0.5601 MB / 446.3 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006169/0.2531, allocations: 0.6501 MB / 446.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.188e-05/0.2532, allocations: 76 kB / 447 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003004/0.2535, allocations: 215.7 kB / 447.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.2538, allocations: 486.8 kB / 447.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.2542, allocations: 0.5364 MB / 448.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007943/0.255, allocations: 1.23 MB / 449.5 MB, free: 1.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.255, allocations: 0 / 449.5 MB, free: 1.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.255, allocations: 0 / 449.5 MB, free: 1.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.255, allocations: 0 / 449.5 MB, free: 1.965 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.001764/0.2568, allocations: 1.3 MB / 450.8 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.873e-05/0.2568, allocations: 11.89 kB / 450.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007471/0.2576, allocations: 171.4 kB / 451 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.2588, allocations: 0.7311 MB / 451.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/0.2589, allocations: 66.34 kB / 451.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.259, allocations: 92.02 kB / 451.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.2606, allocations: 1.175 MB / 453 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.2607, allocations: 0 / 453 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/0.2608, allocations: 36 kB / 453 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-05/0.2608, allocations: 61.97 kB / 453.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.2623, allocations: 0.9249 MB / 454 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005395/0.2677, allocations: 4.768 MB / 458.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.2688, allocations: 0.6717 MB / 459.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004771/0.2693, allocations: 375.8 kB / 459.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.832e-05/0.2694, allocations: 16.55 kB / 459.9 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006008/0.27, allocations: 443.7 kB / 460.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=65): time 2.765e-06/0.27, allocations: 0 / 460.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.004912/0.2749, allocations: 2.44 MB / 462.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.897e-05/0.275, allocations: 174.7 kB / 462.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006496/0.2757, allocations: 0.5939 MB / 463.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.2757, allocations: 45.64 kB / 463.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/0.2762, allocations: 490.5 kB / 464 MB, free: 2.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.2764, allocations: 220.9 kB / 464.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/0.2766, allocations: 154.5 kB / 464.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.2768, allocations: 386.8 kB / 464.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004184/0.2772, allocations: 285.8 kB / 465 MB, free: 1.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007094/0.2779, allocations: 0.5524 MB / 465.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.2792, allocations: 0.9534 MB / 466.5 MB, free: 44 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.2792, allocations: 7.938 kB / 466.6 MB, free: 36 kB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002066/0.2813, allocations: 1.223 MB / 467.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/0.2813, allocations: 33.7 kB / 467.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.2813, allocations: 15.94 kB / 467.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009972/0.2824, allocations: 334.2 kB / 468.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004548/0.2828, allocations: 151.7 kB / 468.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006212/0.289, allocations: 5.387 MB / 473.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.2895, allocations: 32.03 kB / 473.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.653e-05/0.2896, allocations: 40 kB / 473.8 MB, free: 8.492 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.0004428/0.29, allocations: 367 kB / 474.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.276e-05/0.2901, allocations: 79 kB / 474.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.2919, allocations: 1.033 MB / 475.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2919, allocations: 8 kB / 475.2 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.292, allocations: 7.984 kB / 475.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.292, allocations: 4 kB / 475.2 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.2951, allocations: 2.055 MB / 477.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2952, allocations: 4 kB / 477.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.2954, allocations: 72.05 kB / 477.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008136/0.2963, allocations: 321.3 kB / 477.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.171e-05/0.2963, allocations: 19.94 kB / 477.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005513/0.3018, allocations: 5.305 MB / 483 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3019, allocations: 11.94 kB / 483 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.3036, allocations: 1.116 MB / 484.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.3038, allocations: 144.2 kB / 484.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/0.3039, allocations: 20 kB / 484.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000315/0.3042, allocations: 23.92 kB / 484.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.3043, allocations: 60.45 kB / 484.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.371e-05/0.3044, allocations: 19.98 kB / 484.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000507/0.3049, allocations: 419 kB / 484.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3049, allocations: 4 kB / 484.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009165/0.3058, allocations: 264 kB / 485.1 MB, free: 12.68 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.0001545/0.306, allocations: 119.2 kB / 485.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.3077, allocations: 1.148 MB / 486.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.3077, allocations: 4 kB / 486.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3087, allocations: 0.7682 MB / 487.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008063/0.3096, allocations: 182.2 kB / 487.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.3121, allocations: 1.743 MB / 489 MB, free: 8.594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007496/0.3129, allocations: 1.099 MB / 490.1 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004096/0.3133, allocations: 182.4 kB / 490.3 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.3134, allocations: 51.44 kB / 490.4 MB, free: 7.23 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3134, allocations: 0 / 490.4 MB, free: 7.23 MB / 366.1 MB Notification: Performance of Templates: time 0.01706/0.3305, allocations: 10.77 MB / 0.4894 GB, free: 12.48 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)