Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001181/0.001181, allocations: 192 kB / 18.63 MB, free: 4.375 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.553/1.553, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1713/0.1713, allocations: 37.99 MB / 309.8 MB, free: 5.98 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.00149/0.00149, allocations: 63.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.3, allocations: 55.24 MB / 432 MB, free: 19.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.00646/0.3065, allocations: 5.523 MB / 437.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.3087, allocations: 1.403 MB / 438.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.3089, allocations: 15.88 kB / 439 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004657/0.3094, allocations: 143 kB / 439.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007102/0.3102, allocations: 378.1 kB / 439.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.3105, allocations: 151.7 kB / 439.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005862/0.3111, allocations: 0.7826 MB / 440.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/0.3113, allocations: 213.7 kB / 440.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003603/0.3117, allocations: 346.5 kB / 441 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004706/0.3122, allocations: 406.6 kB / 441.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.511e-05/0.3122, allocations: 40 kB / 441.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.816e-05/0.3123, allocations: 40 kB / 441.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.3125, allocations: 199.4 kB / 441.6 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002054/0.3127, allocations: 278.5 kB / 441.9 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004706/0.3132, allocations: 0.576 MB / 442.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3132, allocations: 4 kB / 442.5 MB, free: 9.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3132, allocations: 0 / 442.5 MB, free: 9.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.3132, allocations: 0 / 442.5 MB, free: 9.023 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001385/0.3146, allocations: 0.8918 MB / 443.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.3147, allocations: 19.89 kB / 443.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.3148, allocations: 64.12 kB / 443.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008583/0.3157, allocations: 0.5103 MB / 444 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.628e-05/0.3157, allocations: 32.94 kB / 444 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.07e-05/0.3158, allocations: 40 kB / 444 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007391/0.3165, allocations: 0.5312 MB / 444.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.3166, allocations: 0 / 444.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.27e-05/0.3166, allocations: 16 kB / 444.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-05/0.3167, allocations: 29 kB / 444.6 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.3172, allocations: 391.6 kB / 445 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.3192, allocations: 1.924 MB / 446.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004862/0.3197, allocations: 329.3 kB / 447.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/0.3199, allocations: 182 kB / 447.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.32, allocations: 8 kB / 447.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.3203, allocations: 280.2 kB / 447.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.523e-06/0.3203, allocations: 0 / 447.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.001521/0.3218, allocations: 1.183 MB / 448.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.3219, allocations: 162.2 kB / 449 MB, free: 2.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.3222, allocations: 405.7 kB / 449.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.3222, allocations: 29.7 kB / 449.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.3224, allocations: 295.7 kB / 449.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.975e-05/0.3224, allocations: 122.3 kB / 449.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.3226, allocations: 94.14 kB / 450 MB, free: 1.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.542e-05/0.3227, allocations: 354.8 kB / 450.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.3228, allocations: 125 kB / 450.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.3231, allocations: 286.1 kB / 450.7 MB, free: 280 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000542/0.3236, allocations: 483.6 kB / 451.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.3236, allocations: 4 kB / 451.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007841/0.3244, allocations: 0.5183 MB / 451.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.082e-05/0.3245, allocations: 38.38 kB / 451.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3245, allocations: 4 kB / 451.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.3246, allocations: 12 kB / 451.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000441/0.325, allocations: 111.8 kB / 451.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.325, allocations: 8 kB / 451.9 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.3253, allocations: 28.05 kB / 451.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.241e-05/0.3254, allocations: 27.98 kB / 451.9 MB, free: 14.95 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003076/0.3257, allocations: 255.2 kB / 452.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.051e-05/0.3258, allocations: 51.38 kB / 452.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000697/0.3265, allocations: 455.7 kB / 452.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.3265, allocations: 7.938 kB / 452.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3265, allocations: 4 kB / 452.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3265, allocations: 3.984 kB / 452.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.3279, allocations: 0.9651 MB / 453.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3279, allocations: 4 kB / 453.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.3282, allocations: 59.91 kB / 453.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.3282, allocations: 4.031 kB / 453.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.3283, allocations: 19.98 kB / 453.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3283, allocations: 0 / 453.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3283, allocations: 0 / 453.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009574/0.3292, allocations: 0.7131 MB / 454.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.3295, allocations: 140.5 kB / 454.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.3295, allocations: 16 kB / 454.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.3297, allocations: 15.98 kB / 454.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/0.3298, allocations: 23.91 kB / 454.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.579e-05/0.3299, allocations: 31.97 kB / 454.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002871/0.3302, allocations: 267.1 kB / 454.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3302, allocations: 0 / 454.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004803/0.3307, allocations: 107.9 kB / 455 MB, free: 11.69 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0001424/0.3308, allocations: 115.2 kB / 455.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006217/0.3315, allocations: 411.2 kB / 455.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3315, allocations: 1.375 kB / 455.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.3318, allocations: 267.2 kB / 455.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006285/0.3324, allocations: 105.6 kB / 455.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.3343, allocations: 0.9675 MB / 456.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.3349, allocations: 0.8859 MB / 457.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002575/0.3351, allocations: 88.31 kB / 457.9 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.803e-05/0.3352, allocations: 39.42 kB / 457.9 MB, free: 8.742 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3352, allocations: 0 / 457.9 MB, free: 8.742 MB / 334.1 MB Notification: Performance of Templates: time 0.009713/0.345, allocations: 4.219 MB / 462.1 MB, free: 4.539 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)