Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009809/0.0009809, allocations: 174.7 kB / 16.07 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.294/1.294, allocations: 205.4 MB / 222.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008163/0.0008162, allocations: 92.95 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1644/0.1644, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003698, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2532, allocations: 56.33 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.007881/0.2611, allocations: 9.642 MB / 489.4 MB, free: 2.59 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006172/0.2673, allocations: 3.719 MB / 493.1 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.2689, allocations: 66.12 kB / 493.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.2701, allocations: 396.6 kB / 493.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003206/0.2733, allocations: 1.129 MB / 494.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.2756, allocations: 0.6703 MB / 495.3 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004473/0.2801, allocations: 3.109 MB / 498.5 MB, free: 13.87 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00228/0.2824, allocations: 1.21 MB / 499.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002017/0.2844, allocations: 0.8368 MB / 0.4888 GB, free: 12.75 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002423/0.2868, allocations: 1.357 MB / 0.4901 GB, free: 12.09 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002289/0.2871, allocations: 64.25 kB / 0.4902 GB, free: 12.09 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.2884, allocations: 0.5377 MB / 0.4907 GB, free: 11.83 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008923/0.2893, allocations: 0.8742 MB / 0.4915 GB, free: 11.33 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009656/0.2903, allocations: 0.7989 MB / 0.4923 GB, free: 10.82 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001915/0.2922, allocations: 1.736 MB / 0.494 GB, free: 9.703 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.2923, allocations: 1.312 kB / 0.494 GB, free: 9.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2923, allocations: 0 / 0.494 GB, free: 9.703 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.37e-05/0.2923, allocations: 0 / 0.494 GB, free: 9.703 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.003072/0.2954, allocations: 1.682 MB / 0.4957 GB, free: 8.414 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.2954, allocations: 12.78 kB / 0.4957 GB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002926/0.2957, allocations: 241.6 kB / 0.4959 GB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/0.2975, allocations: 354.9 kB / 0.4962 GB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.2993, allocations: 1.025 MB / 0.4972 GB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.59e-05/0.2994, allocations: 104.3 kB / 0.4973 GB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003189/0.2997, allocations: 171.4 kB / 0.4975 GB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003363/0.3031, allocations: 2.328 MB / 0.4998 GB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.272e-05/0.3032, allocations: 12.91 kB / 0.4998 GB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.3033, allocations: 59.59 kB / 0.4998 GB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005193/0.3038, allocations: 225.9 kB / 0.5001 GB, free: 5.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002936/0.3068, allocations: 1.837 MB / 0.5019 GB, free: 3.855 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01135/0.3182, allocations: 9.568 MB / 0.5112 GB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.3203, allocations: 1.536 MB / 0.5127 GB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007756/0.3211, allocations: 0.602 MB / 0.5133 GB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.317e-05/0.3212, allocations: 24.97 kB / 0.5133 GB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/0.3223, allocations: 0.8489 MB / 0.5141 GB, free: 6.664 MB / 346.7 MB Notification: Performance of pre-optimization done (n=130): time 3.266e-06/0.3223, allocations: 0 / 0.5141 GB, free: 6.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.00586/0.3282, allocations: 3.996 MB / 0.518 GB, free: 2.574 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.3283, allocations: 286.3 kB / 0.5183 GB, free: 2.234 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.3294, allocations: 0.9106 MB / 0.5192 GB, free: 1.301 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.03e-05/0.3295, allocations: 49.7 kB / 0.5193 GB, free: 1.246 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005476/0.33, allocations: 0.7589 MB / 0.52 GB, free: 484 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003134/0.3303, allocations: 461.6 kB / 0.5204 GB, free: 16 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.279e-05/0.3304, allocations: 36.23 kB / 0.5205 GB, free: 15.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.3307, allocations: 434.7 kB / 0.5209 GB, free: 15.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008191/0.3315, allocations: 0.5738 MB / 0.5214 GB, free: 14.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.3326, allocations: 1.171 MB / 0.5226 GB, free: 13.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.3348, allocations: 1.989 MB / 0.5245 GB, free: 11.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.3348, allocations: 4 kB / 0.5245 GB, free: 11.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.0041/0.3389, allocations: 2.478 MB / 0.527 GB, free: 8.738 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.372e-05/0.339, allocations: 67.41 kB / 0.527 GB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002727/0.3417, allocations: 1.566 MB / 0.5285 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/0.3433, allocations: 0.5414 MB / 0.5291 GB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.3444, allocations: 327.5 kB / 0.5294 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009255/0.3536, allocations: 8.69 MB / 0.5379 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.3548, allocations: 79.88 kB / 0.5379 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.355, allocations: 103.9 kB / 0.538 GB, free: 12.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(2,100.0%) 11,(2,100.0%) 12,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008981/0.3559, allocations: 0.5959 MB / 0.5386 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.3561, allocations: 122.5 kB / 0.5387 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/0.3583, allocations: 1.539 MB / 0.5402 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.3584, allocations: 19.94 kB / 0.5403 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3584, allocations: 0 / 0.5403 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.3584, allocations: 11.91 kB / 0.5403 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004475/0.3629, allocations: 3.06 MB / 0.5433 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.3629, allocations: 4 kB / 0.5433 GB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.3642, allocations: 295.8 kB / 0.5436 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.149e-05/0.3643, allocations: 8 kB / 0.5436 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.61e-05/0.3643, allocations: 39.98 kB / 0.5436 GB, free: 7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.717e-06/0.3644, allocations: 4 kB / 0.5436 GB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3644, allocations: 4 kB / 0.5436 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/0.3673, allocations: 2.312 MB / 0.5459 GB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005299/0.3678, allocations: 299.5 kB / 0.5461 GB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.368, allocations: 32 kB / 0.5462 GB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005304/0.3685, allocations: 43.97 kB / 0.5462 GB, free: 4.246 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3687, allocations: 80.95 kB / 0.5463 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.3689, allocations: 87.86 kB / 0.5464 GB, free: 4.082 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000718/0.3696, allocations: 0.5986 MB / 0.547 GB, free: 3.473 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3696, allocations: 0 / 0.547 GB, free: 3.473 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001362/0.371, allocations: 420 kB / 0.5474 GB, free: 3.062 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * 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 (121): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0032/0.3742, allocations: 2.888 MB / 0.5502 GB, free: 112 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003393/0.3776, allocations: 2.299 MB / 0.5524 GB, free: 13.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3776, allocations: 5.938 kB / 0.5524 GB, free: 13.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.3787, allocations: 0.871 MB / 0.5533 GB, free: 12.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.3801, allocations: 212.2 kB / 0.5535 GB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01528/0.3954, allocations: 9.956 MB / 0.5632 GB, free: 2.082 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.3965, allocations: 1.458 MB / 0.5646 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000768/0.3973, allocations: 0.5774 MB / 0.5652 GB, free: 12 kB / 394.7 MB Notification: Performance of SimCode: time 9.12e-07/0.3973, allocations: 0 / 0.5652 GB, free: 12 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.247/5.644, allocations: 32.26 MB / 0.5967 GB, free: 15.67 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)