Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001399/0.001399, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.7/1.7, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.175/0.175, allocations: 37.99 MB / 309.8 MB, free: 5.961 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.001466/0.001466, allocations: 75.19 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2932, allocations: 55.24 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.008115/0.3013, allocations: 7.299 MB / 439.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003566/0.305, allocations: 1.758 MB / 441.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008646/0.3059, allocations: 31.81 kB / 441.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008358/0.3068, allocations: 234.4 kB / 441.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001691/0.3085, allocations: 0.5637 MB / 441.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006777/0.3092, allocations: 215.7 kB / 442.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.3107, allocations: 1.262 MB / 443.4 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005263/0.3113, allocations: 350.5 kB / 443.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009129/0.3122, allocations: 0.5524 MB / 444.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009336/0.3131, allocations: 0.6423 MB / 444.9 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.368e-05/0.3132, allocations: 64 kB / 445 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.3134, allocations: 64 kB / 445 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002966/0.3137, allocations: 339 kB / 445.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004071/0.3141, allocations: 429.8 kB / 445.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008361/0.3149, allocations: 0.9186 MB / 446.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.315, allocations: 0 / 446.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.315, allocations: 0 / 446.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.315, allocations: 0 / 446.7 MB, free: 4.742 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002003/0.317, allocations: 1.225 MB / 447.9 MB, free: 3.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.317, allocations: 15.89 kB / 447.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.3172, allocations: 99.66 kB / 448 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.3182, allocations: 0.7072 MB / 448.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.3183, allocations: 53.25 kB / 448.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.231e-05/0.3184, allocations: 56 kB / 448.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000975/0.3193, allocations: 0.8137 MB / 449.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.3194, allocations: 0 / 449.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-05/0.3194, allocations: 35.97 kB / 449.7 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-05/0.3195, allocations: 29.31 kB / 449.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008181/0.3203, allocations: 0.6218 MB / 450.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003848/0.3242, allocations: 2.618 MB / 453 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.3253, allocations: 0.61 MB / 453.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006371/0.3259, allocations: 379.1 kB / 454 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.003e-05/0.326, allocations: 8.438 kB / 454 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006813/0.3266, allocations: 486.9 kB / 454.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=63): time 2.795e-06/0.3267, allocations: 0 / 454.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.00328/0.3299, allocations: 1.981 MB / 456.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/0.3301, allocations: 263.8 kB / 456.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006629/0.3308, allocations: 0.5624 MB / 457.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.3308, allocations: 41.7 kB / 457.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.3312, allocations: 395.5 kB / 457.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.3313, allocations: 213 kB / 457.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.3315, allocations: 142.6 kB / 458 MB, free: 8.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.3317, allocations: 386.8 kB / 458.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.3321, allocations: 229.9 kB / 458.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005411/0.3327, allocations: 457.8 kB / 459.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.3338, allocations: 0.7934 MB / 459.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.3338, allocations: 4 kB / 459.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001624/0.3354, allocations: 0.9442 MB / 460.8 MB, free: 5.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.437e-05/0.3355, allocations: 67.39 kB / 460.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.3355, allocations: 8 kB / 460.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004222/0.336, allocations: 113.5 kB / 461 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004829/0.3365, allocations: 143.7 kB / 461.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/0.3394, allocations: 3.232 MB / 464.4 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/0.3399, allocations: 39.98 kB / 464.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.428e-05/0.34, allocations: 51.95 kB / 464.5 MB, free: 1.934 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * 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 {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005107/0.3405, allocations: 350.6 kB / 464.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.3406, allocations: 79.12 kB / 464.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/0.3418, allocations: 0.7896 MB / 465.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.3418, allocations: 11.98 kB / 465.7 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.3419, allocations: 0 / 465.7 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.3419, allocations: 3.984 kB / 465.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.3441, allocations: 1.55 MB / 467.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.3441, allocations: 0 / 467.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.3447, allocations: 119.9 kB / 467.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.3447, allocations: 0 / 467.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.3447, allocations: 19.98 kB / 467.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.3448, allocations: 4 kB / 467.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3448, allocations: 0 / 467.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.3463, allocations: 1.218 MB / 468.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.3466, allocations: 184.1 kB / 468.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.22e-05/0.3467, allocations: 16 kB / 468.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/0.347, allocations: 31.97 kB / 468.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/0.3471, allocations: 36.39 kB / 468.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.358e-05/0.3472, allocations: 59.92 kB / 468.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004308/0.3477, allocations: 383.1 kB / 469.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3477, allocations: 8 kB / 469.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006794/0.3484, allocations: 188 kB / 469.5 MB, free: 12.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * 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.0001589/0.3485, allocations: 123.1 kB / 469.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.3501, allocations: 1.015 MB / 470.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3501, allocations: 0 / 470.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000584/0.3507, allocations: 494.5 kB / 471.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007923/0.3515, allocations: 157.5 kB / 471.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.354, allocations: 1.536 MB / 472.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000674/0.3547, allocations: 1.013 MB / 473.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004726/0.3552, allocations: 157.8 kB / 473.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.3553, allocations: 47.44 kB / 474 MB, free: 8.078 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3553, allocations: 0 / 474 MB, free: 8.078 MB / 350.1 MB Notification: Performance of Templates: time 0.0146/0.3699, allocations: 7.456 MB / 481.4 MB, free: 0.6445 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)