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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 112.8 kB / 17.06 MB, free: 5.773 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.001305/0.001305, allocations: 200 kB / 18.01 MB, free: 4.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1776/0.1776, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 71.88 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3034, allocations: 58.04 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007286/0.3107, allocations: 7.307 MB / 0.5107 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002574/0.3133, allocations: 1.718 MB / 0.5124 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004489/0.3138, allocations: 24.09 kB / 0.5124 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007486/0.3146, allocations: 234.5 kB / 0.5127 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001566/0.3162, allocations: 0.5701 MB / 0.5132 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006451/0.3169, allocations: 212.3 kB / 0.5134 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.3187, allocations: 1.269 MB / 0.5147 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004936/0.3192, allocations: 352.3 kB / 0.515 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009271/0.3202, allocations: 0.5443 MB / 0.5155 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.3214, allocations: 0.6473 MB / 0.5162 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.3215, allocations: 62.75 kB / 0.5162 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002203/0.3218, allocations: 64.12 kB / 0.5163 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004864/0.3223, allocations: 331.2 kB / 0.5166 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006725/0.3229, allocations: 431.2 kB / 0.517 GB, free: 15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001332/0.3243, allocations: 0.9209 MB / 0.5179 GB, free: 14.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3243, allocations: 3.938 kB / 0.5179 GB, free: 14.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3243, allocations: 0 / 0.5179 GB, free: 14.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.3243, allocations: 1.281 kB / 0.5179 GB, free: 14.62 MB / 398.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.002236/0.3266, allocations: 1.251 MB / 0.5191 GB, free: 13.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3266, allocations: 13.98 kB / 0.5192 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.3268, allocations: 111.1 kB / 0.5193 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.327, allocations: 102.1 kB / 0.5194 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.3283, allocations: 0.7236 MB / 0.5201 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.3284, allocations: 43.83 kB / 0.5201 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.944e-05/0.3285, allocations: 62.62 kB / 0.5202 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3298, allocations: 0.8103 MB / 0.521 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.3298, allocations: 3.938 kB / 0.521 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-05/0.3299, allocations: 27.62 kB / 0.521 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.459e-05/0.3299, allocations: 36.34 kB / 0.521 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.331, allocations: 0.6131 MB / 0.5216 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003686/0.3347, allocations: 2.621 MB / 0.5242 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009638/0.3356, allocations: 0.6162 MB / 0.5248 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/0.3363, allocations: 383.1 kB / 0.5251 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.3363, allocations: 6.375 kB / 0.5252 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006173/0.3369, allocations: 486 kB / 0.5256 GB, free: 10.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 2.094e-06/0.337, allocations: 0 / 0.5256 GB, free: 10.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.00306/0.34, allocations: 1.994 MB / 0.5276 GB, free: 8.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.3402, allocations: 254.9 kB / 0.5278 GB, free: 8.684 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006765/0.3409, allocations: 0.564 MB / 0.5284 GB, free: 8.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.3409, allocations: 44.33 kB / 0.5284 GB, free: 8.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003402/0.3413, allocations: 404.7 kB / 0.5288 GB, free: 8.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.3415, allocations: 217.4 kB / 0.529 GB, free: 7.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.3417, allocations: 146.1 kB / 0.5291 GB, free: 7.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.3419, allocations: 384.8 kB / 0.5295 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/0.3423, allocations: 227.1 kB / 0.5297 GB, free: 7.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000551/0.3428, allocations: 453.2 kB / 0.5302 GB, free: 7.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009243/0.3438, allocations: 0.7967 MB / 0.5309 GB, free: 6.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3438, allocations: 2.531 kB / 0.5309 GB, free: 6.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001523/0.3453, allocations: 0.9565 MB / 0.5319 GB, free: 6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.552e-05/0.3454, allocations: 63.3 kB / 0.5319 GB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.3454, allocations: 10.66 kB / 0.5319 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003902/0.3458, allocations: 110 kB / 0.532 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000461/0.3463, allocations: 147.7 kB / 0.5322 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003357/0.3496, allocations: 3.56 MB / 0.5357 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.3501, allocations: 41.56 kB / 0.5357 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.557e-05/0.3502, allocations: 57.7 kB / 0.5358 GB, free: 2.52 MB / 398.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.0004883/0.3507, allocations: 354.1 kB / 0.5361 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.99e-05/0.3508, allocations: 80.28 kB / 0.5362 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.352, allocations: 0.7899 MB / 0.5369 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.352, allocations: 5.781 kB / 0.5369 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.352, allocations: 0 / 0.5369 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.352, allocations: 5.109 kB / 0.5369 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.3543, allocations: 1.561 MB / 0.5385 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3543, allocations: 1 kB / 0.5385 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004867/0.3548, allocations: 101.2 kB / 0.5386 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.3548, allocations: 7.5 kB / 0.5386 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.3549, allocations: 29.23 kB / 0.5386 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.3549, allocations: 3.125 kB / 0.5386 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3549, allocations: 1.094 kB / 0.5386 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.3564, allocations: 1.208 MB / 0.5398 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.3567, allocations: 190.2 kB / 0.54 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.802e-05/0.3568, allocations: 16.12 kB / 0.54 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.3571, allocations: 22.55 kB / 0.54 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.976e-05/0.3572, allocations: 42.09 kB / 0.54 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.955e-05/0.3573, allocations: 61.58 kB / 0.5401 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000453/0.3578, allocations: 394.4 kB / 0.5405 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3578, allocations: 5.062 kB / 0.5405 GB, free: 15.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007316/0.3585, allocations: 177.3 kB / 0.5407 GB, free: 15.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.001894/0.3604, allocations: 1.767 MB / 0.5424 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.362, allocations: 1.005 MB / 0.5434 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.362, allocations: 1.156 kB / 0.5434 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.3626, allocations: 0.4908 MB / 0.5438 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000855/0.3635, allocations: 161.4 kB / 0.544 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008758/0.3722, allocations: 6.312 MB / 0.5502 GB, free: 7.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000716/0.373, allocations: 1.016 MB / 0.5512 GB, free: 6.305 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004504/0.3734, allocations: 157.8 kB / 0.5513 GB, free: 6.148 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003543/0.3738, allocations: 279.3 kB / 0.5516 GB, free: 5.875 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3738, allocations: 0 / 0.5516 GB, free: 5.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04685/0.4207, allocations: 14.09 MB / 0.5653 GB, free: 7.969 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.31, allocations: 11.64 kB / 0.5653 GB, free: 7.961 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)